Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bclement-ocp committed Jun 29, 2023
1 parent a588a7a commit 14ebcf9
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 80 deletions.
7 changes: 7 additions & 0 deletions tests/issues/555/models/555.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

unknown
(
(define-fun x () Int 0)
(define-fun y () Int 0)
(define-fun a1 () (Array Int Int) (store (as @a1 (Array Int Int)) 0 0))
)
10 changes: 10 additions & 0 deletions tests/issues/555/models/555.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(set-logic ALL)
(set-option :produce-models true)
(declare-const x Int)
(declare-const y Int)
(declare-const a1 (Array Int Int))
(declare-const a2 (Array Int Int))
(assert (= (select a1 x) x))
(assert (= (store a1 x y) a1))
(check-sat)
(get-model)
11 changes: 1 addition & 10 deletions tests/models/arith/arith1.expected
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@

unknown
(

; Functions

; Constants

(define-fun x () Int 0)

; Arrays not yet supported


(define-fun x () Int 0)
)
14 changes: 2 additions & 12 deletions tests/models/arith/arith2.expected
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@

unknown
(

; Functions

; Constants

(define-fun x () Int 8)

(define-fun y () Int 42)

; Arrays not yet supported


(define-fun x () Int 8)
(define-fun y () Int 42)
)
25 changes: 3 additions & 22 deletions tests/models/bool/bool1.expected
Original file line number Diff line number Diff line change
@@ -1,30 +1,11 @@

unknown
(

; Functions

; Constants

; Arrays not yet supported


)

unknown
(

; Functions

; Constants

(define-fun p () Bool true)

(define-fun q () Bool true)

(define-fun nq () Bool true)

; Arrays not yet supported


(define-fun p () Bool true)
(define-fun q () Bool true)
(define-fun nq () Bool true)
)
8 changes: 0 additions & 8 deletions tests/models/bool/bool2.expected
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@

unknown
(

; Functions

; Constants

; Arrays not yet supported


)
17 changes: 3 additions & 14 deletions tests/models/uf/uf1.expected
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@

unknown
(

; Functions

(define-fun f ((arg_0 Int)) Int 0)

; Constants

(define-fun a () Int 0)

(define-fun b () Int 0)

; Arrays not yet supported


(define-fun f ((arg_0 Int)) Int 0)
(define-fun a () Int 0)
(define-fun b () Int 0)
)
17 changes: 3 additions & 14 deletions tests/models/uf/uf2.expected
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@

unknown
(

; Functions

(define-fun f ((arg_0 Int)) Int (ite (= arg_0 a) 2 0))

; Constants

(define-fun a () Int 0)

(define-fun b () Int (- 2))

; Arrays not yet supported


(define-fun f ((arg_0 Int)) Int (ite (= arg_0 a) 2 0))
(define-fun a () Int 0)
(define-fun b () Int (- 2))
)

0 comments on commit 14ebcf9

Please sign in to comment.