Skip to content

Commit

Permalink
add fallback edge for SwitchInt
Browse files Browse the repository at this point in the history
  • Loading branch information
jberthold committed Jan 28, 2025
1 parent 8131fcd commit d04bb6a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,13 @@ integration-test: build
[ -z "$$errors" ] || (echo "===============\nFAILING TESTS:$$errors"; exit 1)


integration-json:
$(MAKE) run-golden SUFFIX=json NORMALIZE="jq -S -e -f $(TESTDIR)/../normalise-filter.jq"

integration-dot:
$(MAKE) run-golden SUFFIX=dot

integration-test: integration-json integration-dot

golden:
make integration-test DIFF=">"
7 changes: 6 additions & 1 deletion src/mk_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ impl SmirJson<'_> {
.edge(&this_block, block_name(name, t))
.attributes()
.set_label(&format!("{d}"));
}
};
cluster
.edge(&this_block, block_name(name, targets.otherwise()))
.attributes()
.set_label("other");

},
Resume{} => {
n.set_label("Resume");
Expand Down

0 comments on commit d04bb6a

Please sign in to comment.