Skip to content

Commit 5fd687d

Browse files
committed
Go: Add MaD related extensible predicates.
1 parent 0f993a0 commit 5fd687d

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

go/ql/lib/semmle/go/dataflow/ExternalFlow.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
*/
6262

6363
private import go
64+
private import ExternalFlowExtensions as Extensions
6465
private import internal.DataFlowPrivate
6566
private import internal.FlowSummaryImpl::Private::External
6667
private import internal.FlowSummaryImplSpecific
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/**
2+
* This module provides extensible predicates for defining MaD models.
3+
*/
4+
5+
/**
6+
* Holds if a source model exists for the given parameters.
7+
*/
8+
extensible predicate sourceModel(
9+
string package, string type, boolean subtypes, string name, string signature, string ext,
10+
string output, string kind, string provenance
11+
);
12+
13+
/**
14+
* Holds if a sink model exists for the given parameters.
15+
*/
16+
extensible predicate sinkModel(
17+
string package, string type, boolean subtypes, string name, string signature, string ext,
18+
string input, string kind, string provenance
19+
);
20+
21+
/**
22+
* Holds if a summary model exists for the given parameters.
23+
*/
24+
extensible predicate summaryModel(
25+
string package, string type, boolean subtypes, string name, string signature, string ext,
26+
string input, string output, string kind, string provenance
27+
);

0 commit comments

Comments
 (0)