add a simulator #3

Merged
programmerjake merged 58 commits from adding-simulator into master 2024-12-16 04:06:48 +00:00
Showing only changes of commit 965fe53077 - Show all commits

View file

@ -770,7 +770,10 @@ impl<'a, P: Pass> PassArgs<'a, P> {
fallback_error_source_location: Option<SourceLocation>,
) -> Result<(), DeduceResetsError> {
assert_eq!(a.layout, b.layout);
assert_eq!(a.ty, b.ty);
assert!(
a.ty.can_connect(b.ty),
"can't connect types! a:\n{a:?}\nb:\n{b:?}"
);
for (a_node_index, b_node_index) in a.node_indexes.into_iter().zip(b.node_indexes) {
self.state.reset_graph.union(
a_node_index,