-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
Hi,
For this formula:
(declare-fun a () String)
(declare-fun b () Int)
(declare-fun c () Int)
(declare-fun d () Int)
(declare-fun e (Int) Bool)
(declare-fun f () Int)
(assert (xor (> c 0) (< (/ 1 b c) (str.len a))))
(assert (e f))
(assert (distinct "efg" (str.substr a b c)))
(assert (= "bef" (str.substr a f d)))
(assert (> (str.len a) 10))
(check-sat)
Z3 gives an invalid model:
[580] % z3 model_validate=true small.smt2
sat
(error "line 12 column 10: an invalid model was generated")
[581] %
[581] % cat small.smt2
(declare-fun a () String)
(declare-fun b () Int)
(declare-fun c () Int)
(declare-fun d () Int)
(declare-fun e (Int) Bool)
(declare-fun f () Int)
(assert (xor (> c 0) (< (/ 1 b c) (str.len a))))
(assert (e f))
(assert (distinct "efg" (str.substr a b c)))
(assert (= "bef" (str.substr a f d)))
(assert (> (str.len a) 10))
(check-sat)
[582] %
OS: Ubuntu 18.04
Commit: 2673807
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels