Closed LeventErkok closed 4 years ago
Please ignore the deleted comment, but try the following:
(set-logic QF_NRA)
(set-option :smtlib2_compliant true)
(define-fun s0 () Int 1)
(assert (= s0 1))
(check-sat)
(get-value (s0))
(exit)
Quite right! I must've somehow confused myself to think it wasn't supported. Sorry about the noise!
No problem. Thanks for checking things!
Another SMTLib2 nicety. The sequence:
can be abbreviated to:
This makes the benchmarks generated easier to read, and also can be taken advantage of internally by tools as they are essentially constants. (Easily discoverable by constant-folding, but helpful nonetheless.) But their main use case is to simplify generation of benchmarks, and reduce interprocess communication as it compresses two SMTLib commands into one.
Not an absolute must, but would be good to support this abbreviation. Almost all other solvers do.