Skip to content

Commit 396d2de

Browse files
committed
Document pragma[assume_small_delta]
1 parent 7f6efae commit 396d2de

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/codeql/ql-language-reference/annotations.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,15 @@ For example, ``x = pragma[only_bind_into](y)`` is semantically equivalent to ``x
397397

398398
For more information, see ":ref:`Binding <binding>`."
399399

400+
``pragma[assume_small_delta]``
401+
------------------------------
402+
403+
**Available for**: |characteristic predicates|, |member predicates|, |non-member predicates|
404+
405+
The ``pragma[assume_small_delta]`` annotation changes the compilation of the annotated recursive predicate.
406+
If the compiler normally generates the join orders ``order_<1>``, ``order_<2>``, ``order_<3>``, and ``standard_order``,
407+
applying this annotation makes ``standard_order`` the same as ``order_<3>`` and removes the (now redundant) ``order_<3>`` join order.
408+
400409
.. _language:
401410

402411
Language pragmas

0 commit comments

Comments
 (0)