arabelatso/skills-4-se/abstract-trace-summarizer
- community
Checking that the SKILL.md file is still in the repository.
Performs abstract interpretation to produce summarized execution traces and high-level program behavior representations. Highlights key control flow paths, variable relationships, loop invariants, function summaries, and potential runtime states using abstract domains (intervals, signs, nullness, etc.). Use when analyzing program behavior, understanding execution paths, computing loop invariants, tracking variable ranges, detecting potential runtime errors, or generating program summaries without concrete execution.
Install
npx vskill@latest install arabelatso/skills-4-se/abstract-trace-summarizerSKILL.md
Abstract Trace Summarizer
Overview
This skill performs abstract interpretation to analyze program behavior and produce summarized execution traces. It computes over-approximations of possible runtime states, tracks control flow paths, infers variable relationships, and generates high-level behavioral summaries without requiring concrete program execution.
Core Workflow
1. Program Analysis Setup
Initial Assessment:
- Identify programming language and paradigm
- Determine analysis scope (function, module, program)
- Select appropriate abstract domains
- Identify analysis goals (safety, correctness, optimization)
Abstract Domain Selection:
Choose domains based on analysis needs:
Numerical domains:
- Intervals: Track value ranges
[min, max] - Signs: Track {negative, zero, positive, unknown}
- Octagons: Linear constraints
±x ±y ≤ c - Polyhedra: General linear constraints
Non-numerical domains:
- Nullness: Track {null, non-null, unknown} for pointers
- Constant propagation: Track known constant values
- Type domains: Track possible types
- Parity: Track {even, odd, unknown}
Relational vs non-relational:
- Non-relational: Track variables independently (faster, less precise)
- Relational: Track relationships between variables (slower, more precise)
2. Control Flow Analysis
Build Control Flow Graph (CFG):
Represent program structure:
Identify key structures:
- Sequential: Straight-line code
- Conditional: if-then-else branches
- Loops: while, for, do-while
- Function calls: Call/return edges
- Exception handling: try-catch-finally
Path analysis:
- Path-sensitive: Track separate states per path (more precise)
- Path-insensitive: Merge states at join points (more efficient)
- Trace partitioning: Hybrid approach based on key predicates
3. Abstract State Computation
Transfer Functions:
Model how statements affect abstract states:
Assignment: `x = expr`
Conditional: `if (condition)`
Loop: `while (condition)`
Function call: `y = f(x)`
Lattice Operations:
Join (∪): Merge states from different paths
Meet (∩): Refine state with constraints
Widening (∇): Accelerate convergence for loops
Narrowing (△): Refine widened results
4. Variable Relationship Tracking
Data Dependencies:
Track how variables affect each other:
- Def-use chains: Where variables are defined and used
- Use-def chains: Which definitions reach each use
- Dependency graph: Variable dependency relationships
Relational Constraints:
For relational domains, track constraints:
Equality Tracking:
5. Loop Invariant Inference
Fixpoint Computation:
Loop Invariant:
Properties that hold at loop head:
Loop Bounds:
Estimate iteration counts:
- Constant bounds:
for i in range(10)→ 10 iterations - Symbolic bounds:
for i in range(n)→ n iterations - Unbounded:
while condition→ unknown iterations
Loop Effects:
Summarize loop behavior:
- Which variables are modified
- How values change per iteration
- Accumulated effects over all iterations
6. Function Summarization
Compute Function Summaries:
Preconditions: Required input states
Postconditions: Guaranteed output states
Side effects: Modifications to global state
Frame conditions: What remains unchanged
Modular Analysis:
Analyze functions separately:
- Compute summary for each function
- Reuse summaries at call sites
- Handle recursion with fixpoint computation
7. Trace Summarization
Generate High-Level Summary:
Execution paths:
Key control flow:
Variable states:
Potential runtime states:
Output Format
Structure the abstract trace summary as follows:
[Abstract state at this point]
[Abstract state at this point]
Analysis Techniques by Language
Python
- Type inference: Track possible types for dynamic variables
- Exception flow: Model try-except-finally blocks
- List operations: Track list lengths and element types
- Dictionary operations: Track key-value relationships
Java/C#
- Null analysis: Track nullness for object references
- Type hierarchy: Use class hierarchy for precision
- Exception handling: Model checked and unchecked exceptions
- Concurrency: Analyze thread interleavings and synchronization
C/C++
- Pointer analysis: Track points-to relationships
- Buffer bounds: Analyze array and buffer accesses
- Memory safety: Detect use-after-free, double-free
- Undefined behavior: Identify potential UB
JavaScript
- Type coercion: Model implicit type conversions
- Prototype chain: Track prototype relationships
- Async operations: Model promises and callbacks
- Dynamic properties: Track object property additions
Common Analysis Patterns
Pattern 1: Simple Loop Analysis
Pattern 2: Conditional Branch Analysis
Pattern 3: Null Safety Analysis
Pattern 4: Array Bounds Analysis
Precision vs Performance Trade-offs
High Precision (Slower)
- Path-sensitive analysis
- Relational domains (polyhedra, octagons)
- Context-sensitive function analysis
- Narrowing after widening
Use when:
- Proving critical safety properties
- Small code regions
- High assurance requirements
Balanced Precision
- Trace partitioning
- Interval domain with some relations
- Summary-based function analysis
- Widening without narrowing
Use when:
- General program analysis
- Medium-sized programs
- Balance between precision and cost
High Performance (Less Precise)
- Path-insensitive analysis
- Non-relational domains (intervals, signs)
- Context-insensitive function analysis
- Aggressive widening
Use when:
- Large codebases
- Quick feedback needed
- Scalability is priority
Important Guidelines
DO:
- ✅ Select appropriate abstract domains for the analysis goal
- ✅ Clearly document assumptions and approximations
- ✅ Explain loop invariants and their significance
- ✅ Highlight potential safety issues or runtime errors
- ✅ Provide concrete examples when explaining abstract states
- ✅ Show both over-approximation and under-approximation when relevant
- ✅ Explain fixpoint computation for loops
- ✅ Track variable relationships when using relational domains
DON'T:
- ❌ Claim absolute certainty (abstract interpretation is approximate)
- ❌ Ignore infeasible paths without noting them
- ❌ Use overly complex domains when simpler ones suffice
- ❌ Forget to apply widening at loop heads (may not terminate)
- ❌ Present abstract states without explaining their meaning
- ❌ Ignore language-specific features (exceptions, concurrency)
- ❌ Overlook function summaries for modular analysis
Resources
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/abstract-trace-summarizer/SKILL.md
Popularity
- Repository stars
- 63
- Repository forks
- 5
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/arabelatso/skills-4-se/abstract-trace-summarizer)