diff options
author | Morgan Deters <mdeters@gmail.com> | 2012-08-01 19:25:10 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2012-08-01 19:25:10 +0000 |
commit | a1a8a758846ae4d0a0bd4d6d2b969afd66ddad42 (patch) | |
tree | bbc4812216da5a6235898d7b621c5bc9063244e7 /src/smt | |
parent | 4e38397c87b4437089b92cd274e65f3d17096d73 (diff) |
fix for the SmtEngine::beforeSearch() option predicate
Diffstat (limited to 'src/smt')
-rw-r--r-- | src/smt/smt_engine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/smt/smt_engine.h b/src/smt/smt_engine.h index 5f0511894..53454b109 100644 --- a/src/smt/smt_engine.h +++ b/src/smt/smt_engine.h @@ -555,7 +555,7 @@ public: * Used as a predicate for options preprocessor. */ static void beforeSearch(std::string option, bool value, SmtEngine* smt) { - if(smt->d_queryMade || smt->d_problemExtended) { + if(smt != NULL && (smt->d_queryMade || smt->d_problemExtended)) { std::stringstream ss; ss << "cannot change option `" << option << "' after assertions have been made"; throw OptionException(ss.str()); |