Skip to main content

truent_analyzer_evm/
lib.rs

1#![deny(unsafe_code)]
2#![allow(missing_docs)]
3
4//! EVM (Ethereum/Solidity) program analyzer with advanced analysis capabilities.
5//!
6//! This crate provides comprehensive static and dynamic analysis for EVM smart contracts:
7//!
8//! - **AST Analysis**: Parse Solidity using solc JSON AST via AstWalker
9//! - **Control Flow**: Build and analyze control flow graphs
10//! - **Data Flow**: Track variable definitions, uses, and taint propagation
11//! - **Bytecode Analysis**: Disassemble and analyze compiled EVM bytecode
12//! - **Symbolic Execution**: Verify invariants hold for all inputs
13
14pub mod analyzer;
15pub mod ast;
16pub mod ast_types;
17pub mod ast_walker;
18pub mod bytecode;
19pub mod cfg;
20pub mod dataflow;
21pub mod detectors;
22pub mod errors;
23/// Chain-agnostic semantic-model extraction (Epic 6.1 shared IR)
24pub mod semantic_model;
25pub mod symbolic;
26
27pub use analyzer::EvmAnalyzer;
28pub use ast::{AstContract, SolidityParser, Visibility};
29pub use ast_types::{AstNode, SourceUnit};
30pub use ast_walker::{AstVisitor, AstWalker};
31pub use bytecode::{BytecodeAnalyzer, Instruction, Opcode};
32pub use cfg::ControlFlowGraph;
33pub use dataflow::DataFlow;
34pub use errors::{AnalysisError, AnalysisResult};
35pub use semantic_model::build_semantic_model;
36pub use symbolic::SymbolicExecutor;