aboutsummaryrefslogtreecommitdiff
path: root/test-suite/primitive/sint63/sub.v
blob: 85041772864d559a50f696fd4c8f4540e049bb67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Require Import Sint63.

Set Implicit Arguments.

Open Scope sint63_scope.

Check (eq_refl : 3 - 2 = 1).
Check (eq_refl 1 <: 3 - 2 = 1).
Check (eq_refl 1 <<: 3 - 2 = 1).
Definition compute1 := Eval compute in 3 - 2.
Check (eq_refl compute1 : 1 = 1).

Check (eq_refl : 0 - 1 = -1).
Check (eq_refl (-1) <: 0 - 1 = -1).
Check (eq_refl (-1) <<: 0 - 1 = -1).
Definition compute2 := Eval compute in 0 - 1.
Check (eq_refl compute2 : -1 = -1).

Check (eq_refl : -4611686018427387904 - 1 = 4611686018427387903).
Check (eq_refl 4611686018427387903 <:
  -4611686018427387904 - 1 = 4611686018427387903).
Check (eq_refl 4611686018427387903 <<:
  -4611686018427387904 - 1 = 4611686018427387903).
Definition compute3 := Eval compute in -4611686018427387904 - 1.
Check (eq_refl compute3 : 4611686018427387903 = 4611686018427387903).