Skip to main content

Module complexity

Module complexity 

Source
Expand description

Expression complexity analysis for TLExpr trees.

This module provides comprehensive complexity metrics, threshold-based warnings, expression comparison, and batch statistics for analyzing the structural complexity of logical expressions before compilation.

Structs§

BatchComplexityStats
Aggregate complexity statistics for a batch of expressions.
ComplexityComparison
Side-by-side comparison of complexity between two expressions.
ComplexityThresholds
Configurable thresholds for complexity warnings.
ComplexityWarning
A complexity warning produced by check_complexity.
ExprComplexity
Comprehensive complexity metrics for a TLExpr tree.

Enums§

WarningSeverity
Severity level for a complexity warning.

Functions§

check_complexity
Check complexity metrics against thresholds and return any warnings.