-
Notifications
You must be signed in to change notification settings - Fork 381
fix(ssa): Mislabeled instructions with side effects in EnableSideEffectsIf removal pass #8355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 10 commits
50db199
6914e9c
f84c51f
934e155
a1de81f
8830669
e334339
91f446a
f72de06
b4e6bb4
f17bea1
54f57bb
bbefd38
b1bda11
6f59605
cf98ffc
14ba21c
3c50dab
1cc2808
4bf5692
2218853
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| [package] | ||
| name = "regression_8236" | ||
| type = "bin" | ||
| authors = [""] | ||
|
|
||
| [dependencies] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| a = [ | ||
| "0x000000000000000000000000000000000000000000000000000000000000afdb", | ||
| "0x000000000000000000000000000000000000000000000000000000000000472d", | ||
| "0x00000000000000000000000000000000000000000000000000000000000046ce", | ||
| ] | ||
| b = [false] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| global G_A: [u16; 3] = [33700, 47314, 35095]; | ||
| global G_B: [u16; 3] = [59890, 17417, 14409]; | ||
| fn main(a: [u16; 3], b: [bool; 1]) -> pub bool { | ||
| // Safety: testing context | ||
| let res = unsafe { func_1(G_B, true) }[(((a[0] as u32) % (G_B[2] as u32)) % 1)]; | ||
| if res { | ||
| // Safety: testing context | ||
| let c = unsafe { func_1(a, b[0]) }; | ||
| b[0] | ||
| } else { | ||
| ((a[((a[0] as u32) % 3)] as u32) > ((24993 % G_A[1]) as u32)) | ||
| } | ||
| } | ||
| unconstrained fn func_1(a: [u16; 3], b: bool) -> [bool; 1] { | ||
| [false] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| [regression_8236] Circuit output: Field(0) |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.