mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 02:45:51 +00:00
getting duality to recover from incompleteness-related failures by restarting
This commit is contained in:
parent
c5f17df310
commit
d54d758f45
2 changed files with 28 additions and 7 deletions
|
@ -125,8 +125,18 @@ namespace Duality {
|
|||
|
||||
void timer_stop(const char *name){
|
||||
if(current->name != name || !current->parent){
|
||||
#if 0
|
||||
std::cerr << "imbalanced timer_start and timer_stop";
|
||||
exit(1);
|
||||
#endif
|
||||
// in case we lost a timer stop due to an exception
|
||||
while(current->name != name && current->parent)
|
||||
current = current->parent;
|
||||
if(current->parent){
|
||||
current->time += (current_time() - current->start_time);
|
||||
current = current->parent;
|
||||
}
|
||||
return;
|
||||
}
|
||||
current->time += (current_time() - current->start_time);
|
||||
current = current->parent;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue