tididi-cnf is a knowledge compiler and model counter for CNF. Paste a DIMACS CNF, open or drop a file, or pick an example: tididi-cnf compiles the formula into a Tree Decision Diagram and counts its models: the model count, the weighted count, or either one projected onto the formula's show variables. The weights and the show variables come from the formula's own c p weight and c p show lines, and its c t line names the task unless you pick one. Everything runs in this tab and nothing is uploaded. tididi-cnf is also a Rust crate with a command-line tool and API documentation; its input reference describes the format, and its evaluation compares it with decision-diagram compilers, logic-circuit compilers and model counters.

Input

Try an example

A formula with no c t line is compiled, and its models counted. A task picked here must agree with the formula's c t line.

Loading tididi-cnf.

Result

Press Run.