How arminbiere/cadical works
Main Components
a) Core Solver Components:
• Algorithmic components:
• Propagation Engine (propagate.cpp)
• Decision Engine (decide.cpp)
• Clause Learning (analyze.cpp)
• Backtracking (backtrack.cpp)
• Variable Management (var.cpp)
• Clause Management (clause.cpp)
b) Preprocessing Layer:
• Preprocessing components:
• Elimination (elim.cpp)
• Subsumption (subsume.cpp)
• Vivification (vivify.cpp)
• Probing (probe.cpp)
c) Interface Layer:
• API Interfaces:
• C++ API (cadical.hpp)
• C API (ccadical.h)
• IPASIR Interface (ipasir.cpp)
d) Proof Generation:
• Multiple proof format support:
• DRAT Tracer
• FRAT Tracer
• LRAT Tracer
• VeriPB Tracer
Component Relationships
[Input Layer (CNF/ICNF)] → [Preprocessing] → [Core Solver] → [Solution/Proof]
• ↑↓ ↑↓
• [Clause Database] ← [Learnt Clauses]
Important Details
a) Data Structures:
• Clause storage (clause.hpp)
• Watch lists (watch.hpp)
• Variable heap (heap.hpp)
• Assignment queue (queue.hpp)
b) Utility Components:
• Memory management (arena.hpp)
• Configuration (config.hpp)
• Statistics (stats.hpp)
• Resource limits (limit.hpp)
Implementation Notes
Use these symbols:
• Rectangles: Major components
• Rounded rectangles: Interfaces
• Diamonds: Decision points
• Simplicity and maintainability
• Performance optimization
• Modular architecture
• Multiple interface support
Keep the abstraction level focused on the major architectural components while showing enough detail to understand the solver's operation flow and key features.
This architecture represents a modern CDCL SAT solver with a focus on clean design and high performance, suitable for both academic and industrial applications.