]> Repositorios git - scryer-prolog.git/commitdiff
remove tabling attributes in each module's attribute_goals//1 (#1825)
authorMark <[email protected]>
Tue, 27 Jun 2023 16:30:55 +0000 (10:30 -0600)
committerMark <[email protected]>
Tue, 27 Jun 2023 16:31:10 +0000 (10:31 -0600)
src/lib/tabling/batched_worklist.pl
src/lib/tabling/double_linked_list.pl
src/lib/tabling/global_worklist.pl
src/lib/tabling/table_data_structure.pl
src/lib/tabling/table_link_manager.pl
src/lib/tabling/trie.pl

index 8a8b411772dbcfe9a93fecd8e1e9a46e242084b9..ce63981ea2c3ea89d4bf7a52d3c8e023710279ff 100644 (file)
 :- use_module(library(tabling/double_linked_list)).
 
 :- use_module(library(atts)).
+:- use_module(library(dcgs)).
 :- use_module(library(lists)).
 
 :- attribute executing_all_work/1, worklist_presence/1, wkl_answer_cluster/1, wkl_suspension_cluster/1, wkl_answer_cluster_pointer_flag/1.
 
 verify_attributes(_, _, []).
 
+attribute_goals(X) -->
+    { put_atts(X, -executing_all_work(_)),
+      put_atts(X, -worklist_presence(_)),
+      put_atts(X, -wkl_answer_cluster(_)),
+      put_atts(X, -wkl_suspension_cluster(_)),
+      put_atts(X, -wkl_answer_cluster_pointer_flag(_)) }.
+
 /** <module> Tabling Worklist management
 
 A batched worklist: a worklist that  clusters suspensions and answers as
index d80ee6db63fb746724b855ae2a015781bd4f3a78..08a71ae7554ae0a8a06cf9ae06a3a5589b49e83d 100644 (file)
          ]).
 
 :- use_module(library(atts)).
+:- use_module(library(dcgs)).
 
 :- attribute dll_element/1, dll_next/1, dll_prev/1.
 
+attribute_goals(X) -->
+     { put_atts(X, -dll_element(_)),
+       put_atts(X, -dll_next(_)),
+       put_atts(X, -dll_prev(_)) }.
+
 % A circular double linked list
 % =============================
 
index 55c437f1c1994c59d81af5454f026556f2f181e7..124638c3b3bbe4e40c86680dbfb43e5122c488a3 100644 (file)
@@ -9,12 +9,15 @@
          ]).
 
 :- use_module(library(atts)).
+:- use_module(library(dcgs)).
 :- use_module(library(iso_ext)).
 
 :- attribute table_global_worklist/1.
 
 verify_attributes(_, _, []).
 
+attribute_goals(X) --> { put_atts(X, -table_global_worklist(_)) }.
+
 put_new_global_worklist :-
   (  bb_get(table_global_worklist_initialized, _) ->
      true
index 69a057e69d62d500365be32d3f78c02d84eebeef..2f36c0e727607df64d16f756df2770888e782a8a 100644 (file)
@@ -56,6 +56,7 @@
 :- use_module(library(tabling/batched_worklist)).
 
 :- use_module(library(atts)).
+:- use_module(library(dcgs)).
 :- use_module(library(gensym)).
 :- use_module(library(iso_ext)).
 
 
 verify_attributes(_, _, []).
 
+attribute_goals(X) -->
+    { put_atts(X, -table_status(_)),
+      put_atts(X, -newly_created_table_identifiers(_)) }.
+
 % This file defines the table datastructure.
 %
 % The table datastructure contains the following sub-structures:
index c346ea1054028b28c91ceec9805c955df22d8b6d..8d2b2c65511e66b3652cce13d09aa688765c33f1 100644 (file)
@@ -43,6 +43,7 @@
          ]).
 
 :- use_module(library(atts)).
+:- use_module(library(dcgs)).
 :- use_module(library(lists)).
 :- use_module(library(iso_ext)).
 :- use_module(library(terms)).
@@ -53,6 +54,9 @@
 
 verify_attributes(_, _, []).
 
+attribute_goals(X) -->
+    { put_atts(X, -trie_table_link(_)) }.
+
 % This file defines a call pattern trie.
 %
 % This data structure keeps the relation between a variant and the
index 2460f70f25e5c4b50d505a995f9e4be6b411ffaf..6a9024fc09fd3c9b2b33e1781e2c98b28dd287bb 100644 (file)
 
 :- use_module(library(assoc)).
 :- use_module(library(atts)).
+:- use_module(library(dcgs)).
 :- use_module(library(lists)).
 
 :- attribute maybe_just/1, children/1.
 
 verify_attributes(_, _, []).
 
+attribute_goals(X) -->
+    { put_atts(X, -maybe_just(_)),
+      put_atts(X, -children(_)) }.
+
 % Implementation of a prefix tree, a.k.a. trie %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%