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 #2586

Closed
muchang opened this issue Sep 26, 2019 · 0 comments
Closed

Assertion violation on NRA formula #2586

muchang opened this issue Sep 26, 2019 · 0 comments

Comments

@muchang
Copy link

muchang commented Sep 26, 2019

Hi,
For this formula:

( declare-fun a () Int )
( declare-fun b () Int )
( declare-fun c () Int )
( declare-fun d () Int )
( declare-fun i () Int )
( declare-fun e () Int )
( declare-fun f () Int )
( declare-fun j () Int )
( declare-fun g () Int )
( declare-fun h () Int )
(assert
  (=
    0
    (/
      6
      (+
        (*
          7
          (*
            (+
              (-
                (- 8 (* (+ a g) 6))
              )
              (/ (* b (+ c j)) 9)
            )
            (+ (* 7 (/ e 2)) i (- f 3))
            (- 2 d h)
          )
        )
        (/ 7 0)
      )
      0
    )
  )
)
( check-sat )

z3 will throw out a assertion violation while solving this formula:

ASSERTION VIOLATION
File: ../src/smt/theory_arith_core.h
Line: 351
m->get_num_args() == 2
(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB

OS: Ubuntu 18.04
Revision: 79d4502 (./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