ECE 512 Lecture 4.6: CHAFF: Efficient Boolean Constraint Propagation and Decision Heuristics

Professor Anand Raghunathan presented this lecture in an offering of ECE 512, Digital Systems Design Automation, at Purdue University.

Efficient Boolean constraint propagation and decision heuristics lie at the heart of modern SAT solving, a cornerstone technique for hardware verification, software testing, and combinatorial optimization. The CHAF (Constraint Handling And Forwarding) solver, introduced in 2001, demonstrates how careful balancing of heuristic power against implementation cost can dramatically expand the scale of solvable instances. Understanding CHAF’s design therefore provides essential insight into high‑performance SAT solver engineering.

The lecture details CHAF’s focus on accelerating the two dominant operations identified by profiling: Boolean constraint propagation (BCP) and variable‑selection decisions. It explains how CHAF observes that a clause becomes unit precisely when all but one of its literals evaluate to false, and it leverages this observation to avoid repeated full scans of clauses and literals. The discussion includes the use of compact clause and literal representations, bidirectional watch lists that map variables to the clauses in which they appear, and cache‑aware data layouts that minimize L1/L2 accesses. Performance comparisons with contemporaneous solvers such as GRASP and SATO illustrate that fewer decisions do not guarantee faster runtimes; instead, CHAF’s reduced instruction count and cache miss rate yield superior execution times even on large benchmarks (e.g., a 1‑million‑variable instance solved in three hours).

Armed with this knowledge, learners can articulate the trade‑offs inherent in SAT solver design, benchmark CHAF against alternative solvers, and construct data structures that support rapid BCP and decision making. They are also able to derive the precise conditions under which a clause turns into a unit clause and to compute solver metrics such as decision counts and runtime profiles, enabling informed engineering choices for verification tasks and other applications that rely on scalable SAT solving.

Previous
Previous

ECE 512 Lecture 5.11: Technology Mapping Using Dynamic Programming

Next
Next

ECE 512 Lecture 4.5: GRASP: Conflict Driven Learning and Non-Chronological Backtracking