Skip to content

Assertion violation at diff_logic.h:518 (smt.arith.solver 1) #4143

New issue

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

Closed
rainoftime opened this issue Apr 28, 2020 · 1 comment
Closed

Assertion violation at diff_logic.h:518 (smt.arith.solver 1) #4143

rainoftime opened this issue Apr 28, 2020 · 1 comment

Comments

@rainoftime
Copy link
Contributor

rainoftime commented Apr 28, 2020

Hi, for the following formula,

(set-logic QF_AUFNIRA)
(set-option :smt.arith.solver 1)
(declare-const r1 Real)
(declare-const r2 Real)
(declare-const arr1 (Array Real Real))
(assert (< 1560.0 6585646.0 r1 0.0 r1))
(declare-const arr2 (Array (Array Real Real) Real))
(push 1)
(assert (<= 52433.4563 52433.4563 r2 (select (store arr2 (store arr1 387.0463851 86061.0) 0) arr1) 0.0))
(check-sat)

z3 (commit 38e0968) throws an assertion violation

ASSERTION VIOLATION
File: ../src/smt/diff_logic.h
Line: 518
is_feasible()
(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB
@rainoftime
Copy link
Contributor Author

rainoftime commented Apr 28, 2020

Another quantified case

(set-logic LIA)
(declare-fun _substvar_21_ () Int)
(set-option :smt.arith.solver 1)
(declare-const i1 Int)
(assert (forall ((q38 Bool)) (>= 431 i1 _substvar_21_ 773 0)))
(push 1)
(assert (not (forall ((q42 Int) (q43 Bool) (q44 Bool)) (= (+ i1 i1) q42))))
(push 1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant