Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clarify doc of findall #230

Merged
merged 2 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/builtin.elpi
Original file line number Diff line number Diff line change
Expand Up @@ -478,10 +478,9 @@ primitive? X S :- is_cdata X (ctype S).
external pred new_int o:int.

% [findall_solution P L] finds all the solved instances of P and puts them
% in L
% in the order in which they are found. Instances can contain
% eigenvariables
% and unification variables.
% in L in the order in which they are found. Instances can contain
% eigenvariables and unification variables. P may or may not be
% instantiated. Instances should be found in L.

external pred findall_solutions i:prop, o:list prop.

Expand Down
4 changes: 1 addition & 3 deletions src/builtin.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1037,9 +1037,7 @@ X == Y :- same_term X Y.
!: !fresh_int)),
DocAbove);

LPDoc {|[findall_solution P L] finds all the solved instances of P and puts them in L
in the order in which they are found. Instances can contain eigenvariables
and unification variables.|};
LPDoc {|[findall_solution P L] finds all the solved instances of P and puts them in L in the order in which they are found. Instances can contain eigenvariables and unification variables. P may or may not be instantiated. Instances should be found in L.|};
LPCode "external pred findall_solutions i:prop, o:list prop.";

MLData safe;
Expand Down
80 changes: 40 additions & 40 deletions tests/sources/trace_w.elab.json
Original file line number Diff line number Diff line change
Expand Up @@ -2429,9 +2429,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 505,
"line": 504,
"column": 0,
"character": 12438
"character": 12502
}
]
}
Expand Down Expand Up @@ -2466,9 +2466,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 505,
"line": 504,
"column": 0,
"character": 12438
"character": 12502
}
]
}
Expand Down Expand Up @@ -2629,9 +2629,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 505,
"line": 504,
"column": 0,
"character": 12438
"character": 12502
}
]
}
Expand Down Expand Up @@ -2761,9 +2761,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 505,
"line": 504,
"column": 0,
"character": 12438
"character": 12502
}
]
}
Expand Down Expand Up @@ -2873,9 +2873,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 506,
"line": 505,
"column": 0,
"character": 12459
"character": 12523
}
]
}
Expand Down Expand Up @@ -2906,9 +2906,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 506,
"line": 505,
"column": 0,
"character": 12459
"character": 12523
}
]
}
Expand Down Expand Up @@ -3035,9 +3035,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 506,
"line": 505,
"column": 0,
"character": 12459
"character": 12523
}
]
}
Expand Down Expand Up @@ -3273,9 +3273,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 505,
"line": 504,
"column": 0,
"character": 12438
"character": 12502
}
]
}
Expand Down Expand Up @@ -3315,9 +3315,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 505,
"line": 504,
"column": 0,
"character": 12438
"character": 12502
}
]
}
Expand Down Expand Up @@ -3478,9 +3478,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 505,
"line": 504,
"column": 0,
"character": 12438
"character": 12502
}
]
}
Expand Down Expand Up @@ -3655,9 +3655,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 505,
"line": 504,
"column": 0,
"character": 12438
"character": 12502
}
]
}
Expand Down Expand Up @@ -3796,9 +3796,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 506,
"line": 505,
"column": 0,
"character": 12459
"character": 12523
}
]
}
Expand Down Expand Up @@ -3846,9 +3846,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 505,
"line": 504,
"column": 0,
"character": 12438
"character": 12502
}
]
}
Expand Down Expand Up @@ -4789,9 +4789,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 505,
"line": 504,
"column": 0,
"character": 12438
"character": 12502
}
]
}
Expand Down Expand Up @@ -4826,9 +4826,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 505,
"line": 504,
"column": 0,
"character": 12438
"character": 12502
}
]
}
Expand Down Expand Up @@ -4951,9 +4951,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 505,
"line": 504,
"column": 0,
"character": 12438
"character": 12502
}
]
}
Expand Down Expand Up @@ -5045,9 +5045,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 505,
"line": 504,
"column": 0,
"character": 12438
"character": 12502
}
]
}
Expand Down Expand Up @@ -5119,9 +5119,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 506,
"line": 505,
"column": 0,
"character": 12459
"character": 12523
}
]
}
Expand All @@ -5145,9 +5145,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 506,
"line": 505,
"column": 0,
"character": 12459
"character": 12523
}
]
}
Expand Down Expand Up @@ -5234,9 +5234,9 @@
"File",
{
"filename": "builtin.elpi",
"line": 506,
"line": 505,
"column": 0,
"character": 12459
"character": 12523
}
]
}
Expand Down
Loading
Loading