-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ir): DOT dumper tests; simplify CFG construction
- Loading branch information
1 parent
c5269a9
commit d3e11e6
Showing
56 changed files
with
1,075 additions
and
541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
digraph "conditional-1" { | ||
node [shape=box]; | ||
subgraph "cluster_test" { | ||
label="test"; | ||
"test_141" [label="let a: Int = 20"]; | ||
"test_142" [label="if (a > 42)"]; | ||
"test_144" [label="a = 23"]; | ||
"test_146" [label="let b: Int = a + 1"]; | ||
"test_148" [label="return b"]; | ||
"test_141" -> "test_142"; | ||
"test_142" -> "test_144"; | ||
"test_144" -> "test_146"; | ||
"test_146" -> "test_148"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,3 @@ fun test(): Int { | |
let b: Int = a + 1; | ||
return b; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
digraph "conditional-2" { | ||
node [shape=box]; | ||
subgraph "cluster_test" { | ||
label="test"; | ||
"test_141" [label="let a: Int = 20"]; | ||
"test_142" [label="if (a > 42)"]; | ||
"test_144" [label="a = 23"]; | ||
"test_146" [label="a = 22"]; | ||
"test_148" [label="return a"]; | ||
"test_141" -> "test_142"; | ||
"test_142" -> "test_144"; | ||
"test_142" -> "test_146"; | ||
"test_144" -> "test_148"; | ||
"test_146" -> "test_148"; | ||
} | ||
} |
Oops, something went wrong.