How priyam-gandhi/dm-cp works
The product is a command-line propositional-argument validity analyzer. A user supplies variables, premises, and a conclusion; the program evaluates every truth assignment, displays a truth table, then reports validity or a counterexample. The parser implements expression evaluation for the supported logical operators. Source excerpts show the main routine invoking both analysis routines and each analysis routine invoking the parser; unsampled executable files are excluded.
Main entry points: main.c Input and dispatch · truth_table.c Truth-table generation · validity.c Validity and counterexamples · parser.c Expression evaluator
Components 5
CLI interaction
- Input and dispatch
main.c
Expression evaluation
- Expression evaluator
parser.c
Argument analysis
- Truth-table generation
truth_table.c - Validity and counterexamples
validity.c
Other components
- User
Connections 5
- User → Input and dispatch: enters argument
main.c - Input and dispatch → Truth-table generation: generates table
main.c - Input and dispatch → Validity and counterexamples: checks validity
main.c - Truth-table generation → Expression evaluator: evaluates expressions
truth_table.c - Validity and counterexamples → Expression evaluator: evaluates expressions
validity.c