Skip to content

Commit

Permalink
Check that the matches len is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasAlaif committed Dec 18, 2024
1 parent 712bc63 commit 845c28b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions smt-log-parser/src/parsers/z3/z3parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,10 @@ impl Z3LogParser for Z3Parser {
blamed: blamed.into(),
frame: self.stack.active_frame(),
};
debug_assert_eq!(
self[pattern].child_ids.len(),
match_.trigger_matches().count()
);
self.insts.new_match(fingerprint, match_)?;
Ok(())
}
Expand Down

0 comments on commit 845c28b

Please sign in to comment.