【发布时间】:2012-01-08 00:07:50
【问题描述】:
如何使用 smt-lib2 获得公式的最大值?
我想要这样的东西:
(declare-fun x () Int)
(declare-fun y () Int)
(declare-fun z () Int)
(assert (= x 2))
(assert (= y 4))
(assert (= z (max x y))
(check-sat)
(get-model)
(exit)
当然,'max' 对于 smtlibv2 是未知的。 那么,如何做到这一点呢?
【问题讨论】: