Skip to content

Commit 2407eb1

Browse files
author
james
committed
docs: fix list
(cherry picked from commit 618a3f9)
1 parent cdcca63 commit 2407eb1

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/language/ql-spec/language.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,10 +1075,16 @@ Apart from the presence or absence of the rank variable, all other reduced forms
10751075

10761076
- If the formula is omitted, then it is taken to be ``any()``.
10771077
- If there are no aggregation expressions, then either:
1078-
+ The aggregation id is ``count`` or ``strictcount`` and the expression is taken to be ``1``.
1079-
+ There must be precisely one variable declaration, and the aggregation expression is taken to be a reference to that variable.
1078+
1079+
- The aggregation id is ``count`` or ``strictcount`` and the expression is taken to be ``1``.
1080+
- There must be precisely one variable declaration, and the aggregation expression is taken to be a reference to that variable.
1081+
10801082
- If the aggregation id is ``concat`` or ``strictconcat`` and it has a single expression then the second expression is taken to be ``""``.
1081-
- If the ``monotonicAggregates`` language pragma is not enabled, or the original formula and variable declarations are both omitted, then the aggregate is transformed as follows: - For each aggregation expression ``expr_i``, a fresh variable ``v_i`` is declared with the same type as the expression in addition to the original variable declarations. - The new range is the conjunction of the original range and a term ``v_i = expr_i`` for each aggregation expression ``expr_i``. - Each original aggregation expression ``expr_i`` is replaced by a new aggregation expression ``v_i``.
1083+
- If the ``monotonicAggregates`` language pragma is not enabled, or the original formula and variable declarations are both omitted, then the aggregate is transformed as follows:
1084+
1085+
- For each aggregation expression ``expr_i``, a fresh variable ``v_i`` is declared with the same type as the expression in addition to the original variable declarations.
1086+
- The new range is the conjunction of the original range and a term ``v_i = expr_i`` for each aggregation expression ``expr_i``.
1087+
- Each original aggregation expression ``expr_i`` is replaced by a new aggregation expression ``v_i``.
10821088

10831089
The variables in the variable declarations list must not occur in the typing environment.
10841090

0 commit comments

Comments
 (0)