Skip to content

Commit

Permalink
more keepalive checks
Browse files Browse the repository at this point in the history
  • Loading branch information
profelis committed Nov 4, 2024
1 parent e9907d5 commit bfae7a7
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions src/simulate/simulate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,13 @@ namespace das
while ( cond->evalBool(context) && !context.stopFlags ) {
SimNode ** __restrict body = list;
loopbegin:;
for (; body!=tail; ++body) {
(*body)->eval(context);
DAS_PROCESS_LOOP_FLAGS(break);
if (body!=tail) {
for (; body!=tail; ++body) {
(*body)->eval(context);
DAS_PROCESS_LOOP_FLAGS(break);
}
} else {
DAS_KEEPALIVE_LOOP(&context);
}
}
loopend:;
Expand All @@ -676,10 +680,14 @@ namespace das
while ( cond->evalBool(context) && !context.stopFlags ) {
SimNode ** __restrict body = list;
loopbegin:;
for (; body!=tail; ++body) {
DAS_SINGLE_STEP(context,(*body)->debugInfo,true);
(*body)->eval(context);
DAS_PROCESS_LOOP_FLAGS(break);
if (body!=tail) {
for (; body!=tail; ++body) {
DAS_SINGLE_STEP(context,(*body)->debugInfo,true);
(*body)->eval(context);
DAS_PROCESS_LOOP_FLAGS(break);
}
} else {
DAS_KEEPALIVE_LOOP(&context);
}
}
loopend:;
Expand Down

0 comments on commit bfae7a7

Please sign in to comment.