小编Ash*_*hiq的帖子

Z3中警告消息背后的原因是什么:"找不到量词的模式(量词id:k!18)"

我发现了一个问题,如下面的简单SMT-LIB程序所示.

SMT-LIB代码:

(declare-fun isDigit (Int) Bool)
(assert (forall ((x Int))
    (=>     (isDigit x)
        (and (>= x 0) (< x 10))
    )
  )
) 

(assert (forall ((x Int))   
    (=>     (and (>= x 12) (< x 15))
        (exists ((y Int))
            (and    (>= y 1) (< y 6)
                (isHost (- x y))
            )
        )
    )
  )
)

(check-sat)
(get-model)
Run Code Online (Sandbox Code Playgroud)

这给出了以下警告:

WARNING: failed to find a pattern for quantifier (quantifier id: k!18)
sat
........
........
Run Code Online (Sandbox Code Playgroud)

我想知道警告信息.我知道我错过了什么,但我无法理解.任何人都可以帮我解决这个问题吗?

z3

6
推荐指数
1
解决办法
249
查看次数

标签 统计

z3 ×1