-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the tree cloner also clone Member(TypeNameExpression) to ensure …
…the result is a DAG (#4539) * Make the tree cloner also clone Member(TypeNameExpression) to ensure the result is a DAG Signed-off-by: Mihai Budiu <[email protected]> * clang-format Signed-off-by: Mihai Budiu <[email protected]> * Rename ClonePathExpressions -> CloneExpressions --------- Signed-off-by: Mihai Budiu <[email protected]> Co-authored-by: kfcripps <[email protected]>
- Loading branch information
1 parent
bc5346d
commit cad37c1
Showing
13 changed files
with
128 additions
and
12 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
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,23 @@ | ||
enum E { | ||
e0 | ||
} | ||
|
||
extern void bar(E x); | ||
|
||
extern void baz(); | ||
|
||
void foo(E y) { | ||
bar(y); | ||
if (y == E.e0) baz(); | ||
} | ||
|
||
control c() { | ||
apply { | ||
foo(E.e0); | ||
} | ||
} | ||
|
||
control proto(); | ||
package top(proto p); | ||
|
||
top(c()) main; |
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,21 @@ | ||
enum E { | ||
e0 | ||
} | ||
|
||
extern void bar(E x); | ||
extern void baz(); | ||
void foo(E y) { | ||
bar(y); | ||
if (y == E.e0) { | ||
baz(); | ||
} | ||
} | ||
control c() { | ||
apply { | ||
foo(E.e0); | ||
} | ||
} | ||
|
||
control proto(); | ||
package top(proto p); | ||
top(c()) main; |
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,18 @@ | ||
enum E { | ||
e0 | ||
} | ||
|
||
extern void bar(E x); | ||
extern void baz(); | ||
control c() { | ||
apply { | ||
bar(E.e0); | ||
if (E.e0 == E.e0) { | ||
baz(); | ||
} | ||
} | ||
} | ||
|
||
control proto(); | ||
package top(proto p); | ||
top(c()) main; |
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,25 @@ | ||
enum E { | ||
e0 | ||
} | ||
|
||
extern void bar(E x); | ||
extern void baz(); | ||
control c() { | ||
@hidden action issue4500l10() { | ||
bar(E.e0); | ||
baz(); | ||
} | ||
@hidden table tbl_issue4500l10 { | ||
actions = { | ||
issue4500l10(); | ||
} | ||
const default_action = issue4500l10(); | ||
} | ||
apply { | ||
tbl_issue4500l10.apply(); | ||
} | ||
} | ||
|
||
control proto(); | ||
package top(proto p); | ||
top(c()) main; |
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,21 @@ | ||
enum E { | ||
e0 | ||
} | ||
|
||
extern void bar(E x); | ||
extern void baz(); | ||
void foo(E y) { | ||
bar(y); | ||
if (y == E.e0) { | ||
baz(); | ||
} | ||
} | ||
control c() { | ||
apply { | ||
foo(E.e0); | ||
} | ||
} | ||
|
||
control proto(); | ||
package top(proto p); | ||
top(c()) main; |
Empty file.