mirror of
https://github.com/github/codeql.git
synced 2026-03-04 22:56:47 +01:00
19 lines
599 B
Plaintext
19 lines
599 B
Plaintext
import codeql.rust.dataflow.DataFlow
|
|
import codeql.rust.dataflow.internal.DataFlowImpl
|
|
import utils.test.TranslateModels
|
|
|
|
private predicate provenance(string model) { RustDataFlow::simpleLocalFlowStep(_, _, model) }
|
|
|
|
private module Tm = TranslateModels<provenance/1>;
|
|
|
|
query predicate models = Tm::models/2;
|
|
|
|
query predicate localStep(Node nodeFrom, Node nodeTo) {
|
|
// Local flow steps that don't originate from a flow summary.
|
|
RustDataFlow::simpleLocalFlowStep(nodeFrom, nodeTo, "")
|
|
}
|
|
|
|
query predicate storeStep = RustDataFlow::storeStep/3;
|
|
|
|
query predicate readStep = RustDataFlow::readStep/3;
|