Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Halbaroth committed Jul 18, 2023
1 parent 0b4e288 commit 1764f68
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/models/issues/719.models.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

unsat
(error "No model produced.")
18 changes: 18 additions & 0 deletions tests/models/issues/719.models.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
(set-logic ALL)
(set-option :produce-models true)
(declare-const a (Array Int Int))
(declare-const s Int)
(assert (and (<= 0 s) (<= s 10)))
(assert (forall ((k Int)) (=> (and (<= 0 k) (< k s)) (<= (select a k) (select a s)))))
(assert (forall ((k Int)) (=> (and (< s k) (<= k 10)) (<= (select a s) (select a k)))))
(assert (
forall ((p Int) (q Int))
(=> (and (<= 0 p) (< p q) (<= q (- s 1))) (<= (select a p) (select a q)))))
(assert (
forall ((p Int) (q Int))
(=> (and (<= (+ s 1) p) (< p q) (<= q 10)) (<= (select a p) (select a q)))))
(assert (not (
forall ((p Int) (q Int))
(=> (and (<= 0 p) (< p q) (<= q 10)) (<= (select a p) (select a q))))))
(check-sat)
(get-model)

0 comments on commit 1764f68

Please sign in to comment.