mark is/2 allocated permanent variables as safe, add CompareNumber terms to ClauseType::is_inlined

This commit is contained in:
Mark
2023-06-23 11:13:51 -06:00
parent 89ed1aa8de
commit 4ad113a6f8
3 changed files with 18 additions and 20 deletions

View File

@@ -803,7 +803,6 @@ impl<'b> CodeGenerator<'b> {
let at = match &terms[0] {
&Term::Var(ref vr, ref name) => {
let var_num = name.to_var_num().unwrap();
self.marker.mark_temp_to_safe_perm(var_num);
self.marker.mark_var::<QueryInstruction>(
var_num,
@@ -813,6 +812,8 @@ impl<'b> CodeGenerator<'b> {
code,
);
self.marker.mark_safe_var_unconditionally(var_num);
compile_expr!(self, &terms[1], term_loc, code)
}
&Term::Literal(_, c @ Literal::Integer(_) |