diff --git a/src/expressions/truth_table.rs b/src/expressions/truth_table.rs
index ce32b46..6a89cff 100644
--- a/src/expressions/truth_table.rs
+++ b/src/expressions/truth_table.rs
@@ -82,7 +82,9 @@ impl TruthTable {
return vec![];
}
let helper = Self::helper_matrix(count);
- let truths = Self::generate_truth_table(&helper, expression);
+ for row in &helper {
+ let truths = Self::generate_truth_table(row, expression);
+ }
todo!()
}
@@ -100,11 +102,29 @@ impl TruthTable {
// TODO store the expressions along with their values in a list tree structure
// For each node. Their left child is index * 2 + 1 and right child is index * 2 + 2
// Ex: 0 -> (1, 2), 1 -> (3, 4), 2 -> (5, 6)
- fn generate_truth_table<'a>(helper: &TruthMatrix, expression: &'a Expression) -> Vec