mirror of https://github.com/crytic/slither
commit
28af1627ee
Binary file not shown.
@ -0,0 +1,12 @@ |
|||||||
|
{ |
||||||
|
"A": { |
||||||
|
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: RETURN 1\n\"];\n}\n", |
||||||
|
"f2()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: INLINE ASM 2\n\"];\n2->3;\n3[label=\"Node Type: EXPRESSION 3\n\"];\n}\n", |
||||||
|
"f3()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: EXPRESSION 2\n\"];\n}\n" |
||||||
|
}, |
||||||
|
"B": { |
||||||
|
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: RETURN 1\n\"];\n}\n", |
||||||
|
"f2()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: INLINE ASM 2\n\"];\n2->3;\n3[label=\"Node Type: EXPRESSION 3\n\"];\n}\n", |
||||||
|
"f3()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: EXPRESSION 2\n\"];\n}\n" |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,25 @@ |
|||||||
|
contract A{ |
||||||
|
uint private constant a = 10; |
||||||
|
|
||||||
|
function f() public returns(uint){ |
||||||
|
return a; |
||||||
|
} |
||||||
|
|
||||||
|
function f2() public returns(uint){ |
||||||
|
uint ret; |
||||||
|
assembly{ |
||||||
|
ret := a |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
function f3() public returns(uint){ |
||||||
|
uint ret; |
||||||
|
unchecked{ |
||||||
|
ret = a; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
contract B is A{ |
||||||
|
|
||||||
|
} |
@ -0,0 +1,19 @@ |
|||||||
|
pragma solidity 0.8.16; |
||||||
|
|
||||||
|
type aliasTopLevel is uint; |
||||||
|
|
||||||
|
contract C |
||||||
|
{ |
||||||
|
type aliasContractLevel is uint; |
||||||
|
} |
||||||
|
|
||||||
|
contract Test |
||||||
|
{ |
||||||
|
aliasTopLevel a; |
||||||
|
C.aliasContractLevel b; |
||||||
|
} |
||||||
|
|
||||||
|
function f(aliasTopLevel, C.aliasContractLevel) |
||||||
|
{ |
||||||
|
|
||||||
|
} |
@ -0,0 +1,19 @@ |
|||||||
|
pragma solidity 0.8.16; |
||||||
|
|
||||||
|
interface A |
||||||
|
{ |
||||||
|
function a() external; |
||||||
|
} |
||||||
|
|
||||||
|
contract C |
||||||
|
{ |
||||||
|
function g(address _address) private |
||||||
|
{ |
||||||
|
A(_address).a(); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
function f(address _address) |
||||||
|
{ |
||||||
|
A(_address).a(); |
||||||
|
} |
Loading…
Reference in new issue