Debian Codegraph @

test-suite/primitive/sint63/mul.v

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