Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Non-linear arithmetic and uninterpreted functions

Tags:

z3

(declare-const x Real)
(declare-fun f (Real) Real)
(assert (= (f 1.0) 0.0))
(assert (= (* x x) (* 1.0 1.0)))
(check-sat)
(get-model)

I have two independent assertions one in non-linear arithmetic and other uninterpreted functions. Z3 gives a "model is not available" to the problem above. Is there a way to set the logic to something that can handle both at the same time? Thank you.

like image 625
Hesam Avatar asked Dec 11 '25 01:12

Hesam


1 Answers

The new nonlinear solver is not integrated with other theories (arrays, unintepreted functions, bit-vectors) yet. In Z3 4.0, it can only be used to solve problems that contain only nonlinear arithmetic assertions. This is will change in future versions.

like image 105
Leonardo de Moura Avatar answered Dec 13 '25 14:12

Leonardo de Moura



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!