Skip to content

Commit 6e50331

Browse files
committed
Merge branch 'af/fix-empty-slice-error-comp' into af/9544-fix-inevitable-shift
2 parents 64b585a + b8dc376 commit 6e50331

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tooling/ast_fuzzer/src/compare/interpreted.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ impl Comparable for ssa::interpreter::errors::InterpreterError {
223223
(DivisionByZero { .. }, ConstrainEqFailed { msg, .. }) => {
224224
msg.as_ref().is_some_and(|msg| msg == "attempt to divide by zero")
225225
}
226+
(PoppedFromEmptySlice { .. }, ConstrainEqFailed { msg, .. }) => {
227+
// The removal of unreachable instructions can replace popping from an empty slice with an always-fail constraint.
228+
msg.as_ref().is_some_and(|msg| msg == "Index out of bounds")
229+
}
226230
(e1, e2) => {
227231
// The format strings contain SSA instructions,
228232
// where the only difference might be the value ID.

0 commit comments

Comments
 (0)