mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
667 B
41 lines
667 B
2 years ago
|
|
||
|
struct Data { mapping(uint => bool) flags; }
|
||
|
using {L1.a, L1.b, d} for Data;
|
||
|
|
||
|
function d(Data storage self, uint value) returns(bool){
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
library L1 {
|
||
|
function a(Data storage self, uint value) public
|
||
|
view
|
||
|
returns (bool)
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
function b(Data storage self, uint value) public
|
||
|
view
|
||
|
returns (bool)
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
function c(Data storage self, uint value) public
|
||
|
view
|
||
|
returns (bool)
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
contract C {
|
||
|
Data knownValues;
|
||
|
|
||
|
function libCall(uint value) public {
|
||
|
require(knownValues.a(value));
|
||
|
}
|
||
|
|
||
|
}
|