max_action_info mai (*session);
v->body->visit (&mai);
- if (mai.statement_count < mai.max_statement_count
- && !session->suppress_time_limits
+ if (mai.statement_count_finite() && !session->suppress_time_limits
&& !session->unoptimized) // this is a finite-statement-count function
{
o->newline() << "if (c->actionremaining < " << mai.statement_count
if (session->verbose > 1)
clog << _F("%d statements for probe %s", mai.statement_count, v->name.c_str()) << endl;
- if (mai.statement_count < mai.max_statement_count
- && !session->suppress_time_limits
+ if (mai.statement_count_finite() && !session->suppress_time_limits
&& !session->unoptimized) // this is a finite-statement-count probe
{
o->newline() << "if (c->actionremaining < " << mai.statement_count