diff options
| author | Guillaume Melquiond | 2019-07-29 21:24:11 +0200 |
|---|---|---|
| committer | Guillaume Melquiond | 2019-07-29 21:36:35 +0200 |
| commit | 654254ca2e6ac94d3e0c62a127f92caff4b5938c (patch) | |
| tree | 75f33644dc5c54b924185198cf93b42a2e68cb9c /test-suite | |
| parent | b3c870e5ea090028fb9292e14d77496e1b9c8061 (diff) | |
Use the precondition of diveucl_21 to avoid massaging the dividend.
All the implementations now return (0, 0) when the dividend is so large
that the quotient would overflow.
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/arithmetic/diveucl_21.v | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test-suite/arithmetic/diveucl_21.v b/test-suite/arithmetic/diveucl_21.v index bd76df12ce..b12dba429c 100644 --- a/test-suite/arithmetic/diveucl_21.v +++ b/test-suite/arithmetic/diveucl_21.v @@ -10,11 +10,11 @@ Check (eq_refl (4611686018427387904,1) <<: diveucl_21 1 1 2 = (46116860184273879 Definition compute1 := Eval compute in diveucl_21 1 1 2. Check (eq_refl compute1 : (4611686018427387904,1) = (4611686018427387904,1)). -Check (eq_refl : diveucl_21 3 1 2 = (4611686018427387904, 1)). -Check (eq_refl (4611686018427387904, 1) <: diveucl_21 3 1 2 = (4611686018427387904, 1)). -Check (eq_refl (4611686018427387904, 1) <<: diveucl_21 3 1 2 = (4611686018427387904, 1)). +Check (eq_refl : diveucl_21 3 1 2 = (0, 0)). +Check (eq_refl (0, 0) <: diveucl_21 3 1 2 = (0, 0)). +Check (eq_refl (0, 0) <<: diveucl_21 3 1 2 = (0, 0)). Definition compute2 := Eval compute in diveucl_21 3 1 2. -Check (eq_refl compute2 : (4611686018427387904, 1) = (4611686018427387904, 1)). +Check (eq_refl compute2 : (0, 0) = (0, 0)). Check (eq_refl : diveucl_21 1 1 0 = (0,0)). Check (eq_refl (0,0) <: diveucl_21 1 1 0 = (0,0)). |
