Skip to content

Commit

Permalink
check for True or False Query Resolution unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
mthom committed Jan 29, 2024
1 parent 7bb9c00 commit 7de693e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/machine/lib_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,17 @@ impl Machine {
};
*/

if term_write_result.var_dict.is_empty() {
if self.machine_st.p == LIB_QUERY_SUCCESS {
if self.machine_st.p == LIB_QUERY_SUCCESS {
if term_write_result.var_dict.is_empty() {
matches.push(QueryResolutionLine::True);
break;
} else if self.machine_st.p == BREAK_FROM_DISPATCH_LOOP_LOC {
// NOTE: only print results on success
// self.machine_st.fail = false;
// println!("b == stub_b");
matches.push(QueryResolutionLine::False);
break;
}
} else if self.machine_st.p == BREAK_FROM_DISPATCH_LOOP_LOC {
// NOTE: only print results on success
// self.machine_st.fail = false;
// println!("b == stub_b");
matches.push(QueryResolutionLine::False);
break;
}

let mut bindings: BTreeMap<String, Value> = BTreeMap::new();
Expand Down

0 comments on commit 7de693e

Please sign in to comment.