Skip to content

Instantly share code, notes, and snippets.

@cdetrio
Created May 26, 2018 04:22
Show Gist options
  • Save cdetrio/cb945b5ddbc666f73a9c6debea50d8b7 to your computer and use it in GitHub Desktop.
Save cdetrio/cb945b5ddbc666f73a9c6debea50d8b7 to your computer and use it in GitHub Desktop.
callcall_00-cpp-reference-trace
(ewasm-dump-state)ewasm@13:~/hugo-dc/cpp-ethereum/build$ test/testeth -t GeneralStateTests/stCallCodes -- --testpath ~/cpp-ethereum/test/jsontests --singlenet "Byzantium" --singletest "callcall_00" --jsontrace '{"disableStack": false, "fullStorage": false, "disableStorage": true, "disableMemory": false}'
Running tests using path: "/home/ewasm/cpp-ethereum/test/jsontests"
Running 1 test case...
Test Case "stCallCodes":
100%
[Executive.cpp] creating vm...
[Executive.cpp] creating vm...
[Executive.cpp] creating vm...
[{"depth":"0","gas":"2979000","gasCost":"3","memory":[],"op":"PUSH1","pc":"0","stack":[]},
{"depth":"0","gas":"2978997","gasCost":"3","op":"PUSH1","pc":"2","stack":["0x40"]},
{"depth":"0","gas":"2978994","gasCost":"3","op":"PUSH1","pc":"4","stack":["0x40","0x00"]},
{"depth":"0","gas":"2978991","gasCost":"3","op":"PUSH1","pc":"6","stack":["0x40","0x00","0x40"]},
{"depth":"0","gas":"2978988","gasCost":"3","op":"PUSH1","pc":"8","stack":["0x40","0x00","0x40","0x00"]},
{"depth":"0","gas":"2978985","gasCost":"3","op":"PUSHC","pc":"10","stack":["0x40","0x00","0x40","0x00","0x01"]},
{"depth":"0","gas":"2978982","gasCost":"3","op":"PUSH3","pc":"31","stack":["0x40","0x00","0x40","0x00","0x01","0x1000000000000000000000000000000000000001"]},
{"depth":"0","gas":"2978979","gasCost":"0","op":"CALL","pc":"35","stack":["0x40","0x00","0x40","0x00","0x01","0x1000000000000000000000000000000000000001","0x055730"]},
{"depth":"1","gas":"352300","gasCost":"3","memory":[],"op":"PUSH1","pc":"0","stack":[]},
{"depth":"1","gas":"352297","gasCost":"3","op":"PUSH1","pc":"2","stack":["0x40"]},
{"depth":"1","gas":"352294","gasCost":"3","op":"PUSH1","pc":"4","stack":["0x40","0x00"]},
{"depth":"1","gas":"352291","gasCost":"3","op":"PUSH1","pc":"6","stack":["0x40","0x00","0x40"]},
{"depth":"1","gas":"352288","gasCost":"3","op":"PUSH1","pc":"8","stack":["0x40","0x00","0x40","0x00"]},
{"depth":"1","gas":"352285","gasCost":"3","op":"PUSHC","pc":"10","stack":["0x40","0x00","0x40","0x00","0x02"]},
{"depth":"1","gas":"352282","gasCost":"3","op":"PUSH3","pc":"31","stack":["0x40","0x00","0x40","0x00","0x02","0x1000000000000000000000000000000000000002"]},
{"depth":"1","gas":"352279","gasCost":"0","op":"CALL","pc":"35","stack":["0x40","0x00","0x40","0x00","0x02","0x1000000000000000000000000000000000000002","0x03d090"]},
{"depth":"2","gas":"252300","gasCost":"3","memory":[],"op":"PUSH1","pc":"0","stack":[]},
{"depth":"2","gas":"252297","gasCost":"3","op":"PUSH1","pc":"2","stack":["0x01"]},
{"depth":"2","gas":"252294","gasCost":"0","op":"SSTORE","pc":"4","stack":["0x01","0x02"]},
{"depth":"2","gas":"232294","gasCost":"2","op":"CALLER","pc":"5","stack":[]},
{"depth":"2","gas":"232292","gasCost":"3","op":"PUSH1","pc":"6","stack":["0x1000000000000000000000000000000000000001"]},
{"depth":"2","gas":"232289","gasCost":"0","op":"SSTORE","pc":"8","stack":["0x1000000000000000000000000000000000000001","0x04"]},
{"depth":"2","gas":"212289","gasCost":"2","op":"CALLVALUE","pc":"9","stack":[]},
{"depth":"2","gas":"212287","gasCost":"3","op":"PUSH1","pc":"10","stack":["0x02"]},
{"depth":"2","gas":"212284","gasCost":"0","op":"SSTORE","pc":"12","stack":["0x02","0x07"]},
{"depth":"2","gas":"192284","gasCost":"2","op":"ADDRESS","pc":"13","stack":[]},
{"depth":"2","gas":"192282","gasCost":"3","op":"PUSH1","pc":"14","stack":["0x1000000000000000000000000000000000000002"]},
{"depth":"2","gas":"192279","gasCost":"0","op":"SSTORE","pc":"16","stack":["0x1000000000000000000000000000000000000002","0xe6"]},
{"depth":"2","gas":"172279","gasCost":"2","op":"ORIGIN","pc":"17","stack":[]},
{"depth":"2","gas":"172277","gasCost":"3","op":"PUSH1","pc":"18","stack":["0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"]},
{"depth":"2","gas":"172274","gasCost":"0","op":"SSTORE","pc":"20","stack":["0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b","0xe8"]},
{"depth":"2","gas":"152274","gasCost":"2","op":"CALLDATASIZE","pc":"21","stack":[]},
{"depth":"2","gas":"152272","gasCost":"3","op":"PUSH1","pc":"22","stack":["0x40"]},
{"depth":"2","gas":"152269","gasCost":"0","op":"SSTORE","pc":"24","stack":["0x40","0xec"]},
{"depth":"2","gas":"132269","gasCost":"2","op":"CODESIZE","pc":"25","stack":[]},
{"depth":"2","gas":"132267","gasCost":"3","op":"PUSH1","pc":"26","stack":["0x21"]},
{"depth":"2","gas":"132264","gasCost":"0","op":"SSTORE","pc":"28","stack":["0x21","0xee"]},
{"depth":"2","gas":"112264","gasCost":"2","op":"GASPRICE","pc":"29","stack":[]},
{"depth":"2","gas":"112262","gasCost":"3","op":"PUSH1","pc":"30","stack":["0x01"]},
{"depth":"2","gas":"112259","gasCost":"0","op":"SSTORE","pc":"32","stack":["0x01","0xf0"]},
{"depth":"2","gas":"92259","gasCost":"0","op":"STOP","pc":"33","stack":[]},
{"depth":"1","gas":"184832","gasCost":"3","memory":["0000000000000000000000000000000000000000000000000000000000000000","0000000000000000000000000000000000000000000000000000000000000000"],"op":"PUSH1","pc":"36","stack":["0x01"]},
{"depth":"1","gas":"184829","gasCost":"0","memory":["0000000000000000000000000000000000000000000000000000000000000000","0000000000000000000000000000000000000000000000000000000000000000"],"op":"SSTORE","pc":"38","stack":["0x01","0x01"]},
{"depth":"1","gas":"164829","gasCost":"0","op":"STOP","pc":"39","stack":[]},
{"depth":"0","gas":"2784102","gasCost":"3","memory":["0000000000000000000000000000000000000000000000000000000000000000","0000000000000000000000000000000000000000000000000000000000000000"],"op":"PUSH1","pc":"36","stack":["0x01"]},
{"depth":"0","gas":"2784099","gasCost":"0","memory":["0000000000000000000000000000000000000000000000000000000000000000","0000000000000000000000000000000000000000000000000000000000000000"],"op":"SSTORE","pc":"38","stack":["0x01","0x00"]},
{"depth":"0","gas":"2764099","gasCost":"0","op":"STOP","pc":"39","stack":[]}]
{"stateRoot": "7ebd8fdaaeb5e96fd2ad3b11c675e3b16e5902ae4fe100710f39925e59ccd914"}postState:
--- 7ebd8fdaaeb5e96fd2ad3b11c675e3b16e5902ae4fe100710f39925e59ccd914
1000000000000000000000000000000000000000: 0 #:999999999999999999 @:821e2556a290c86405f8160a2d662042a431ba456b9db265c79bb837c04be5f0 $0ab85e2189a6a8f729b32cad84b88d2826b5c5623a8b815a6733d89ec41ed46b
0: 1
1000000000000000000000000000000000000001: 0 #:999999999999999999 @:f38f9f63c760d088d7dd04f743619b6291f63beebd8bdf530628f90e9cfa52d7 $9afca91c0774d3c1a72fd05c486e73e032444b843a9b111a20760f557ef55e7b
1: 1
1000000000000000000000000000000000000002: 0 #:2 @:bb1536372d31776731b19b5a7a9c4327601e9b5a51d74289bac9ee6497f8ed1b $11f8bf1536bfe341aec3f64cfd4fd81928acbb1575f5e4ea6737a150c180a5e2
2: 1
4: 1000000000000000000000000000000000000001
7: 2
E6: 1000000000000000000000000000000000000002
E8: A94F5374FCE5EDBC8E2A8697C15331677E6EBF0B
EC: 40
EE: 21
F0: 1
2adc25665018aa1fe0e6bc666dac8fc2697ff9ba: 0 #:235901 [SIMPLE]
a94f5374fce5edbc8e2a8697c15331677e6ebf0b: 1 #:999999999999764099 [SIMPLE]
*** No errors detected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment