2022-03-16 14:04:31 +03:00
|
|
|
## Article
|
|
|
|
|
|
|
|
```catala
|
|
|
|
declaration enumeration E:
|
|
|
|
-- C1
|
|
|
|
-- C2
|
|
|
|
|
|
|
|
declaration scope A:
|
2023-06-03 19:02:57 +03:00
|
|
|
internal x content E
|
|
|
|
output y content integer
|
2022-03-16 14:04:31 +03:00
|
|
|
|
|
|
|
scope A:
|
|
|
|
definition x equals C1
|
|
|
|
definition y under condition x = C1 consequence equals 1
|
|
|
|
definition y under condition x = C2 consequence equals 2
|
|
|
|
definition y under condition x = C2 consequence equals 3
|
|
|
|
```
|
2022-07-08 17:23:09 +03:00
|
|
|
|
2022-09-23 15:04:13 +03:00
|
|
|
```catala-test-inline
|
2023-12-05 14:00:15 +03:00
|
|
|
$ catala Proof --disable-counterexamples
|
2023-05-30 17:23:53 +03:00
|
|
|
[WARNING] [A.y] At least two exceptions overlap for this variable:
|
2024-02-12 20:03:16 +03:00
|
|
|
┌─⯈ tests/proof/bad/enums_inj-overlap.catala_en:10.10-10.11:
|
2022-10-27 13:18:00 +03:00
|
|
|
└──┐
|
2023-06-03 19:02:57 +03:00
|
|
|
10 │ output y content integer
|
|
|
|
│ ‾
|
2022-10-27 13:18:00 +03:00
|
|
|
└─ Article
|
2022-09-23 15:04:13 +03:00
|
|
|
Counterexample generation is disabled so none was generated.
|
2022-07-08 17:23:09 +03:00
|
|
|
```
|