summaryrefslogtreecommitdiff
path: root/test/regress/regress0/bug486.cvc.smt2
blob: a7b425449a489b4d1e64935f3b31793f0d4c1376 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
; COMMAND-LINE: --finite-model-find -i
; EXPECT: sat
; EXPECT: unsat
(set-logic ALL)
(set-option :incremental true)
(declare-sort prin 0)
(declare-sort form 0)
(declare-fun signed (prin form) Bool)
(declare-fun says (prin form) Bool)
(declare-fun speaksfor (prin prin) form)
(define-fun signedE () Bool (forall ((x prin) (y form)) (=> (signed x y) (says x y))))
(define-fun saysE () Bool (forall ((x prin) (y prin) (z form)) (=> (and (says x (speaksfor y x)) (says y z)) (says x z))))
(assert (forall ((x prin) (y form)) (=> (signed x y) (says x y))))
(assert (forall ((x prin) (y prin) (z form)) (=> (and (says x (speaksfor y x)) (says y z)) (says x z))))
(declare-fun julie () prin)
(declare-fun dave () prin)
(declare-fun alice () prin)
(declare-fun openfile () form)
(define-fun x2 () Bool (signed alice openfile))
(assert (signed alice openfile))
(define-fun x3 () Bool (signed dave (speaksfor alice dave)))
(assert (signed dave (speaksfor alice dave)))
(check-sat-assuming ( (not (not (says dave openfile))) ))
(check-sat-assuming ( (not (says dave openfile)) ))
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback