Comments (2)
another case in incremental mode:
(set-logic ALL)
(set-option :incremental true)
(declare-const i2 Int)
(declare-fun f (Int Int) Int)
(assert (! (forall ((q0 Int) (q1 Int))
(=> (= (f i2 q0) 0) (= q1 (* i2 q0)))):named IP_3))
(push 1)
(assert (> i2 10))
(check-sat)
(get-model)
(pop 1)
(check-sat)
(get-model)
cvc5 --produce-models --check-model --finite-model-find test.smt2
sat
(
(define-fun i2 () Int 11)
(define-fun f (($x1 Int) ($x2 Int)) Int 11)
)
unknown
(
(define-fun i2 () Int 11)
(define-fun f (($x1 Int) ($x2 Int)) Int (ite (and (= $x1 11) (= $x2 0)) (- 1) 0))
)
In fact, the solution problem after the pop command is equivalent to:
(set-logic ALL)
(declare-const i2 Int)
(declare-fun f (Int Int) Int)
(assert (! (forall ((q0 Int) (q1 Int))
(=> (= (f i2 q0) 0) (= q1 (* i2 q0)))):named IP_3))
(check-sat)
(get-model)
cvc5 --produce-models --check-model --finite-model-find test.smt2
sat
(
(define-fun i2 () Int 0)
(define-fun f (($x1 Int) ($x2 Int)) Int (- 1))
)
from cvc5.
When cvc5 returns "unknown", the model returned is not guaranteed to be a model of original input formula. It however will in practice satisfy all quantifier-free constraints in most decidable theories.
FYI, for more details on how to understand information from cvc5 and further diagnose issues like this, I recommend reading my latest blog post here: https://cvc5.github.io/blog/2024/04/15/interfaces-for-understanding-cvc5.html
from cvc5.
Related Issues (20)
- Fatal failure at src/theory/arith/nl/nl_model.cpp:883 HOT 3
- Create a floating point term from a float/double
- The result of `get-value` is not a ground term HOT 1
- Interpolation does not propagate equalities(?) HOT 2
- (sygus-inst) Fatal failure at theory/arrays/theory_arrays.cpp:1595
- Invalid model issue HOT 2
- Why does the divide by 0 error crash? HOT 9
- cvc5 suffered a segfault when producing proofs in experimental format HOT 4
- Unable to solve sygus or smt bitvector problem with extract and nested ITE HOT 5
- Fatal failure at src/theory/theory_model_builder.cpp:1089
- Error solving for boolean operations HOT 4
- Different model on macOS and linux
- Performance issues caused by mismatched brackets
- Bad model value for integer variable with unknown result HOT 1
- Inconsistent solutions to equivalent formulas for sqrt HOT 4
- "conditional jump or move depends on uninitialised value" in RealAlgebraicNumber::toRational()
- Finite Field theory Unexplained Polynomial failure HOT 4
- (check-proofs) Fatal failure at src/proof/proof_node_manager.cpp:247
- Invalid model issue with `--finite-model-find`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cvc5.