| 1 |
Require Import BinNums IntDef PrimInt63. |
| 2 |
|
| 3 |
Set Implicit Arguments. |
| 4 |
|
| 5 |
Open Scope uint63_scope. |
| 6 |
|
| 7 |
Check (eq_refl : mulc 2 3 = (0, 6)). |
| 8 |
Check (eq_refl ((0, 6)) <: mulc 2 3 = (0, 6)). |
| 9 |
Check (eq_refl ((0, 6)) <<: mulc 2 3 = (0, 6)). |
| 10 |
Definition compute1 := Eval compute in mulc 2 3. |
| 11 |
Check (eq_refl compute1 : (0, 6) = (0, 6)). |
| 12 |
|
| 13 |
Check (eq_refl : mulc 9223372036854775807 2 = (1, 9223372036854775806)). |
| 14 |
Check (eq_refl ((1, 9223372036854775806)) <: mulc 9223372036854775807 2 = (1, 9223372036854775806)). |
| 15 |
Check (eq_refl ((1, 9223372036854775806)) <<: mulc 9223372036854775807 2 = (1, 9223372036854775806)). |
| 16 |
|
| 17 |
Definition compute2 := Eval compute in mulc 9223372036854775807 2. |
| 18 |
Check (eq_refl compute2 : (1, 9223372036854775806) = (1, 9223372036854775806)). |
| 19 |
|
| 20 |
Check (eq_refl : mulc 0 0 = (0, 0)). |
| 21 |
Check (eq_refl (0, 0) <: mulc 0 0 = (0, 0)). |
| 22 |
Check (eq_refl ((0, 0)) <<: mulc 0 0 = (0, 0)). |