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

[Solidity] Fix Visibility #1545

Merged
merged 4 commits into from Dec 18, 2023
Merged

Conversation

ChenfengWei0
Copy link
Collaborator

@ChenfengWei0 ChenfengWei0 commented Dec 18, 2023

fix the algorithm, e.g.

contract Base()
{
    function test1() public {}
    function test2() private {}
}

will now convert to

void sol_main()
{
    while(nondet_bool())
    {
        if(nondet_bool())  test1();
        // if(nondet_bool())  test2();  not include this, due to that it's a private function
}

Also, we add an option --no-visibility which forces verification of all functions (e.g. test2).

@lucasccordeiro lucasccordeiro merged commit 20a91cc into esbmc:master Dec 18, 2023
8 checks passed
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.

None yet

4 participants