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

Error: Missing branches #40

Closed
aj3423 opened this issue Mar 31, 2022 · 3 comments
Closed

Error: Missing branches #40

aj3423 opened this issue Mar 31, 2022 · 3 comments

Comments

@aj3423
Copy link

aj3423 commented Mar 31, 2022

Here is a simple contract:

// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;

contract Test{
	function p1() private returns(int) {
		return 3;
	}
	function p2() external returns(int) {
		return p1();
	}
}

solc --bin-runtime a.sol outputs 6080604052348015600f57600080fd5b506004361060285760003560e01c806381d01ed314602d575b600080fd5b60336047565b604051603e91906074565b60405180910390f35b6000604f6054565b905090565b60006003905090565b6000819050919050565b606e81605d565b82525050565b6000602082019050608760008301846067565b9291505056fea26469706673582212200a7cedf97c05163dd6a5a92d897b2d089f38434e1d25e6ef981ce390a3805ba064736f6c634300080a0033

Then I tried evm_cfg_builder a.evm, the output shows ERROR:evm-cfg-builder:Missing branches p2():0x5c.

Why is the error? Thanks.

@heyCoke
Copy link

heyCoke commented Apr 17, 2022

I also encountered this problem. Have you solved it?

@vlavrenenko-hacken
Copy link

Did you solve it?

@himanshuchuri
Copy link

I am having the same issue. When I compile my code using the latest compiler version it does not provide me the correct cfg. My code consists of a simple if-else loop. Is this an issue with the underlying pyevmasm library?

@aj3423 aj3423 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 17, 2024
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

No branches or pull requests

4 participants