1
A
回答
2
在这个例子中,宏取景将是有益的(我认为经常与FORALL与影响量词),您可以启用它:
(set-option :macro-finder true)
这是你更新的例子,很快得到sat
(rise4fun链接: http://rise4fun.com/Z3/Ux7gN):
(set-option :macro-finder true)
(declare-const a (Array Int Bool))
(declare-const sz Int)
(declare-const n Int)
(declare-const d Int)
(declare-const r Bool)
(declare-const x Int)
(declare-const y Int)
;;ttff
(declare-fun ttff (Int Int Int) Bool)
(assert
(forall ((x1 Int) (y1 Int) (n1 Int))
(= (ttff x1 y1 n1)
(and
(forall ((i Int))
(=> (and (<= x1 i) (< i y1))
(= (select a i) true)))
(forall ((i Int))
(=> (and (<= y1 i) (< i n1))
(= (select a i) false)))))))
;; A1
(assert (and (<= 0 n) (<= n sz)))
;; A2
(assert (< 0 d))
;; A3
(assert (and (and (<= 0 x) (<= x y)) (<= y n)))
;; A4
(assert (ttff x y n))
;; A6
(assert
(=> (< 0 y)
(= (select a (- y 1)) true)))
;; A7
(assert
(=> (< 0 x)
(= (select a (- x 1)) false)))
;;G
(assert
(not
(iff
(and (<= (* 2 d) (+ n 1)) (ttff (- (+ n 1) (* 2 d)) (- (+ n 1) d) (+ n 1)))
(and (= (- (+ n 1) y) d) (<= d (- y x))))))
(check-sat)
(get-model)
相关问题
- 1. Subprocess.Popen即使在超时的情况下
- 2. openpyxl在不更改公式的情况下读取公式值
- 3. z3最小化和超时
- 4. 如何在超时情况下继续?
- 5. Z3:在C++中优化超时
- 6. 为什么在这种情况下超时变量可共享?
- 7. z3在非线性约束下超时
- 8. Angularjs在没有超时的情况下无法正常工作的情况
- 9. Z3量化公式暗示给予不足
- 10. 公式在返回零的情况下语句
- 11. 在不破坏公式的情况下更新命名范围
- 12. SPSS - 变量的情况下
- 13. 使用公用硒webdriver的情况下
- 14. z3的内存使用情况
- 15. 如何在连接超时的情况下停止并说连接超时?
- 16. Laravel“有”的变化而变化的情况下,以蛇的情况下
- 17. linux/mac上的z3超时
- 18. PHP开关情况超过1值的情况下
- 19. 在超时的情况下向Watir添加重试机制
- 20. PHP脚本在没有错误的情况下超时结束
- 21. 如何在不超时的情况下使用CassiniDev.Lib?
- 22. 在没有超级权限的情况下更改MySQL时区
- 23. 如何在超时的情况下安全地终止UdpClient.receive()?
- 24. DocumentDB:如何在没有超时的情况下运行查询
- 25. 如何在不杀死孩子的情况下超时waitpid?
- 26. 如何在超时情况下执行套接字的AcceptAsync?
- 27. 在没有轮询的情况下观察变量的变化
- 28. Z3使用什么方法来解决无量化位元矢量公式(QF_BV)?
- 29. 的SQLDeveloper变化的情况下(打破格式化)
- 30. Bash:在不显示的情况下初始化这个变量