You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add more samples for the dominate and dominateStmt relations in the analysis.spec.ts test. The samples should carefully test the exact ordering of operations in specific edge cases. Specifically pay attention to the following edge cases:
ordering along modifier invocation
constructors with a mixture of base invocations and modifier invocations
ordering of binary operations (something like (uint x = (y = y + 2) - (y = y + 3)). Which branch executes first? Is it always the same for all binary operators or does it vary?
What is the order of evalation of function agruments? (something like foo(y = y *2, y++, y += x)). Are they evaluated left to right or right to left?
Does the callee expresion of a function call get evaluated before or after the arguments? (e.g. something like foo { val : y += 1 }(y))
Does the base expression or index expression of a index access get evaluated first? . This is trickier to test. Perhaps something like: a[a.push(idx)]?
Same question for IndexRangeAccess
In FunctionCallOption, does the base expression get evaluated first, or the options? Again, this is tricier to test. Maybe something along the lines of a{gas: y++}{value: y++}()?
What is the order of evaluation for tuple expressions? Something like (uint x, uint y, uint z) = (t++, t++, t++);
The text was updated successfully, but these errors were encountered:
Add more samples for the dominate and dominateStmt relations in the
analysis.spec.ts
test. The samples should carefully test the exact ordering of operations in specific edge cases. Specifically pay attention to the following edge cases:uint x = (y = y + 2) - (y = y + 3)
). Which branch executes first? Is it always the same for all binary operators or does it vary?foo(y = y *2, y++, y += x)
). Are they evaluated left to right or right to left?foo { val : y += 1 }(y)
)a[a.push(idx)]
?FunctionCallOption
, does the base expression get evaluated first, or the options? Again, this is tricier to test. Maybe something along the lines ofa{gas: y++}{value: y++}()
?(uint x, uint y, uint z) = (t++, t++, t++);
The text was updated successfully, but these errors were encountered: