(body: Expression)
| 361 | // Unknown symbol - could be a finite set, but we can't determine |
| 362 | return { |
| 363 | status: 'non-enumerable', |
| 364 | variable, |
| 365 | domain, |
| 366 | reason: 'unknown-domain', |
| 367 | }; |
| 368 | } |
| 369 | |
| 370 | // A call whose value is a finite collection (`Sort(L)`, `Reverse(L)`, |
| 371 | // `Take(L, 2)`): its elements are the values. They are read from the |
| 372 | // evaluated collection as they are, so a computed list of two integers is |
| 373 | // not read as a range, as a written `[a, b]` is above. Only a pure call is |
| 374 | // evaluated: the caller can still give up on the values (a condition or a |
| 375 | // predicate that is not decided) and return the call as written, so the |
| 376 | // effects of an impure call would run once more at the next evaluation. The |
no test coverage detected