mirror of https://github.com/crytic/slither
parent
a8cb6bed86
commit
591c4c0953
Binary file not shown.
@ -0,0 +1,6 @@ |
||||
{ |
||||
"A": { |
||||
"a()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->12;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: END INLINE ASM 11\n\"];\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->1;\n}\n", |
||||
"NonReentrant()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: INLINE ASM 1\n\"];\n1->2;\n2[label=\"Node Type: IF 2\n\"];\n2->4[label=\"True\"];\n2->3[label=\"False\"];\n3[label=\"Node Type: END_IF 3\n\"];\n3->5;\n4[label=\"Node Type: EXPRESSION 4\n\"];\n4->3;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: END INLINE ASM 6\n\"];\n6->7;\n7[label=\"Node Type: _ 7\n\"];\n7->8;\n8[label=\"Node Type: INLINE ASM 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: END INLINE ASM 10\n\"];\n}\n" |
||||
} |
||||
} |
@ -0,0 +1,26 @@ |
||||
contract A { |
||||
|
||||
modifier NonReentrant { |
||||
assembly { |
||||
if tload(0) { revert(0, 0) } |
||||
tstore(0, 1) |
||||
} |
||||
_; |
||||
assembly { |
||||
tstore(0, 0) |
||||
} |
||||
} |
||||
|
||||
function a() NonReentrant public { |
||||
bytes32 _blobhash = blobhash(2); |
||||
uint _blobbasefee = block.blobbasefee; |
||||
|
||||
assembly { |
||||
let __blobbasefee := blobbasefee() |
||||
let _basefee := basefee() |
||||
let __blobhash := blobhash(3) |
||||
mcopy(0, 0x40, 0x20) |
||||
} |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue