solidity/test/libyul/yulOptimizerTests/structuralSimplifier/bugfix_visit_after_change.yul

13 lines
229 B
Plaintext
Raw Normal View History

{
// This tests that a bug is fixed where x := 1 was wrongfully
// taken into account before actually visiting the if statement.
let x := 0
if x {
x := 1
}
}
2019-04-01 14:33:46 +00:00
// ====
// step: structuralSimplifier
// ----
// { let x := 0 }