Skip to content

Commit

Permalink
Merge pull request #230 from LPCIC/bug-229
Browse files Browse the repository at this point in the history
clarify doc of findall
  • Loading branch information
gares authored May 20, 2024
2 parents ef05e82 + 17f1914 commit cbcd669
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 58 deletions.
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

0 comments on commit cbcd669

Please sign in to comment.