-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expression variable dependency checking for high array accesses
- Loading branch information
Showing
9 changed files
with
166 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
_var z: | ||
_L: TRUE | ||
_Mode: NoW | ||
|
||
_var x: | ||
_L: z % 2 == 0 | ||
_Mode: NoW | ||
|
||
_array r_secret[2]: | ||
_L: FALSE | ||
|
||
_P_0: z % 2 == 0 | ||
_Gamma_0: x -> LOW, r_secret -> HIGH | ||
|
||
x = r_secret[1] * r_secret[0] * 0; // shouldn't fail as not dependent on r_secret |
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 @@ | ||
_var z: | ||
_L: TRUE | ||
_Mode: NoW | ||
|
||
_var x: | ||
_L: z % 2 == 0 | ||
_Mode: NoW | ||
|
||
_array r_secret[2]: | ||
_L: FALSE | ||
|
||
_P_0: z == 0 | ||
_Gamma_0: x -> LOW, r_secret -> HIGH | ||
|
||
x = r_secret[z] - r_secret[0]; // shouldn't fail as not dependent on r_secret |
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,19 @@ | ||
_var z: | ||
_L: TRUE | ||
_Mode: NoW | ||
|
||
_var x: | ||
_L: z % 2 == 0 | ||
_Mode: NoW | ||
|
||
_var r_secret: | ||
_L: FALSE | ||
|
||
_array a[2]: | ||
_L: TRUE | ||
_Mode: NoW | ||
|
||
_P_0: z == 0, a[0] == 0 | ||
_Gamma_0: x -> LOW, r_secret -> HIGH, a[*] -> LOW | ||
|
||
x = r_secret * a[0]; // shouldn't fail as not dependent on r_secret as a[0] == 0 |
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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
-comment everything | ||
-z3 simplifier? | ||
-atomic block - specify which variable stable, update D? | ||
-write up array rules | ||
|
||
-pruning P by removing predicates mostly dependent on otherwise unused variables? | ||
-organise expression class - boolean expression subclass & clean up operations? | ||
-more powerful array expressions? | ||
|
||
make handling dependent variable stuff work with arrays? | ||
options for different features | ||
|
||
optimisations? |
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
Oops, something went wrong.