fix builtin_predicate (#1819)

This commit is contained in:
Mark
2023-06-27 10:41:15 -06:00
parent aa65287c3b
commit ce890799bc

View File

@@ -2475,12 +2475,11 @@ impl Machine {
if !ClauseType::is_inbuilt(name, arity) { // ClauseType::from(key.0, key.1, &mut self.machine_st.arena) {
if let Some(module) = self.indices.modules.get(&(atom!("builtins"))) {
self.machine_st.fail = !module.code_dir.contains_key(&(name, arity));
return;
}
}
} else {
self.machine_st.fail = true;
}
}
}
}
impl<'a> Loader<'a, LiveLoadAndMachineState<'a>> {