summaryrefslogtreecommitdiff
path: root/transfer/examples/prim.tr
blob: fe0d32eac0bbce2510d5ba1fada484f51c58b2fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--
-- Primitives
--


String : Type ;

Int : Type ;

prim_add_Int : (_:Int) -> (_:Int) -> Int ;
prim_sub_Int : (_:Int) -> (_:Int) -> Int ;
prim_mul_Int : (_:Int) -> (_:Int) -> Int ;
prim_div_Int : (_:Int) -> (_:Int) -> Int ;
prim_mod_Int : (_:Int) -> (_:Int) -> Int ;

prim_neg_Int : (_:Int) -> Int ;

prim_lt_Int : (_:Int) -> (_:Int) -> Bool ;
prim_le_Int : (_:Int) -> (_:Int) -> Bool ;
prim_gt_Int : (_:Int) -> (_:Int) -> Bool ;
prim_ge_Int : (_:Int) -> (_:Int) -> Bool ;
prim_eq_Int : (_:Int) -> (_:Int) -> Bool ;
prim_ne_Int : (_:Int) -> (_:Int) -> Bool ;