arjunguha / ocaml-z3

16 stars 11 forks source link

smtlib: when reading model from z3, recognize negative numbers #1

Closed bpowers closed 7 years ago

bpowers commented 7 years ago

Without this, the library throws an exception when Z3 graces us with a model like:

(model
  (define-fun stack_base () Int
    (- 128))
  (define-fun stack_max () Int
    0)
)