MCPcopy Index your code
hub / github.com/Rust-API/Rust-API-Bypass-Checker / StaticAnalysis

Interface StaticAnalysis

src/analysis/analyzer/analysis_trait.rs:11–22  ·  view source on GitHub ↗

General trait for static analysis Developers may reuse this trait to implement their own analysis

Source from the content-addressed store, hash-verified

9/// General trait for static analysis
10/// Developers may reuse this trait to implement their own analysis
11pub trait StaticAnalysis<'tcx, 'a, 'compiler> {
12 fn new(context: &'a mut GlobalContext<'tcx, 'compiler>) -> Self;
13 fn run(&mut self) -> Result<AnalysisInfo>;
14 fn analyze_function<DomainType>(
15 &mut self,
16 def_id: DefId,
17 abstract_domain: AbstractDomain<DomainType>,
18 ) where
19 DomainType: NumericalDomainType,
20 IntervalAbstractDomain<DomainType>: GetDomainType;
21 fn emit_diagnostics(&mut self);
22}

Callers

nothing calls this directly

Implementers 1

numerical_analysis.rssrc/analysis/analyzer/numerical_analys

Calls

no outgoing calls

Tested by

no test coverage detected