diff options
| author | 2026-11-07 05:06:01 +0000 | |
|---|---|---|
| committer | 2026-11-07 05:38:49 +0000 | |
| commit | 04f8b646c1c8a2435931bea9d1acffdde138f81e (patch) | |
| tree | 892354a7b485c3ac53e51a7d3e3388254ac877b7 /src/expert-system.c | |
| download | coursework-master.tar.gz | |
Diffstat (limited to 'src/expert-system.c')
| -rw-r--r-- | src/expert-system.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/expert-system.c b/src/expert-system.c new file mode 100644 index 0000000..3462c44 --- /dev/null +++ b/src/expert-system.c | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | #include <stdlib.h> | ||
| 2 | #include <stdint.h> | ||
| 3 | #include <stdio.h> | ||
| 4 | #include <stdbool.h> | ||
| 5 | |||
| 6 | #include "knowledge-base.h" | ||
| 7 | #include "inference-engine.h" | ||
| 8 | |||
| 9 | int | ||
| 10 | main (void) | ||
| 11 | { | ||
| 12 | // TODO(cmmm): auto-rebuild | ||
| 13 | print_knowledge_base (); | ||
| 14 | putchar ('\n'); | ||
| 15 | build_decision_tree (); | ||
| 16 | write_decision_tree_in_dot_format (); | ||
| 17 | putchar ('\n'); | ||
| 18 | question_user (); | ||
| 19 | |||
| 20 | return EXIT_SUCCESS; | ||
| 21 | } | ||
