| 1 |
Require Import PrimInt63. |
| 2 |
|
| 3 |
Check 2%uint63. |
| 4 |
Open Scope uint63_scope. |
| 5 |
Check 2. |
| 6 |
Check 9223372036854775807. |
| 7 |
Check 0x1ab. |
| 8 |
Check 0X1ab. |
| 9 |
Check 0x1Ab. |
| 10 |
Check 0x1aB. |
| 11 |
Check 0x1AB. |
| 12 |
Fail Check 0x1ap5. (* exponents not implemented (yet?) *) |
| 13 |
Fail Check 0x1aP5. |
| 14 |
Check 0x0. |
| 15 |
Check 0x000. |
| 16 |
Fail Check 0xg. |
| 17 |
Fail Check 0xG. |
| 18 |
Fail Check 00x1. |
| 19 |
Fail Check 0x. |
| 20 |
Check (PrimInt63.add 2 2). |
| 21 |
Fail Check -1. |
| 22 |
Fail Check 9223372036854775808. |
| 23 |
|
| 24 |
Set Printing All. |
| 25 |
Check 1%uint63. |
| 26 |
Unset Printing All. |
| 27 |
|
| 28 |
Open Scope nat_scope. |
| 29 |
Check 2. (* : nat *) |
| 30 |
Check 2%uint63. |
| 31 |
Delimit Scope uint63_scope with ui63. |
| 32 |
Definition t := 2%uint63. |
| 33 |
Print t. |
| 34 |
Delimit Scope nat_scope with uint63. |
| 35 |
Print t. |
| 36 |
Check 2. |
| 37 |
Close Scope nat_scope. |
| 38 |
Check 2. |
| 39 |
Close Scope uint63_scope. |
| 40 |
|
| 41 |
Check add 2 2. |
| 42 |
Open Scope uint63_scope. |
| 43 |
Check (add 2 2). |
| 44 |
Eval vm_compute in add 2 2. |
| 45 |
Eval vm_compute in mul 65675757 565675998. |
| 46 |
|
| 47 |
Eval simpl in add 2 2. |
| 48 |
Eval hnf in add 2 2. |
| 49 |
Eval cbn in add 2 2. |
| 50 |
Eval hnf in PrimInt63.add. |
| 51 |
|
| 52 |
Eval simpl in add (mul 2 3) (mul 2 3). |
| 53 |
Eval hnf in add (mul 2 3) (mul 2 3). |
| 54 |
Eval cbn in add (mul 2 3) (mul 2 3). |
| 55 |
|
| 56 |
Section TestNoSimpl. |
| 57 |
Variable x : int. |
| 58 |
Eval simpl in add (add 1 2) x. |
| 59 |
Eval hnf in add (add 1 2) x. |
| 60 |
End TestNoSimpl. |