1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 /* Limit the number of expressions to 6 for performance reasons */
5 identifier id = assert_cc;
11 id(e@p1 == n0 || ...);
15 position p2 != is_in_assert_cc.p1;
16 /* Exclude JsonVariant * from the transformation, as it can't work with the
17 * current version of the IN_SET macro */
19 type T != JsonVariant*;
20 constant T n0, n1, n2, n3, n4, n5;
24 - e@p2 == n0 || e == n1 || e == n2 || e == n3 || e == n4 || e == n5
25 + IN_SET(e, n0, n1, n2, n3, n4, n5)
27 - e@p2 == n0 || e == n1 || e == n2 || e == n3 || e == n4
28 + IN_SET(e, n0, n1, n2, n3, n4)
30 - e@p2 == n0 || e == n1 || e == n2 || e == n3
31 + IN_SET(e, n0, n1, n2, n3)
33 - e@p2 == n0 || e == n1 || e == n2
34 + IN_SET(e, n0, n1, n2)
36 - e@p2 == n0 || e == n1