diff options
| author | Taras Bereznyak <bereznyak.taras1@huawei.com> | 2021-11-04 13:33:01 +0300 | 
|---|---|---|
| committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2021-11-20 12:34:37 +0100 | 
| commit | 0379144709c2bc47b6fc4bc42c5fe00a24d01a0d (patch) | |
| tree | 375dfb5b52d24bb4aa1aecb98d708c6d82379ae6 /lib/Core/SpecialFunctionHandler.cpp | |
| parent | f4c4f164a2d9132fcc53c0ce44ea8c5379d4d93e (diff) | |
| download | klee-0379144709c2bc47b6fc4bc42c5fe00a24d01a0d.tar.gz | |
Fixed fail with preferCex, removed relation from first argument
Diffstat (limited to 'lib/Core/SpecialFunctionHandler.cpp')
| -rw-r--r-- | lib/Core/SpecialFunctionHandler.cpp | 8 | 
1 files changed, 1 insertions, 7 deletions
| diff --git a/lib/Core/SpecialFunctionHandler.cpp b/lib/Core/SpecialFunctionHandler.cpp index 27ca385c..94c4dc3c 100644 --- a/lib/Core/SpecialFunctionHandler.cpp +++ b/lib/Core/SpecialFunctionHandler.cpp @@ -549,13 +549,7 @@ void SpecialFunctionHandler::handlePreferCex(ExecutionState &state, if (cond->getWidth() != Expr::Bool) cond = NeExpr::create(cond, ConstantExpr::alloc(0, cond->getWidth())); - Executor::ExactResolutionList rl; - executor.resolveExact(state, arguments[0], rl, "prefex_cex"); - - assert(rl.size() == 1 && - "prefer_cex target must resolve to precisely one object"); - - rl[0].first.first->cexPreferences.push_back(cond); + state.addCexPreference(cond); } void SpecialFunctionHandler::handlePosixPreferCex(ExecutionState &state, | 
