我使用数组作为z3定点解算器中关系的参数。我试图在证书中获取满足我的查询的数组值。当我在z3上运行它时会抛出一个错误,指出未解释' a1'在A(#1,#0,#3)。
为什么数组被视为未解释?这是否意味着未解释的函数不能用作定点解算器中关系的参数?
(declare-rel A (Int Int (Array Int Int)))
(declare-rel q1 (Int Int (Array Int Int)))
(declare-const a1 (Array Int Int))
(declare-var a Int)
(declare-var b Int)
(declare-var i Int)
(rule (=> (A (+ a 1) b (store a1 i 2)) (A a b a1)))
(rule (=> (= a b) (A a b a1)))
(rule (=> (and (A a b a1) (= a 0) (= b 1)) (q1 a b a1)))
(query q1 :print-certificate true)