Debian Codegraph @

test-suite/primitive/sint63/asr.v

raw
1 Require Import TestSuite.sint63.
2
3 Set Implicit Arguments.
4
5 Open Scope sint63_scope.
6
7 Check (eq_refl : asr (-2305843009213693952)%sint63 61 = -1).
8 Check (eq_refl (-1) <: asr (-2305843009213693952)%sint63 61 = -1).
9 Check (eq_refl (-1) <<: asr (-2305843009213693952)%sint63 61 = -1).
10 Definition compute1 := Eval compute in asr (-2305843009213693952)%sint63 61.
11 Check (eq_refl compute1 : -1 = -1).
12
13 Check (eq_refl : asr 2305843009213693952 62 = 0).
14 Check (eq_refl 0 <: asr 2305843009213693952 62 = 0).
15 Check (eq_refl 0 <<: asr 2305843009213693952 62 = 0).
16 Definition compute2 := Eval compute in asr 2305843009213693952 62.
17 Check (eq_refl compute2 : 0 = 0).
18
19 Check (eq_refl : asr 4611686018427387903 63 = 0).
20 Check (eq_refl 0 <: asr 4611686018427387903 63 = 0).
21 Check (eq_refl 0 <<: asr 4611686018427387903 63 = 0).
22 Definition compute3 := Eval compute in asr 4611686018427387903 63.
23 Check (eq_refl compute3 : 0 = 0).
24
25 Check (eq_refl : asr (-1)%sint63 1 = -1).
26 Check (eq_refl (-1) <: asr (-1)%sint63 1 = -1).
27 Check (eq_refl (-1) <<: asr (-1)%sint63 1 = -1).
28 Definition compute4 := Eval compute in asr (-1)%sint63 1.
29 Check (eq_refl compute4 : -1 = -1).
30
31 Check (eq_refl : asr (-1)%sint63 (-1)%sint63 = 0).
32 Check (eq_refl 0 <: asr (-1)%sint63 (-1)%sint63 = 0).
33 Check (eq_refl 0 <<: asr (-1)%sint63 (-1)%sint63 = 0).
34 Definition compute5 := Eval compute in asr (-1)%sint63 (-1)%sint63.
35 Check (eq_refl compute5 : 0 = 0).
36
37 Check (eq_refl : asr 73 (-2)%sint63 = 0).
38 Check (eq_refl 0 <: asr 73 (-2)%sint63 = 0).
39 Check (eq_refl 0 <<: asr 73 (-2)%sint63 = 0).
40 Definition compute6 := Eval compute in asr 73 (-2)%sint63.
41 Check (eq_refl compute6 : 0 = 0).