File tree 1 file changed +11
-11
lines changed
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -99,13 +99,16 @@ namespace smt {
99
99
m_model_generator->set_context (this );
100
100
}
101
101
102
-
102
+ ::
103
103
/* *
104
104
\brief retrieve flag for when cancelation is possible.
105
105
*/
106
106
107
107
bool context::get_cancel_flag () {
108
- return !m.limit ().inc ();
108
+ if (m.limit ().inc ())
109
+ return false ;
110
+ m_last_search_failure = CANCELED;
111
+ return true ;
109
112
}
110
113
111
114
void context::updt_params (params_ref const & p) {
@@ -3745,8 +3748,9 @@ namespace smt {
3745
3748
VERIFY (!resolve_conflict ());
3746
3749
return l_false;
3747
3750
}
3748
- if (get_cancel_flag ())
3751
+ if (get_cancel_flag ())
3749
3752
return l_undef;
3753
+
3750
3754
timeit tt (get_verbosity_level () >= 100 , " smt.stats" );
3751
3755
reset_model ();
3752
3756
SASSERT (at_search_level ());
@@ -3959,10 +3963,8 @@ namespace smt {
3959
3963
if (m_last_search_failure != OK)
3960
3964
return true ;
3961
3965
3962
- if (get_cancel_flag ()) {
3963
- m_last_search_failure = CANCELED;
3964
- return true ;
3965
- }
3966
+ if (get_cancel_flag ())
3967
+ return true ;
3966
3968
3967
3969
if (m_progress_callback) {
3968
3970
m_progress_callback->fast_progress_sample ();
@@ -3973,10 +3975,8 @@ namespace smt {
3973
3975
}
3974
3976
}
3975
3977
3976
- if (get_cancel_flag ()) {
3977
- m_last_search_failure = CANCELED;
3978
- return true ;
3979
- }
3978
+ if (get_cancel_flag ())
3979
+ return true ;
3980
3980
3981
3981
if (memory::above_high_watermark ()) {
3982
3982
m_last_search_failure = MEMOUT;
You can’t perform that action at this time.
0 commit comments