diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2021-04-17 22:01:05 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2021-04-18 17:21:37 +0200 |
| commit | 7ae82c3a41c71c977e409dd20679bc4aec19961c (patch) | |
| tree | 47c7368fe10dda65b58b42caa27c4160a7857f2b /validation/optim/range-check1.c | |
| parent | 48eb2ca449b7f8e8e0684a2d92c8a1d0224861da (diff) | |
| download | sparse-dev-7ae82c3a41c71c977e409dd20679bc4aec19961c.tar.gz | |
add testcases for AND(x > 0, x <= C) --> x u<= C
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/optim/range-check1.c')
| -rw-r--r-- | validation/optim/range-check1.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/validation/optim/range-check1.c b/validation/optim/range-check1.c new file mode 100644 index 00000000..82b93991 --- /dev/null +++ b/validation/optim/range-check1.c @@ -0,0 +1,17 @@ +#define N 1024 + +_Bool check_ok(long i) +{ + return i >= 0 && i < N; +} + +/* + * check-name: range-check1 + * check-command: test-linearize -Wno-decl $file + * check-known-to-fail + * + * check-output-ignore + * check-output-contains: setbe\\..*0x3ff + * check-output-excludes: set[lga][te]\\. + * check-output-excludes: set[ab]\\. + */ |
