@@ -1891,7 +1891,7 @@ tests = testGroup "hevm"
18911891 let calldata = (WriteWord (Lit 0x0 ) (Var " u" ) (ConcreteBuf " " ), [] )
18921892 initVM <- liftIO $ stToIO $ abstractVM calldata initCode Nothing True
18931893 let iterConf = IterConfig {maxIter= Nothing , askSmtIters= 1 , loopHeuristic= StackBased }
1894- expr <- Expr. simplify <$> interpret (Fetch. oracle s Nothing mempty ) iterConf initVM runExpr
1894+ expr <- Expr. simplify <$> interpret (Fetch. noRpcFetcher s ) iterConf initVM runExpr
18951895 assertBoolM " unexptected partial execution" (not $ Expr. containsNode isPartial expr)
18961896 , test " mixed-concrete-symbolic-args" $ do
18971897 Just c <- solcRuntime " C"
@@ -1982,7 +1982,7 @@ tests = testGroup "hevm"
19821982 withDefaultSolver $ \ s -> do
19831983 vm <- liftIO $ stToIO $ loadSymVM runtimecode (Lit 0 ) initCode False
19841984 let iterConf = IterConfig {maxIter= Nothing , askSmtIters= 1 , loopHeuristic= StackBased }
1985- expr <- Expr. simplify <$> interpret (Fetch. oracle s Nothing mempty ) iterConf vm runExpr
1985+ expr <- Expr. simplify <$> interpret (Fetch. noRpcFetcher s ) iterConf vm runExpr
19861986 case expr of
19871987 Partial _ _ (JumpIntoSymbolicCode _ _ _) -> assertBoolM " " True
19881988 _ -> assertBoolM " did not encounter expected partial node" False
@@ -2022,7 +2022,7 @@ tests = testGroup "hevm"
20222022 , (" test/contracts/fail/symbolicFail.sol" , " prove_symb_fail_allrev_selector.*" , (False , False ))
20232023 , (" test/contracts/fail/symbolicFail.sol" , " prove_symb_fail_somerev_selector.*" , (False , True ))]
20242024 forM_ cases $ \ (testFile, match, expected) -> do
2025- actual <- runForgeTestCustom testFile match Nothing Nothing False mempty
2025+ actual <- runForgeTestCustom testFile match Nothing Nothing False Fetch. noRpc
20262026 putStrLnM $ " Test result for " <> testFile <> " match: " <> T. unpack match <> " : " <> show actual
20272027 assertEqualM " Must match" expected actual
20282028 , test " Trivial-Fail" $ do
@@ -2055,14 +2055,14 @@ tests = testGroup "hevm"
20552055 runForgeTest testFile " prove_trivial" >>= assertEqualM " prove_trivial" (False , False )
20562056 runForgeTest testFile " prove_trivial_dstest" >>= assertEqualM " prove_trivial_dstest" (False , False )
20572057 runForgeTest testFile " prove_add" >>= assertEqualM " prove_add" (False , True )
2058- runForgeTestCustom testFile " prove_smtTimeout" (Just 1 ) Nothing False mempty
2058+ runForgeTestCustom testFile " prove_smtTimeout" (Just 1 ) Nothing False Fetch. noRpc
20592059 >>= assertEqualM " prove_smtTimeout" (True , False )
20602060 runForgeTest testFile " prove_multi" >>= assertEqualM " prove_multi" (False , True )
20612061 runForgeTest testFile " prove_distributivity" >>= assertEqualM " prove_distributivity" (False , True )
20622062 , test " Loop-Tests" $ do
20632063 let testFile = " test/contracts/pass/loops.sol"
2064- runForgeTestCustom testFile " prove_loop" Nothing (Just 10 ) False mempty >>= assertEqualM " test result" (True , False )
2065- runForgeTestCustom testFile " prove_loop" Nothing (Just 100 ) False mempty >>= assertEqualM " test result" (False , False )
2064+ runForgeTestCustom testFile " prove_loop" Nothing (Just 10 ) False Fetch. noRpc >>= assertEqualM " test result" (True , False )
2065+ runForgeTestCustom testFile " prove_loop" Nothing (Just 100 ) False Fetch. noRpc >>= assertEqualM " test result" (False , False )
20662066 , test " Cheat-Codes-Pass" $ do
20672067 let testFile = " test/contracts/pass/cheatCodes.sol"
20682068 runForgeTest testFile " .*" >>= assertEqualM " test result" (True , False )
@@ -4218,7 +4218,7 @@ tests = testGroup "hevm"
42184218 <&> set (# state % # callvalue) (Lit 0 )
42194219 <&> over (# env % # contracts)
42204220 (Map. insert aAddr (initialContract (RuntimeCode (ConcreteRuntimeCode a))))
4221- verify s (Fetch. oracle s Nothing mempty ) defaultVeriOpts vm (checkAssertions defaultPanicCodes)
4221+ verify s (Fetch. noRpcFetcher s ) defaultVeriOpts vm (checkAssertions defaultPanicCodes)
42224222
42234223 let storeCex = cex. store
42244224 testCex = case (Map. lookup cAddr storeCex, Map. lookup aAddr storeCex) of
@@ -4294,7 +4294,7 @@ tests = testGroup "hevm"
42944294 let yulsafeDistributivity = hex " 6355a79a6260003560e01c14156016576015601f565b5b60006000fd60a1565b603d602d604435600435607c565b6039602435600435607c565b605d565b6052604b604435602435605d565b600435607c565b141515605a57fe5b5b565b6000828201821115151560705760006000fd5b82820190505b92915050565b6000818384048302146000841417151560955760006000fd5b82820290505b92915050565b"
42954295 calldata <- mkCalldata (Just (Sig " distributivity(uint256,uint256,uint256)" [AbiUIntType 256 , AbiUIntType 256 , AbiUIntType 256 ])) []
42964296 vm <- liftIO $ stToIO $ abstractVM calldata yulsafeDistributivity Nothing False
4297- (_, [Qed ]) <- withDefaultSolver $ \ s -> verify s (Fetch. oracle s Nothing mempty ) defaultVeriOpts vm (checkAssertions defaultPanicCodes)
4297+ (_, [Qed ]) <- withDefaultSolver $ \ s -> verify s (Fetch. noRpcFetcher s ) defaultVeriOpts vm (checkAssertions defaultPanicCodes)
42984298 putStrLnM " Proven"
42994299 ,
43004300 test " safemath-distributivity-sol" $ do
0 commit comments