Skip to content

Instantly share code, notes, and snippets.

@hugo-dc
Created May 23, 2018 00:16
Show Gist options
  • Save hugo-dc/e7ec65c8d92f103e5c8c49bd7307e7ac to your computer and use it in GitHub Desktop.
Save hugo-dc/e7ec65c8d92f103e5c8c49bd7307e7ac to your computer and use it in GitHub Desktop.
Running tests using path: "/home/ewasm/hugo-dc/cpp-ethereum/test/jsontests"
Running 1 test case...
Test Case "stCallCodes":
100%
hera.cpp no wasm preamble..
csae evm2wasm_js
hera.cpp evm2wasm_js
Calling evm2wasm.js (input 39 bytes)...
hera.cpp HERA_DEBUGGING: 1
(Calling evm2wasm.js with command: evm2wasm.js -e /tmp/hera.evm2wasm.evm.575oWS -o /tmp/hera.evm2wasm.wasm.FDycRS --charge-per-op --trace)
evm2wasm.js outputFile: /tmp/hera.evm2wasm.wasm.FDycRS
evm2wasm.js inputFile: /tmp/hera.evm2wasm.evm.575oWS
evm2wasm.js calling storeOrPrintResult..
evm2wasm.js done (output 1448 bytes)
Executing...
hera.cpp execute...
~~~ msg.destination: 0x1000000000000000000000000000000000000000
~~~ msg.sender: 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b
importGlobals
evmTrace
{"depth":0,"gas":2979000,"gasCost":0,"op":PUSH1,"pc":0,"stack":[]}
useGas 3
evmTrace
{"depth":0,"gas":2978997,"gasCost":3,"op":PUSH1,"pc":2,"stack":["0x0000000000000000000000000000000000000000000000000000000000000040"]}
useGas 3
evmTrace
{"depth":0,"gas":2978994,"gasCost":6,"op":PUSH1,"pc":4,"stack":["0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040"]}
useGas 3
evmTrace
{"depth":0,"gas":2978991,"gasCost":9,"op":PUSH1,"pc":6,"stack":["0x0000000000000000000000000000000000000000000000000000000000000040","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040"]}
useGas 3
evmTrace
{"depth":0,"gas":2978988,"gasCost":12,"op":PUSH1,"pc":8,"stack":["0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040"]}
useGas 3
evmTrace
{"depth":0,"gas":2978985,"gasCost":15,"op":PUSH20,"pc":10,"stack":["0x0000000000000000000000000000000000000000000000000000000000000001","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040"]}
useGas 3
evmTrace
{"depth":0,"gas":2978982,"gasCost":18,"op":PUSH3,"pc":31,"stack":["0x0000000000000000000000001000000000000000000000000000000000000001","0x0000000000000000000000000000000000000000000000000000000000000001","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040"]}
useGas 3
evmTrace
{"depth":0,"gas":2978979,"gasCost":21,"op":CALL,"pc":35,"stack":["0x0000000000000000000000000000000000000000000000000000000000055730","0x0000000000000000000000001000000000000000000000000000000000000001","0x0000000000000000000000000000000000000000000000000000000000000001","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040"]}
useGas 0
useGas 6
~~~ call_message.destination: 0x1000000000000000000000000000000000000001
~~~ call_message.sender: 0x1000000000000000000000000000000000000000
$call 55730 a0 80 8428 40
hera.cpp no wasm preamble..
csae evm2wasm_js
hera.cpp evm2wasm_js
Calling evm2wasm.js (input 39 bytes)...
hera.cpp HERA_DEBUGGING: 1
(Calling evm2wasm.js with command: evm2wasm.js -e /tmp/hera.evm2wasm.evm.RFATW3 -o /tmp/hera.evm2wasm.wasm.dsbA2e --charge-per-op --trace)
evm2wasm.js outputFile: /tmp/hera.evm2wasm.wasm.dsbA2e
evm2wasm.js inputFile: /tmp/hera.evm2wasm.evm.RFATW3
evm2wasm.js calling storeOrPrintResult..
evm2wasm.js done (output 1452 bytes)
Executing...
hera.cpp execute...
~~~ msg.destination: 0x1000000000000000000000000000000000000001
~~~ msg.sender: 0x1000000000000000000000000000000000000000
importGlobals
evmTrace
{"depth":1,"gas":352300,"gasCost":0,"op":PUSH1,"pc":0,"stack":[]}
useGas 3
evmTrace
{"depth":1,"gas":352297,"gasCost":3,"op":PUSH1,"pc":2,"stack":["0x0000000000000000000000000000000000000000000000000000000000000040"]}
useGas 3
evmTrace
{"depth":1,"gas":352294,"gasCost":6,"op":PUSH1,"pc":4,"stack":["0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040"]}
useGas 3
evmTrace
{"depth":1,"gas":352291,"gasCost":9,"op":PUSH1,"pc":6,"stack":["0x0000000000000000000000000000000000000000000000000000000000000040","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040"]}
useGas 3
evmTrace
{"depth":1,"gas":352288,"gasCost":12,"op":PUSH1,"pc":8,"stack":["0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040"]}
useGas 3
evmTrace
{"depth":1,"gas":352285,"gasCost":15,"op":PUSH20,"pc":10,"stack":["0x0000000000000000000000000000000000000000000000000000000000000002","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040"]}
useGas 3
evmTrace
{"depth":1,"gas":352282,"gasCost":18,"op":PUSH3,"pc":31,"stack":["0x0000000000000000000000001000000000000000000000000000000000000002","0x0000000000000000000000000000000000000000000000000000000000000002","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040"]}
useGas 3
evmTrace
{"depth":1,"gas":352279,"gasCost":21,"op":CALLCODE,"pc":35,"stack":["0x000000000000000000000000000000000000000000000000000000000003d090","0x0000000000000000000000001000000000000000000000000000000000000002","0x0000000000000000000000000000000000000000000000000000000000000002","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000040"]}
useGas 0
useGas 6
~~~ call_message.destination: 0x1000000000000000000000000000000000000002
~~~ call_message.sender: 0x1000000000000000000000000000000000000001
$callCode 3d090 a0 80 8428 40
hera.cpp no wasm preamble..
csae evm2wasm_js
hera.cpp evm2wasm_js
Calling evm2wasm.js (input 33 bytes)...
hera.cpp HERA_DEBUGGING: 1
(Calling evm2wasm.js with command: evm2wasm.js -e /tmp/hera.evm2wasm.evm.2RdRNz -o /tmp/hera.evm2wasm.wasm.Z378yU --charge-per-op --trace)
evm2wasm.js outputFile: /tmp/hera.evm2wasm.wasm.Z378yU
evm2wasm.js inputFile: /tmp/hera.evm2wasm.evm.2RdRNz
.
evm2wasm.js calling storeOrPrintResult..
evm2wasm.js done (output 1799 bytes)
Executing...
hera.cpp execute...
~~~ msg.destination: 0x1000000000000000000000000000000000000001
~~~ msg.sender: 0x1000000000000000000000000000000000000001
importGlobals
evmTrace
{"depth":2,"gas":252300,"gasCost":0,"op":PUSH1,"pc":0,"stack":[]}
useGas 3
evmTrace
{"depth":2,"gas":252297,"gasCost":3,"op":PUSH1,"pc":2,"stack":["0x0000000000000000000000000000000000000000000000000000000000000001"]}
useGas 3
evmTrace
{"depth":2,"gas":252294,"gasCost":6,"op":SSTORE,"pc":4,"stack":["0x0000000000000000000000000000000000000000000000000000000000000002","0x0000000000000000000000000000000000000000000000000000000000000001"]}
useGas 0
storageStore 20 0
evmTrace
{"depth":2,"gas":232294,"gasCost":6,"op":CALLER,"pc":5,"stack":[]}
useGas 0
getCaller 0
evmTrace
{"depth":2,"gas":232292,"gasCost":6,"op":PUSH1,"pc":6,"stack":["0x0000000000000000000000001000000000000000000000000000000000000001"]}
useGas 3
evmTrace
{"depth":2,"gas":232289,"gasCost":9,"op":SSTORE,"pc":8,"stack":["0x0000000000000000000000000000000000000000000000000000000000000004","0x0000000000000000000000001000000000000000000000000000000000000001"]}
useGas 0
storageStore 20 0
evmTrace
{"depth":2,"gas":212289,"gasCost":9,"op":CALLVALUE,"pc":9,"stack":[]}
useGas 0
getCallValue 0
evmTrace
{"depth":2,"gas":212287,"gasCost":9,"op":PUSH1,"pc":10,"stack":["0x0000000000000000000000000000000000000000000000000000000000000002"]}
useGas 3
evmTrace
{"depth":2,"gas":212284,"gasCost":12,"op":SSTORE,"pc":12,"stack":["0x0000000000000000000000000000000000000000000000000000000000000007","0x0000000000000000000000000000000000000000000000000000000000000002"]}
useGas 0
storageStore 20 0
evmTrace
{"depth":2,"gas":192284,"gasCost":12,"op":ADDRESS,"pc":13,"stack":[]}
useGas 0
getAddress 0
evmTrace
{"depth":2,"gas":192282,"gasCost":12,"op":PUSH1,"pc":14,"stack":["0x0000000000000000000000001000000000000000000000000000000000000001"]}
useGas 3
evmTrace
{"depth":2,"gas":192279,"gasCost":15,"op":SSTORE,"pc":16,"stack":["0x00000000000000000000000000000000000000000000000000000000000000e6","0x0000000000000000000000001000000000000000000000000000000000000001"]}
useGas 0
storageStore 20 0
evmTrace
{"depth":2,"gas":172279,"gasCost":15,"op":ORIGIN,"pc":17,"stack":[]}
useGas 0
getTxOrigin 0
evmTrace
{"depth":2,"gas":172277,"gasCost":15,"op":PUSH1,"pc":18,"stack":["0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b"]}
useGas 3
evmTrace
{"depth":2,"gas":172274,"gasCost":18,"op":SSTORE,"pc":20,"stack":["0x00000000000000000000000000000000000000000000000000000000000000e8","0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b"]}
useGas 0
storageStore 20 0
evmTrace
{"depth":2,"gas":152274,"gasCost":18,"op":CALLDATASIZE,"pc":21,"stack":[]}
useGas 0
callDataSize
evmTrace
{"depth":2,"gas":152272,"gasCost":18,"op":PUSH1,"pc":22,"stack":["0x0000000000000000000000000000000000000000000000000000000000000040"]}
useGas 3
evmTrace
{"depth":2,"gas":152269,"gasCost":21,"op":SSTORE,"pc":24,"stack":["0x00000000000000000000000000000000000000000000000000000000000000ec","0x0000000000000000000000000000000000000000000000000000000000000040"]}
useGas 0
storageStore 20 0
evmTrace
{"depth":2,"gas":132269,"gasCost":21,"op":CODESIZE,"pc":25,"stack":[]}
useGas 0
getCodeSize
~~~ getCodeSize|msg.destination: 0x1000000000000000000000000000000000000001
|msg.sender: 0x1000000000000000000000000000000000000001
~~~ code_size: 33
0x1000000000000000000000000000000000000002
evmTrace
{"depth":2,"gas":132267,"gasCost":21,"op":PUSH1,"pc":26,"stack":["0x0000000000000000000000000000000000000000000000000000000000000021"]}
useGas 3
evmTrace
{"depth":2,"gas":132264,"gasCost":24,"op":SSTORE,"pc":28,"stack":["0x00000000000000000000000000000000000000000000000000000000000000ee","0x0000000000000000000000000000000000000000000000000000000000000021"]}
useGas 0
storageStore 20 0
evmTrace
{"depth":2,"gas":112264,"gasCost":24,"op":GASPRICE,"pc":29,"stack":[]}
useGas 0
getTxGasPrice 0
evmTrace
{"depth":2,"gas":112262,"gasCost":24,"op":PUSH1,"pc":30,"stack":["0x0000000000000000000000000000000000000000000000000000000000000001"]}
useGas 3
evmTrace
{"depth":2,"gas":112259,"gasCost":27,"op":SSTORE,"pc":32,"stack":["0x00000000000000000000000000000000000000000000000000000000000000f0","0x0000000000000000000000000000000000000000000000000000000000000001"]}
useGas 0
storageStore 20 0
evmTrace
{"depth":1,"gas":184832,"gasCost":21,"op":PUSH1,"pc":36,"stack":["0x0000000000000000000000000000000000000000000000000000000000000001"]}
useGas 3
evmTrace
{"depth":1,"gas":184829,"gasCost":24,"op":SSTORE,"pc":38,"stack":["0x0000000000000000000000000000000000000000000000000000000000000001","0x0000000000000000000000000000000000000000000000000000000000000001"]}
useGas 0
storageStore 20 0
evmTrace
{"depth":0,"gas":2784102,"gasCost":21,"op":PUSH1,"pc":36,"stack":["0x0000000000000000000000000000000000000000000000000000000000000001"]}
useGas 3
evmTrace
{"depth":0,"gas":2784099,"gasCost":24,"op":SSTORE,"pc":38,"stack":["0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000001"]}
useGas 0
storageStore 20 0
postState:
--- 9d5a38358bff52dd9b7c82e53e45d22a2eb7917db9de0c05fe0b1b5e2dd24b7a
1000000000000000000000000000000000000000: 0 #:999999999999999999 @:821e2556a290c86405f8160a2d662042a431ba456b9db265c79bb837c04be5f0 $0ab85e2189a6a8f729b32cad84b88d2826b5c5623a8b815a6733d89ec41ed46b
0: 1
1000000000000000000000000000000000000001: 0 #:1000000000000000001 @:bdd3acb5fd6bfb322047d7884aed2afa626594f168a975823988e56cc96c641d $762fb7282b8a502cb0ed7071bc5781d4bbefba9d2a2d47fbe07c7c7fb50bf620
1: 1
2: 1
4: 1000000000000000000000000000000000000001
7: 2
E6: 1000000000000000000000000000000000000001
E8: A94F5374FCE5EDBC8E2A8697C15331677E6EBF0B
EC: 40
EE: 21
F0: 1
1000000000000000000000000000000000000002: 0 #:0 @:56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421 $11f8bf1536bfe341aec3f64cfd4fd81928acbb1575f5e4ea6737a150c180a5e2
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