[SMTChecker] Support named arguments in function calls

This commit is contained in:
Leonardo Alt
2020-11-20 11:52:26 -01:00
parent 8d315ee130
commit e4339b0526
12 changed files with 120 additions and 41 deletions
@@ -1,8 +1,10 @@
contract test {
function a(uint a, uint b, uint c) public returns (uint r) { r = a * 100 + b * 10 + c * 1; }
function b() public returns (uint r) { r = a({a: 1, b: 2, c: 3}); }
function c() public returns (uint r) { r = a({b: 2, c: 3, a: 1}); }
}
// ====
// compileViaYul: also
// ----
// b() -> 123
// c() -> 123