-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix normalization of array reference comparison for normalized arrays (…
- Loading branch information
Showing
11 changed files
with
71 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
//@execute 0=true; 1=false | ||
var x = Array<int>.new(0); | ||
var ax = [x, null]; | ||
def main(i: int) -> bool { | ||
return ax[i] == x; | ||
} |
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,6 @@ | ||
//@execute 0=true; 1=false | ||
var x = Array<(bool, int)>.new(0); | ||
var ax = [x, null]; | ||
def main(i: int) -> bool { | ||
return ax[i] == x; | ||
} |
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,6 @@ | ||
//@execute 0=true; 1=false | ||
def main(i: int) -> bool { | ||
var x = Array<(bool, int)>.new(0); | ||
var ax = [x, null]; | ||
return ax[i] == x; | ||
} |
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,7 @@ | ||
//@execute 0=true; 1=false; 2=false | ||
var x = Array<int>.new(0); | ||
var y = Array<int>.new(0); | ||
def main(i: int) -> bool { | ||
var other = if(i == 0, x, if(i == 1, y)); | ||
return x == other; | ||
} |
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,7 @@ | ||
//@execute 0=true; 1=false; 2=false | ||
var x = Array<(int, void, string)>.new(0); | ||
var y = Array<(int, void, string)>.new(0); | ||
def main(i: int) -> bool { | ||
var other = if(i == 0, x, if(i == 1, y)); | ||
return x == other; | ||
} |
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,8 @@ | ||
//@execute 0=true; 1=false; 2=false | ||
var x = Array<(int, void, string)>.new(0); | ||
var y = Array<(int, void, string)>.new(0); | ||
def eq = Array<(int, void, string)>.==; | ||
def main(i: int) -> bool { | ||
var other = if(i == 0, x, if(i == 1, y)); | ||
return eq(x, other); | ||
} |
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,8 @@ | ||
//@execute 0=true; 1=false; 2=false | ||
var x = Array<Array<(int, void, string)>>.new(0); | ||
var y = Array<Array<(int, void, string)>>.new(0); | ||
def eq = Array<Array<(int, void, string)>>.==; | ||
def main(i: int) -> bool { | ||
var other = if(i == 0, x, if(i == 1, y)); | ||
return eq(x, other); | ||
} |
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,10 @@ | ||
//@execute 0=true; 1=false; 2=false | ||
type T(x: int, y: void, z: string) #unboxed; | ||
|
||
var x = Array<T>.new(0); | ||
var y = Array<T>.new(0); | ||
def eq = Array<T>.==; | ||
def main(i: int) -> bool { | ||
var other = if(i == 0, x, if(i == 1, y)); | ||
return eq(x, other); | ||
} |
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,10 @@ | ||
//@execute 0=true; 1=false; 2=false | ||
type T(x: Array<(int, int)>) #unboxed; | ||
|
||
var x = Array<T>.new(0); | ||
var y = Array<T>.new(0); | ||
def eq = Array<T>.==; | ||
def main(i: int) -> bool { | ||
var other = if(i == 0, x, if(i == 1, y)); | ||
return eq(x, other); | ||
} |