-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
43 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
} | ||
} | ||
// ==== | ||
// dialect: yul | ||
// dialect: evmTyped | ||
// ---- | ||
// step: conditionalSimplifier | ||
// | ||
|
10 changes: 5 additions & 5 deletions
10
test/libyul/yulOptimizerTests/disambiguator/for_statement.yul
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,23 +1,23 @@ | ||
{ | ||
{ let a:u256, b:u256 } | ||
{ | ||
function eq(x: u256, y: u256) -> z: bool {} | ||
for { let a:u256 } eq(a, a) { a := a } { | ||
function eq_function(x: u256, y: u256) -> z: bool {} | ||
for { let a:u256 } eq_function(a, a) { a := a } { | ||
let b:u256 := a | ||
} | ||
} | ||
} | ||
// ==== | ||
// dialect: yul | ||
// dialect: evmTyped | ||
// ---- | ||
// step: disambiguator | ||
// | ||
// { | ||
// { let a, b } | ||
// { | ||
// function eq(x, y) -> z:bool | ||
// function eq_function(x, y) -> z:bool | ||
// { } | ||
// for { let a_1 } eq(a_1, a_1) { a_1 := a_1 } | ||
// for { let a_1 } eq_function(a_1, a_1) { a_1 := a_1 } | ||
// { let b_2 := a_1 } | ||
// } | ||
// } |
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
} | ||
} | ||
// ==== | ||
// dialect: yul | ||
// dialect: evmTyped | ||
// ---- | ||
// step: disambiguator | ||
// | ||
|
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,7 +6,7 @@ | |
} | ||
} | ||
// ==== | ||
// dialect: yul | ||
// dialect: evmTyped | ||
// ---- | ||
// step: disambiguator | ||
// | ||
|
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
2 changes: 1 addition & 1 deletion
2
...ptimizerTests/disambiguator/smoke_yul.yul → ...zerTests/disambiguator/smoke_evmTyped.yul
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,6 +1,6 @@ | ||
{ } | ||
// ==== | ||
// dialect: yul | ||
// dialect: evmTyped | ||
// ---- | ||
// step: disambiguator | ||
// | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
} | ||
} | ||
// ==== | ||
// dialect: yul | ||
// dialect: evmTyped | ||
// ---- | ||
// step: disambiguator | ||
// | ||
|
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
2 changes: 1 addition & 1 deletion
2
test/libyul/yulOptimizerTests/disambiguator/variables_clash.yul
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,7 +6,7 @@ | |
} | ||
} | ||
// ==== | ||
// dialect: yul | ||
// dialect: evmTyped | ||
// ---- | ||
// step: disambiguator | ||
// | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
let e:u256 | ||
} | ||
// ==== | ||
// dialect: yul | ||
// dialect: evmTyped | ||
// ---- | ||
// step: functionGrouper | ||
// | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
} | ||
} | ||
// ==== | ||
// dialect: yul | ||
// dialect: evmTyped | ||
// ---- | ||
// step: functionGrouper | ||
// | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
} | ||
} | ||
// ==== | ||
// dialect: yul | ||
// dialect: evmTyped | ||
// ---- | ||
// step: functionHoister | ||
// | ||
|
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,7 +6,7 @@ | |
let e:u256 | ||
} | ||
// ==== | ||
// dialect: yul | ||
// dialect: evmTyped | ||
// ---- | ||
// step: functionHoister | ||
// | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
} | ||
} | ||
// ==== | ||
// dialect: yul | ||
// dialect: evmTyped | ||
// ---- | ||
// step: functionHoister | ||
// | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
function f() {} | ||
} | ||
// ==== | ||
// dialect: yul | ||
// dialect: evmTyped | ||
// ---- | ||
// step: functionHoister | ||
// | ||
|
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,16 +1,7 @@ | ||
{ | ||
let x1:bool := true:bool | ||
let x2:u8 := 1:u8 | ||
let x3:s8 := 1:s8 | ||
let x4:u32 := 1:u32 | ||
let x5:s32 := 1:s32 | ||
let x6:u64 := 1:u64 | ||
let x7:s64 := 1:s64 | ||
let x8:u128 := 1:u128 | ||
let x9:s128 := 1:s128 | ||
let x10:u256 := 1:u256 | ||
let x11:s256 := 1:s256 | ||
let x2:u256 := 1:u256 | ||
} | ||
// ==== | ||
// dialect: yul | ||
// dialect: evmTyped | ||
// ---- |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ pop } | ||
// ==== | ||
// dialect: yul | ||
// dialect: evm | ||
// ---- | ||
// ParserError 6913: (6-7): Call or assignment expected. |
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 |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
function g(a:u256) -> b {} | ||
} | ||
// ==== | ||
// dialect: yul | ||
// dialect: evmTyped | ||
// ---- |
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,6 @@ | ||
{ | ||
let return:u256 := 1:u256 | ||
let byte:u256 := 1:u256 | ||
let address:u256 := 1:u256 | ||
let bool:u256 := 1:u256 | ||
} | ||
// ==== | ||
// dialect: yul | ||
// dialect: evmTyped | ||
// ---- |
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 |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
let x := 7 | ||
} | ||
// ==== | ||
// dialect: yul | ||
// dialect: evm | ||
// ---- |
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,8 +1,8 @@ | ||
{ | ||
function add(a:u256, b:u256) -> c:u256 {} | ||
function add_fn(a:u256, b:u256) -> c:u256 {} | ||
let y:u256 := 2:u256 | ||
let x:u256 := add(7:u256, add(6:u256, y)) | ||
let x:u256 := add_fn(7:u256, add_fn(6:u256, y)) | ||
} | ||
// ==== | ||
// dialect: yul | ||
// dialect: evmTyped | ||
// ---- |