3
와 모델을 생성 할 수 없습니다
나는 내가 smt2 형식으로 믿는다 "knapsack.smt2"라는 파일의 배낭 문제에 대한 다음 예제 코드를하고 난 Z3의 최신 버전이 있습니다는 Z3
을 그러나(declare-const s1 Int)
(declare-const o1 Int)
(declare-const b1 Bool)
(declare-const s2 Int)
(declare-const o2 Int)
(declare-const b2 Bool)
(declare-const s3 Int)
(declare-const o3 Int)
(declare-const b3 Bool)
(declare-const sack-size Int)
(declare-const filled Int)
(assert (< o1 sack-size))
(assert (< o2 sack-size))
(assert (< o3 sack-size))
(assert (>= o1 0))
(assert (>= o2 0))
(assert (>= o3 0))
(assert (=> (not b1)(= o1 o2)))
(assert (=> (not b2)(= o2 o3)))
(assert (=> b1 (= (+ o1 s1) o2)))
(assert (=> b2 (= (+ o2 s2) o3)))
(assert (=> b3 (= (+ o3 s3) filled)))
(assert (=> (not b3) (= o3 filled)))
(assert (<= filled sack-size))
(assert (= o1 0))
(assert (= s1 3))
(assert (= s2 4))
(assert (= s3 5))
(assert (= sack-size 20))
(assert (= filled 13))
(check-sat)
(get-model)
, 내가 실행 "Z3 -m knapsack.smt2"나는 다음과 같은 오류 메시지가 :
라인 (46)은 마지막 줄에 "(수-모델)"입니다>> z3 -m knapsack.smt2
unsat
(error "line 46 column 10: model is not available")
.
아무도 왜 이것이 작동하지 않는지 말할 수 있습니까?
감사합니다.