Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copy event arguments during ssa conversion #1488

Merged
merged 2 commits into from
Dec 12, 2022
Merged

copy event arguments during ssa conversion #1488

merged 2 commits into from
Dec 12, 2022

Conversation

0xalpharush
Copy link
Contributor

@0xalpharush 0xalpharush commented Dec 2, 2022

close #1345, close #1438
Now, the event contains the args:

Contract BasicToken
        Function BasicToken.transfer(address,uint256)
                IRs:
                        balances_1(mapping(address => uint256)) := ϕ(['balances_3', 'balances_0'])
                Expression: balances[msg.sender] = balances[msg.sender] - _value
                IRs:
                        REF_0(uint256) -> balances_1[msg.sender]
                        REF_1(uint256) -> balances_1[msg.sender]
                        TMP_0(uint256) = REF_1 (c)- _value_1
                        balances_2(mapping(address => uint256)) := ϕ(['balances_1'])
                        REF_0 (->balances_2) := TMP_0(uint256)
                Expression: balances[_to] = balances[_to] + _value
                IRs:
                        REF_2(uint256) -> balances_2[_to_1]
                        REF_3(uint256) -> balances_2[_to_1]
                        TMP_1(uint256) = REF_3 (c)+ _value_1
                        balances_3(mapping(address => uint256)) := ϕ(['balances_2'])
                        REF_2 (->balances_3) := TMP_1(uint256)
                Expression: Transfer(msg.sender,_to,_value)
                IRs:
                        Emit Transfer(msg.sender,_to_1,_value_1)

@montyly montyly merged commit 5314d76 into dev Dec 12, 2022
@montyly montyly deleted the ssa-copy branch December 12, 2022 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants