Skip to content
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

Assertion violation on NRA formula #2603

Closed
muchang opened this issue Oct 1, 2019 · 0 comments
Closed

Assertion violation on NRA formula #2603

muchang opened this issue Oct 1, 2019 · 0 comments

Comments

@muchang
Copy link

muchang commented Oct 1, 2019

Hi,
For this formula:

(declare-fun b () Real) 
(declare-fun KjafX_new () Real) 
(declare-fun c () Real) 
(declare-fun e () Real) 
(declare-fun a () Real) 
(declare-fun s () Real) 
(declare-fun l () Real) 
(declare-fun f () Real) 
(declare-fun d () Real) 
(declare-fun aa () Real) 
(declare-fun ac () Real) 
(declare-fun ts2209uscore0 () Real) 
(declare-fun g () Real) 
(declare-fun A () Real) 
(declare-fun m () Real) 
(declare-fun h () Real) 
(declare-fun V () Real) 
(declare-fun i () Real) 
(declare-fun o () Real) 
(declare-fun j () Real) 
(declare-fun n () Real) 
(assert
  (forall
    ((ts2209uscore0 Real))
    (or
      (<= 0 (/ 74 KjafX_new (/ a ts2209uscore0)))
      (>= 0 (/ e n))
      (and
        (>= (/ (/ s ts2209uscore0) aa) d)
        (>= (/ ts2209uscore0 0) 0)
      )
    )
  )
)
(assert
  (forall
    ((k Real))
    (or
      (and
        (or
          (and
            (or (>= 0 (/ b s)) (>= (/ 7 b s) i))
            (>= 0 j)
          )
          (>= (/ 5 c f) V)
          (= m 2)
          (>= 0 g)
          (<= h V)
        )
        (<= 0 (/ 0 l))
      )
      (>= 0 V)
    )
  )
)
(assert (= b (/ s o)))
(assert (= (/ ac A) a (/ ts2209uscore0 A)))
(check-sat)

z3 will throw out the assertion violation:

ASSERTION VIOLATION
File: ../src/smt/smt_context.h
Line: 1229
l != true_literal && l != false_literal
(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB

If I change the name of variable ts2209uscore0 to ad, z3 is able to report sat.
If I change the name of varibale KjafX_new to KjafX, z3 will report unknown.

OS: Ubuntu 18.04
Revision: fe7a7fe (./configure -d)

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