]> Repositorios git - scryer-prolog.git/commitdiff
restore tabu_list insertions to PStr-Lis comparisons (#2636)
authorMark Thom <[email protected]>
Fri, 11 Apr 2025 04:03:29 +0000 (21:03 -0700)
committerMark Thom <[email protected]>
Tue, 8 Jul 2025 05:38:12 +0000 (22:38 -0700)
src/machine/machine_state_impl.rs

index 66d3237bcd01135f1bc0ca067165e5f2fce8761e..58535f030b349ddc1de981e95868a46fb4df1dce 100644 (file)
@@ -564,6 +564,12 @@ impl MachineState {
                         (HeapCellValueTag::Lis, l1) => {
                             read_heap_cell!(v2,
                                 (HeapCellValueTag::PStrLoc, l2) => {
+                                    if tabu_list.contains(&(l1, l2)) {
+                                        continue;
+                                    }
+
+                                    tabu_list.insert((l1, l2));
+
                                     // like the action of
                                     // partial_string_to_pdl here but
                                     // the ordering of PDL pushes is