Skip to content

Commit

Permalink
gen: No end states means nothing to do. (todo: cherry pick)
Browse files Browse the repository at this point in the history
  • Loading branch information
silentbicycle committed Oct 10, 2024
1 parent 8b53634 commit 796c6ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libfsm/gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ fsm_generate_matches(struct fsm *fsm, size_t max_length,
return 0;
}

if (!fsm_has(fsm, fsm_isend)) {
return 1; /* no end state -> nothing to do */
}

INIT_TIMERS();
TIME(&pre);
int res = gen_init_outer(fsm, max_length, cb, opaque, false, 0);
Expand Down

0 comments on commit 796c6ab

Please sign in to comment.