我尝试在 Z3(版本:4.3.2)中运行数据记录文件(test.dl,来自http://rise4fun.com/Z3/tutorialcontent/fixedpoints#h21),如下所示。
(set-option :fixedpoint.engine datalog)
(define-sort s () (_ BitVec 3))
(declare-rel edge (s s))
(declare-rel path (s s))
(declare-var a s)
(declare-var b s)
(declare-var c s)
(rule (=> (edge a b) (path a b)))
(rule (=> (and (path a b) (path b c)) (path a c)))
(rule (edge #b001 #b010))
(rule (edge #b001 #b011))
(rule (edge #b010 #b100))
(query (path #b001 #b100))
(query (path #b011 #b100))
(query (path #b001 b)
:print-answer true)
有人可以帮助如何运行数据记录文件吗?
谢谢。