Fix revert pruner modifying function flows wrong

This commit is contained in:
Mathias Baumann
2021-06-03 17:37:50 +02:00
parent 424edcc562
commit d8ffdf11c8
3 changed files with 24 additions and 3 deletions
+1
View File
@@ -44,6 +44,7 @@ this nonsensical example::
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
// This will report a warning
contract C {
function g(uint a) public pure returns (uint ret) { return a + f(); }
function f() internal pure returns (uint ret) { return g(7) + f(); }