我想消除表达式并使用 z3 将最终结果转换为 cnf,但是,有一个错误说“(错误”策略失败:不支持运算符,在调用此策略之前应用简化器“)”脚本中的问题是什么?
(set-option :produce-models true)
(declare-var t Real)
(declare-var tc Real)
(declare-var t1 Real)
(declare-var t1c Real)
(assert
(and
(not (and (and (<= 0.0 t)(<= 0.0 t1))(= t1c 2.0)(= tc 1.0)))
(not (and (and (<= 0.0 t)(<= 0.0 t1))(< 2.0 t1c)(= tc 1.0)))
(not (and (and (and (<= 0.0 t)(<= 0.0 t1))(< 1.0 tc)) (= t1c 2.0)))
(not (and (and (and (<= 0.0 t)(<= 0.0 t1))(< 1.0 tc)) (< 2.0 t1c)))
(or (and (and (and (<= 0.0 t)(<= 0.0 t1))(<= 0.0 t1c))(<= 0.0 tc)(< tc 1.0))
(and (and (and (<= 0.0 t) (<= 0.0 t1))(<= 0.0 t1c))(< 1.0 tc)(< t1c 2.0))
(and (and (and (<= 0.0 t)(<= 0.0 t1))(< 1.0 tc)) (= t1c 2.0))
(and (and (and (<= 0.0 t) (<= 0.0 t1))(<= 0.0 t1c))
(= tc 1.0)
(or (and (and (and (<= 0.0 t) (<= 0.0 t1))(<= 0.0 t1c))
(< t1c 2.0)
(= tc 1.0)
)
(and (and (<= 0.0 t)(<= 0.0 t1))(= t1c 2.0)(= tc 1.0))
)
)
)
)
)
(apply (then ctx-solver-simplify propagate-values (par-then (repeat (or-else split-clause skip)) propagate-ineqs) tseitin-cnf))