Converting to "set-option" SMTLib format

703 Views Asked by At

I want to convert this z3py code (online code) to standard SMTLib format. Everything is converted to SMTLib format except the set options properties "(set-option :produce-models true) (set-option :timeout 4000)". Why isn't working? The conversion code was suggested by Leonardo de Moura.

I want output to be like -

; benchmark 
(set-info :status unknown)
(set-option :produce-models true)
(set-option :timeout 4000)
(set-logic QF_UFLIA)
(assert true)
(check-sat)

Thanks

2

There are 2 best solutions below

0
On

I am running your code and I am obtaining

; benchmark
(set-info :status unknown)
(set-logic QF_UFLIA)
(assert true)
(check-sat)
1
On

Options are not printed by the SMT-LIB2 pretty printer. The pretty printer returns a string and you should be able to pre-pend options of your choice.