-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathFoo.qll
More file actions
71 lines (47 loc) · 1.17 KB
/
Foo.qll
File metadata and controls
71 lines (47 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import ql
private module Mixed {
private predicate dead1() { none() }
predicate alive1() { none() }
predicate dead2() { none() }
}
predicate usesAlive() { Mixed::alive1() }
cached
private module Cached {
cached
predicate isUsed() { any() }
cached
predicate isNotUsed() { any() }
}
module UseCache {
private import Cached
predicate usesCached() { isUsed() }
}
private module Foo {
signature predicate bar();
}
module ValidationMethod<Foo::bar/0 sig> {
predicate impl() { sig() }
}
signature module InputSig {
predicate foo();
}
module ParameterizedModule<InputSig Input> { }
private module Input1 implements InputSig {
predicate foo() { any() }
}
private module Input2 implements InputSig {
predicate foo() { any() }
}
private module Input3 implements InputSig {
predicate foo() { any() }
}
module M1 = ParameterizedModule<Input1>;
private module M2 = ParameterizedModule<Input2>;
import ParameterizedModule<Input3>
private module MImpl { }
module MPublic = MImpl;
private class CImpl1 extends AstNode { }
final class CPublic1 = CImpl1;
private class CImpl2 extends AstNode { }
overlay[discard_entity]
private predicate discard(@foo x) { any() }