| 426 | } gic_replay_result; |
| 427 | |
| 428 | static bool gic_replay_parse(cbm_ignore_checked_t *owner, size_t step, |
| 429 | const cbm_ignore_program_t **program, |
| 430 | cbm_ignore_checked_status_t *status, |
| 431 | cbm_ignore_checked_error_t *error) { |
| 432 | const char *rules = step == 0 ? gic_rules0 : gic_rules1; |
| 433 | cbm_ignore_checked_control_t control = gic_control(); |
| 434 | cbm_ignore_checked_parse_result_t out = {.pattern_count = 77}; |
| 435 | *status = cbm_ignore_checked_parse(owner, rules, strlen(rules), &control, &out, error); |
| 436 | if (*status != CBM_IGNORE_CHECKED_OK) |
| 437 | return !out.program && out.pattern_count == 0; |
| 438 | *program = out.program; |
| 439 | return out.program && out.pattern_count == (step == 0 ? 2 : 1); |
| 440 | } |
| 441 | |
| 442 | static bool gic_replay_match(cbm_ignore_checked_t *owner, const cbm_ignore_program_t **program, |
| 443 | size_t step, cbm_ignore_checked_status_t *status, |
no test coverage detected