Repository navigation
Expand file tree
/
Copy pathhpalloc.mli
More file actions
64 lines (55 loc) · 1.65 KB
/
Copy pathhpalloc.mli
File metadata and controls
64 lines (55 loc) · 1.65 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
type t =
| Unit
| Int of int
| Float of float
| Neg of Id.t
| Add of Id.t * Id.t
| Sub of Id.t * Id.t
| Mul of Id.t * Id.t
| Div of Id.t * Id.t
| FNeg of Id.t
| FAdd of Id.t * Id.t
| FSub of Id.t * Id.t
| FMul of Id.t * Id.t
| FDiv of Id.t * Id.t
| IfEq of Id.t * Id.t * t * t (* 比較 + 分岐 (caml2html: knormal_branch) *)
| IfLE of Id.t * Id.t * t * t (* 比較 + 分岐 *)
| Let of (Id.t * Type.t) * t * t
| Var of Id.t
| LetRec of fundef * t
| App of Id.t * Id.t list
| ConstTuple of Id.l
| Tuple of Id.t list
| LetTuple of (Id.t * Type.t) list * Id.t * t
| Get of Id.t * Id.t
| Put of Id.t * Id.t * Id.t
| ExtArray of Id.t
| ConstArray of Id.l
| ExtFunApp of Id.t * Id.t list
|Ftoi of Id.t
|Itof of Id.t
|FAbs of Id.t
|FSqrt of Id.t
|Read_int of Id.t(*引数はunit型*)
|Read_float of Id.t(*引数はunit型*)
|Print_char of Id.t
|ForLE of ((Id.t* Id.t) * (Id.t * Id.t) * t) *t
|Let_Ref of (Id.t * Type.t) *t *t
|Ref_Get of Id.t
|Ref_Put of Id.t * Id.t
|LetPara of parallel * t
|Run_parallel of Id.t*Id.t*Id.t list*(Id.t*int) list
|Accum of Id.t*Id.t*Id.t
and fundef = { name : Id.t * Type.t; args : (Id.t * Type.t) list; body : t }
and parallel ={pargs :(Id.t *Type.t) list;
index:(Id.t*(Id.vc*Id.vc)) ;
accum:(Id.t*int) list list ;
pbody : t }
type arraydef = {name :Id.l * Type.t;
size :int;
initv:t }
type tupledef = {name :Id.l * Type.t;
body:t list}
val arrays : arraydef list ref
val tuples : tupledef list ref
val f : KNormal.t -> t