can_be_op_priority(Priority) :- var(Priority).
can_be_op_priority(Priority) :- op_priority(Priority).
-
can_be_op_specifier(Spec) :- var(Spec).
can_be_op_specifier(Spec) :- op_specifier(Spec).
.map(|code_idx| code_idx.set(old_code_idx));
}
RetractionRecord::AddedIndex(index_key, clause_loc) => {
- // WAS: inner_index_locs) => {
if let Some(index_loc) = index_key.switch_on_term_loc() {
let indexing_code = match &mut self.wam_prelude.code[index_loc] {
Instruction::IndexingCode(indexing_code) => indexing_code,
let (op_prec, op_spec) =
(op_desc.get_prec(), op_desc.get_spec());
+ if op_prec == 0 {
+ // 8.14.4, note 2
+ self.machine_st.fail = true;
+ return;
+ }
+
let op_spec = match op_spec as u32 {
XFX => atom!("xfx"),
XFY => atom!("xfy"),
for op_desc in op_descs {
if let Some((key, op_desc)) = op_desc {
let (prec, spec) = (op_desc.get_prec(), op_desc.get_spec());
+
+ if prec == 0 {
+ // 8.14.4, note 2
+ continue;
+ }
+
unossified_op_dir.insert(*key, (prec as usize, spec as Specifier));
}
}
let name = key.0;
if other_prec == 0 {
+ // 8.14.4, note 2
return None;
}