diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2017-09-14 14:12:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-14 14:12:22 -0500 |
commit | ab2924e8a6cc34f29167b1ff50273d59dd7a6707 (patch) | |
tree | d9902a389ae70a21f2d5a3f7acde2ce658fb534d /test/regress/regress0/sets | |
parent | e4fc6c7b57668f18ce087c45e001c101375c20ea (diff) |
Remove unhandled subtypes (#1098)
* Remove unhandled subtypes, which consequently makes typing rules uniformly stricter based on weakening the subtype relation. Ensure coercions in the smt2 and cvc parser for Real decimal constants whose type is Integer. Ensure type annotations are computed during preRewrite to ensure rewriting (which does not preserve types) does not impact term construction for parametric datatypes. This fixes issue #1048 (we now give an type exception).
* Update unit test for parametric datatypes to reflect new subtyping relation.
* Remove deprecated test.
* Make array construction for lambdas work with new subtype relations to handle lambdas like (lambda ((x Int) (y Int)) (ite (= x 0) 0.5 0.0)).
Diffstat (limited to 'test/regress/regress0/sets')
-rw-r--r-- | test/regress/regress0/sets/sets-tuple-poly.cvc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/regress/regress0/sets/sets-tuple-poly.cvc b/test/regress/regress0/sets/sets-tuple-poly.cvc index 64fb310be..4cac9a24e 100644 --- a/test/regress/regress0/sets/sets-tuple-poly.cvc +++ b/test/regress/regress0/sets/sets-tuple-poly.cvc @@ -7,7 +7,7 @@ b : SET OF [INT, REAL]; x : [ REAL, REAL ]; -ASSERT NOT x = (0,0); +ASSERT NOT x = (0.0,0.0); ASSERT (x.0, FLOOR(x.1)) IS_IN a; ASSERT (FLOOR(x.0), x.1) IS_IN b; |