String Z3 4.5.1中缺失(str.to-int s)

String Z3 4.5.1中缺失(str.to-int s),string,z3,smt,String,Z3,Smt,我正在将Z3 4.5.1成功地用于字符串和操作,如子字符串、字符串长度、字符串比较等,如以下示例: (declare-const s1 String) (declare-const s2 String) (declare-const i Int) (assert (= s1 "97\x00098\x0099###$$")) (assert (= s2 (str.substr s1 2 (- (str.len s1) 2)))) (assert (= "\x00058\x0099###$$" (s

我正在将Z3 4.5.1成功地用于字符串和操作,如子字符串、字符串长度、字符串比较等,如以下示例:

(declare-const s1 String)
(declare-const s2 String)
(declare-const i Int)
(assert (= s1 "97\x00098\x0099###$$"))
(assert (= s2 (str.substr s1 2 (- (str.len s1) 2))))
(assert (= "\x00058\x0099###$$" (str.replace s2 "9" "5")))
(check-sat)
(get-value (s1 s2 i))
但是,当我尝试添加str.to-int时:

(declare-const s1 String)
(declare-const s2 String)
(declare-const i Int)
(assert (= s1 "97\x00098\x0099###$$"))
(assert (= s2 (str.substr s1 2 (- (str.len s1) 2))))
(assert (= "\x00058\x0099###$$" (str.replace s2 "9" "5")))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(assert (= 98 (str.to-int "000098")))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(check-sat)
(get-value (s1 s2 i))
我得到这个错误:

(error "line 8 column 35: unknown function/constant str.to-int")
我很困惑,因为“to int”与其他元素一起出现在文档中
所有的字符串操作都工作得很好。我正在使用以下文档:。非常感谢您的帮助,谢谢

Z3已经使用str.to.int和int.to.str一段时间了。字符串的SMTLIB2格式目前也尚未最终确定