We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, The following example crashes z3:
;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; ; some arbitrary sequence ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;; (declare-const A (Seq Int)) ;;;;;;;;;;;;; ; ; ; max index ; ; ; ;;;;;;;;;;;;; (declare-const m Int) ;;;;;;;;;;;;;;;;;;;;;;;;; ; ; ; max index constraints ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;; (assert (<= 0 m)) (assert (< m (seq.len A))) (assert (forall ((i Int)) (<= (seq.nth A i) (seq.nth A m)))) ;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; ; the projected sequence ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;; (declare-const f_A (Seq Int)) (assert (= f_A (let ( (max (seq.nth A m)) (n (seq.len A))) (ite (or (>= max n) (< max 0)) (seq.unit 74) (seq.++ (seq.extract A 0 m) (seq.extract A (+ m 1) (- (- n 1) m))))))) ;;;;;;;;;;;;;;;;; ; ; ; specification ; ; ; ;;;;;;;;;;;;;;;;; (define-fun spec ((in (Seq Int))) Bool (let ( (n (seq.len in))) (and (forall ((j Int)) (=> (and (<= 0 j) (< j 1)) (and (<= 0 (seq.nth in j)) (< (seq.nth in j) n)))))) ) ;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; ; specification property ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;; (assert (and (spec f_A) (not (spec A)))) ;;;;;;;;; ; ; ; debug ; ; ; ;;;;;;;;; (declare-const spec_f_A Bool) (assert (= (spec f_A) spec_f_A)) ;;;;;;;;;;;;;;;;;;;;;; ; ; ; initial conditions ; ; ; ;;;;;;;;;;;;;;;;;;;;;; (assert (< 2 (seq.len A))) (assert (< (seq.len A) 5)) ;;;;;;;;;;;;;;;;;;;;;;;;; ; ; ; check sat + get model ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;; (check-sat) (get-model)
I get the following error message:
ASSERTION VIOLATION File: ../src/smt/theory_arith_inv.h Line: 97 !it->m_coeff.is_zero() (C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB
The text was updated successfully, but these errors were encountered:
I am unable to repro this on my end
Sorry, something went wrong.
Sorry I wasn't up to date with master. Now it returns unsat like it should. #2448 is still incorrect.
unsat
fixing #2443 #2445 #2447 #2448
2d5714a
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
No branches or pull requests
Hi,
The following example crashes z3:
I get the following error message:
The text was updated successfully, but these errors were encountered: