< html >
< head >
< link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.css" integrity = "sha256-iq5ygGJ7021Pi7H5S+QAUXCPUfaBzfqeplbg/KlEssg=" crossorigin = "anonymous" / >
< script src = "https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.js" integrity = "sha256-JuQeAGbk9rG/EoRMixuy5X8syzICcvB0dj3KindZkY0=" crossorigin = "anonymous" > < / script >
< style type = "text/css" >
#mynetwork {
background-color: #232625;
}
body {
background-color: #232625;
color: #ffffff;
font-size: 10px;
}
< / style >
< script >
var options = {"autoResize": true, "edges": {"font": {"align": "horizontal", "background": "none", "color": "#FFFFFF", "face": "arial", "multi": false, "strokeColor": "#ffffff", "strokeWidth": 0, "vadjust": 0}}, "height": "100%", "layout": {"hierarchical": {"blockShifting": true, "direction": "LR", "edgeMinimization": true, "enabled": true, "levelSeparation": 450, "nodeSpacing": 200, "parentCentralization": false, "sortMethod": "directed", "treeSpacing": 100}, "improvedLayout": true}, "manipulation": false, "nodes": {"borderWidth": 1, "borderWidthSelected": 2, "chosen": true, "color": "#000000", "font": {"align": "left", "color": "#FFFFFF"}, "shape": "box"}, "physics": {"enabled": false}, "width": "100%"};
var nodes = [{"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "63 JUMPDEST fallback\n64 PUSH1 0x00\n66 DUP1\n67 REVERT", "id": "530", "isExpanded": false, "label": "63 JUMPDEST fallback\n64 PUSH1 0x00\n66 DUP1\n67 REVERT", "size": 150, "truncLabel": "63 JUMPDEST fallback\n64 PUSH1 0x00\n66 DUP1\n67 REVERT"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "84 JUMPDEST _function_0x8a4068dd\n85 STOP", "id": "536", "isExpanded": false, "label": "84 JUMPDEST _function_0x8a4068dd\n85 STOP", "size": 150, "truncLabel": "84 JUMPDEST _function_0x8a4068dd\n85 STOP"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "157 JUMPDEST _function_0x8a4068dd\n158 JUMP", "id": "535", "isExpanded": false, "label": "157 JUMPDEST _function_0x8a4068dd\n158 JUMP", "size": 150, "truncLabel": "157 JUMPDEST _function_0x8a4068dd\n158 JUMP"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "153 PUSH1 0x00\n155 DUP1\n156 REVERT", "id": "537", "isExpanded": false, "label": "153 PUSH1 0x00\n155 DUP1\n156 REVERT", "size": 150, "truncLabel": "153 PUSH1 0x00\n155 DUP1\n156 REVERT"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "86 JUMPDEST _function_0x8a4068dd\n87 CALLER\n88 PUSH20 0xffffffffffffffffffffffffffffffffffffffff\n109 AND\n110 PUSH2 0x08fc\n113 PUSH8 0x1bc16d674ec80000\n122 SWAP1\n123 DUP2\n124 ISZERO\n125 MUL\n126 SWAP1\n127 PUSH1 0x40\n129 MLOAD\n130 PUSH1 0x00\n132 PUSH1 0x40\n134 MLOAD\n135 DUP1\n136 DUP4\n137 SUB\n138 DUP2\n139 DUP6\n140 DUP9\n141 DUP9\n142 CALL\n143 SWAP4\n144 POP\n145 POP\n146 POP\n147 POP\n148 ISZERO\n149 ISZERO\n150 PUSH1 0x9d\n152 JUMPI", "id": "534", "isExpanded": false, "label": "86 JUMPDEST _function_0x8a4068dd\n87 CALLER\n88 PUSH20 0xffffffffffffffffffffffffffffffffffffffff\n109 AND\n110 PUSH2 0x08fc\n113 PUSH8 0x1bc16d674ec80000\n(click to expand +)", "size": 150, "truncLabel": "86 JUMPDEST _function_0x8a4068dd\n87 CALLER\n88 PUSH20 0xffffffffffffffffffffffffffffffffffffffff\n109 AND\n110 PUSH2 0x08fc\n113 PUSH8 0x1bc16d674ec80000\n(click to expand +)"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "78 JUMPDEST _function_0x8a4068dd\n79 PUSH1 0x54\n81 PUSH1 0x56\n83 JUMP", "id": "533", "isExpanded": false, "label": "78 JUMPDEST _function_0x8a4068dd\n79 PUSH1 0x54\n81 PUSH1 0x56\n83 JUMP", "size": 150, "truncLabel": "78 JUMPDEST _function_0x8a4068dd\n79 PUSH1 0x54\n81 PUSH1 0x56\n83 JUMP"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "74 PUSH1 0x00\n76 DUP1\n77 REVERT", "id": "538", "isExpanded": false, "label": "74 PUSH1 0x00\n76 DUP1\n77 REVERT", "size": 150, "truncLabel": "74 PUSH1 0x00\n76 DUP1\n77 REVERT"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "68 JUMPDEST _function_0x8a4068dd\n69 CALLVALUE\n70 ISZERO\n71 PUSH1 0x4e\n73 JUMPI", "id": "532", "isExpanded": false, "label": "68 JUMPDEST _function_0x8a4068dd\n69 CALLVALUE\n70 ISZERO\n71 PUSH1 0x4e\n73 JUMPI", "size": 150, "truncLabel": "68 JUMPDEST _function_0x8a4068dd\n69 CALLVALUE\n70 ISZERO\n71 PUSH1 0x4e\n73 JUMPI"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "63 JUMPDEST _function_0x8a4068dd\n64 PUSH1 0x00\n66 DUP1\n67 REVERT", "id": "539", "isExpanded": false, "label": "63 JUMPDEST _function_0x8a4068dd\n64 PUSH1 0x00\n66 DUP1\n67 REVERT", "size": 150, "truncLabel": "63 JUMPDEST _function_0x8a4068dd\n64 PUSH1 0x00\n66 DUP1\n67 REVERT"}, {"color": {"background": "#2f7e5b", "border": "#269
var edges = [{"arrows": "to", "from": "529", "label": "Not(ULE(4, calldatasize_Unknown))", "smooth": {"type": "cubicBezier"}, "to": "530"}, {"arrows": "to", "from": "535", "label": "", "smooth": {"type": "cubicBezier"}, "to": "536"}, {"arrows": "to", "from": "534", "label": "Not(retval_142 == 0)", "smooth": {"type": "cubicBezier"}, "to": "535"}, {"arrows": "to", "from": "534", "label": "retval_142 == 0", "smooth": {"type": "cubicBezier"}, "to": "537"}, {"arrows": "to", "from": "533", "label": "", "smooth": {"type": "cubicBezier"}, "to": "534"}, {"arrows": "to", "from": "532", "label": "callvalue == 0", "smooth": {"type": "cubicBezier"}, "to": "533"}, {"arrows": "to", "from": "532", "label": "Not(callvalue == 0)", "smooth": {"type": "cubicBezier"}, "to": "538"}, {"arrows": "to", "from": "531", "label": "Extract(0xff, 0xe0, calldata_Unknown_0) == 0x8a4068dd", "smooth": {"type": "cubicBezier"}, "to": "532"}, {"arrows": "to", "from": "531", "label": "Not(Extract(0xff, 0xe0, calldata_Unknown_0) == 0x8a4068dd)", "smooth": {"type": "cubicBezier"}, "to": "539"}, {"arrows": "to", "from": "529", "label": "ULE(4, calldatasize_Unknown)", "smooth": {"type": "cubicBezier"}, "to": "531"}];
< / script >
< / head >
< body >
< p > Mythril / Ethereum LASER Symbolic VM< / p >
< p > < div id = "mynetwork" > < / div > < br / > < / p >
< script type = "text/javascript" >
var container = document.getElementById('mynetwork');
var nodesSet = new vis.DataSet(nodes);
var edgesSet = new vis.DataSet(edges);
var data = {'nodes': nodesSet, 'edges': edgesSet}
var gph = new vis.Network(container, data, options);
gph.on("click", function (params) {
// parse node id
var nodeID = params['nodes']['0'];
if (nodeID) {
var clickedNode = nodesSet.get(nodeID);
if(clickedNode.isExpanded) {
clickedNode.label = clickedNode.truncLabel;
}
else {
clickedNode.label = clickedNode.fullLabel;
}
clickedNode.isExpanded = !clickedNode.isExpanded;
nodesSet.update(clickedNode);
}
});
< / script >
< / body >
< / html >