Skip to content

Commit

Permalink
Revert "Revert "match new z3 output""
Browse files Browse the repository at this point in the history
This reverts commit e8d2d42.
  • Loading branch information
LeventErkok committed Nov 20, 2023
1 parent ea13d8b commit 8f7aaca
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions SBVTestSuite/GoldFiles/set_tupleSet.gold
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
[SEND] (check-sat)
[RECV] sat
[SEND] (get-value (s0))
[RECV] ((s0 (mkSBVTuple2 ((as const (Array Bool Bool)) true) (lambda ((x!1 Bool)) x!1))))
[RECV] ((s0 (mkSBVTuple2 (lambda ((x!1 Bool)) x!1) ((as const (Array Bool Bool)) true))))
*** Solver : Z3
*** Exit code: ExitSuccess

FINAL:
Satisfiable. Model:
s0 = (U,{True}) :: ({Bool}, {Bool})
s0 = ({True},U) :: ({Bool}, {Bool})
DONE!
30 changes: 15 additions & 15 deletions SBVTestSuite/GoldFiles/set_uninterp1.gold
Original file line number Diff line number Diff line change
Expand Up @@ -64,49 +64,49 @@ Fast allSat, Looking for solution 4
[SEND] (check-sat)
[RECV] sat
[SEND] (get-value (s0))
[RECV] ((s0 (store ((as const (Array E Bool)) false) C true)))
[RECV] ((s0 (store ((as const (Array E Bool)) true) A false)))
[GOOD] (push 1)
[GOOD] (define-fun s10 () (Array E Bool) (store ((as const (Array E Bool)) false) C true))
[GOOD] (define-fun s10 () (Array E Bool) (store ((as const (Array E Bool)) true) A false))
[GOOD] (define-fun s11 () Bool (= s0 s10))
[GOOD] (define-fun s12 () Bool (not s11))
[GOOD] (assert s12)
Fast allSat, Looking for solution 5
[SEND] (check-sat)
[RECV] sat
[SEND] (get-value (s0))
[RECV] ((s0 (store (store ((as const (Array E Bool)) false) C true) A true)))
[RECV] ((s0 (store ((as const (Array E Bool)) false) C true)))
[GOOD] (push 1)
[GOOD] (define-fun s13 () (Array E Bool) (store (store ((as const (Array E Bool)) false) C true) A true))
[GOOD] (define-fun s13 () (Array E Bool) (store ((as const (Array E Bool)) false) C true))
[GOOD] (define-fun s14 () Bool (= s0 s13))
[GOOD] (define-fun s15 () Bool (not s14))
[GOOD] (assert s15)
Fast allSat, Looking for solution 6
[SEND] (check-sat)
[RECV] sat
[SEND] (get-value (s0))
[RECV] ((s0 ((as const (Array E Bool)) true)))
[RECV] ((s0 (store (store ((as const (Array E Bool)) false) B true) A true)))
[GOOD] (push 1)
[GOOD] (define-fun s16 () (Array E Bool) ((as const (Array E Bool)) true))
[GOOD] (define-fun s16 () (Array E Bool) (store (store ((as const (Array E Bool)) false) B true) A true))
[GOOD] (define-fun s17 () Bool (= s0 s16))
[GOOD] (define-fun s18 () Bool (not s17))
[GOOD] (assert s18)
Fast allSat, Looking for solution 7
[SEND] (check-sat)
[RECV] sat
[SEND] (get-value (s0))
[RECV] ((s0 (store (store ((as const (Array E Bool)) false) B true) A true)))
[RECV] ((s0 (store (store ((as const (Array E Bool)) false) C true) A true)))
[GOOD] (push 1)
[GOOD] (define-fun s19 () (Array E Bool) (store (store ((as const (Array E Bool)) false) B true) A true))
[GOOD] (define-fun s19 () (Array E Bool) (store (store ((as const (Array E Bool)) false) C true) A true))
[GOOD] (define-fun s20 () Bool (= s0 s19))
[GOOD] (define-fun s21 () Bool (not s20))
[GOOD] (assert s21)
Fast allSat, Looking for solution 8
[SEND] (check-sat)
[RECV] sat
[SEND] (get-value (s0))
[RECV] ((s0 (store (store ((as const (Array E Bool)) false) C true) B true)))
[RECV] ((s0 ((as const (Array E Bool)) true)))
[GOOD] (push 1)
[GOOD] (define-fun s22 () (Array E Bool) (store (store ((as const (Array E Bool)) false) C true) B true))
[GOOD] (define-fun s22 () (Array E Bool) ((as const (Array E Bool)) true))
[GOOD] (define-fun s23 () Bool (= s0 s22))
[GOOD] (define-fun s24 () Bool (not s23))
[GOOD] (assert s24)
Expand All @@ -126,15 +126,15 @@ Fast allSat, Looking for solution 9

FINAL:
Solution #1:
s0 = {B,C} :: {E}
s0 = U :: {E}
Solution #2:
s0 = {A,B} :: {E}
s0 = {A,C} :: {E}
Solution #3:
s0 = U :: {E}
s0 = {A,B} :: {E}
Solution #4:
s0 = {A,C} :: {E}
Solution #5:
s0 = {C} :: {E}
Solution #5:
s0 = U - {A} :: {E}
Solution #6:
s0 = {B} :: {E}
Solution #7:
Expand Down

0 comments on commit 8f7aaca

Please sign in to comment.