Skip to content

Commit

Permalink
Add tests and fix the expected file of bool1.models.smt2
Browse files Browse the repository at this point in the history
  • Loading branch information
Halbaroth committed Jul 19, 2023
1 parent 372b057 commit c740ca8
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/models/bool/bool1.models.expected
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ unknown
(
(define-fun p () Bool true)
(define-fun q () Bool true)
(define-fun nq () Bool true)
)
6 changes: 6 additions & 0 deletions tests/models/issues/715/715_1.models.ae
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
logic f: int

(* This function is user-defined and shouldn't appear in the output model. *)
function g(x: int, y: int) : int = x + y

check_sat t: f = 0
2 changes: 2 additions & 0 deletions tests/models/issues/715/715_1.models.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

unknown
5 changes: 5 additions & 0 deletions tests/models/issues/715/715_2.models.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

unknown
(
(define-fun f () Int 0)
)
8 changes: 8 additions & 0 deletions tests/models/issues/715/715_2.models.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(set-logic ALL)
(set-option :produce-models true)
(declare-const f Int)
(assert (= f 0))
; This function is user-defined and shouldn't appear in the output model.
(define-fun g ((x Int) (y Int)) Int (+ x y))
(check-sat)
(get-model)

0 comments on commit c740ca8

Please sign in to comment.