Skip to content

Commit

Permalink
Notify the user of all unhandled cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Salzberg committed Aug 26, 2024
1 parent fb388f3 commit 0c17fdd
Showing 1 changed file with 3 additions and 39 deletions.
42 changes: 3 additions & 39 deletions kani-compiler/src/kani_middle/transform/check_aliasing/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,7 @@ impl<'locals> CollectActions<'locals> {
self.visit_place(place);
}
// The rest are not yet handled
Rvalue::Aggregate(_, _) => {}
Rvalue::BinaryOp(_, _, _) => {}
Rvalue::Cast(_, _, _) => {}
Rvalue::CheckedBinaryOp(_, _, _) => {}
Rvalue::CopyForDeref(_) => {}
Rvalue::Discriminant(_) => {}
Rvalue::Len(_) => {}
Rvalue::Repeat(_, _) => {}
Rvalue::ShallowInitBox(_, _) => {}
Rvalue::ThreadLocalRef(_) => {}
Rvalue::NullaryOp(_, _) => {}
Rvalue::UnaryOp(_, _) => {}
Rvalue::Use(_) => {}
_ => { eprintln!("Not yet handled: {:?}", rvalue); }
}
}

Expand All @@ -165,18 +153,7 @@ impl<'locals> CollectActions<'locals> {
self.visit_rvalue_places(rvalue);
self.visit_place(place);
}
StatementKind::FakeRead(_, _) => {}
StatementKind::SetDiscriminant { .. } => {}
StatementKind::Deinit(_) => {}
StatementKind::StorageLive(_) => {}
StatementKind::StorageDead(_) => {}
StatementKind::Retag(_, _) => {}
StatementKind::PlaceMention(_) => {}
StatementKind::AscribeUserType { .. } => {}
StatementKind::Coverage(_) => {}
StatementKind::Intrinsic(_) => {}
StatementKind::ConstEvalCounter => {}
StatementKind::Nop => {}
_ => { eprintln!("Not yet handled: {:?}", stmt); }
}
}

Expand Down Expand Up @@ -217,20 +194,7 @@ impl<'locals> CollectActions<'locals> {
}
}
}
// The following are not yet handled, however, no info is printed
// to avoid blowups:
StatementKind::Retag(_, _) => {}
StatementKind::FakeRead(_, _) => {}
StatementKind::SetDiscriminant { .. } => {}
StatementKind::Deinit(_) => {}
StatementKind::StorageLive(_) => {}
StatementKind::StorageDead(_) => {}
StatementKind::PlaceMention(_) => {}
StatementKind::AscribeUserType { .. } => {}
StatementKind::Coverage(_) => {}
StatementKind::Intrinsic(_) => {}
StatementKind::ConstEvalCounter => {}
StatementKind::Nop => {}
_=> { eprintln!("Not yet handled, {:?}", stmt); }
}
}
}

0 comments on commit 0c17fdd

Please sign in to comment.