Changeset 1585 for Deliverables/D2.2/8051/src/common
- Timestamp:
- Dec 2, 2011, 7:49:19 PM (9 years ago)
- Location:
- Deliverables/D2.2/8051/src/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Deliverables/D2.2/8051/src/common/costLabel.ml
r1542 r1585 42 42 let curr_ind = function 43 43 | hd :: _ -> hd 44 | _ -> invalid_arg " non-empty indexing stack"44 | _ -> invalid_arg "empty indexing stack" 45 45 46 46 let enter_loop inds = enter_loop_single (curr_ind inds) … … 56 56 let forget_const_ind = function 57 57 | _ :: inds -> inds 58 | _ -> invalid_arg " non-empty indexing stack"58 | _ -> invalid_arg "empty indexing stack" 59 59 60 60 let sexpr_of i l = -
Deliverables/D2.2/8051/src/common/costLabel.mli
r1542 r1585 31 31 32 32 (** This is equivalent to [List.hd], but raises 33 [Invalid_argument " non-empty indexing stack"] if argument is empty *)33 [Invalid_argument "empty indexing stack"] if argument is empty *) 34 34 val curr_const_ind : const_indexing list -> const_indexing 35 35 … … 46 46 (** [continue_loop inds n] is used to update the indexing stack [inds] when 47 47 one is continuing a loop indexed by [n]. 48 @raise [Invalid_argument " non-empty indexing stack"] if [inds] is empty.48 @raise [Invalid_argument "empty indexing stack"] if [inds] is empty. 49 49 @raise [Invalid_argument "uninitialized loop index"] if the head of 50 50 [inds] has no value for [index]. *) … … 61 61 62 62 (** [forget_const_ind inds] pops and discards the top constant indexing from the 63 stack [inds]. Raises [Invalid_argument " non-empty indexing stack"] if63 stack [inds]. Raises [Invalid_argument "empty indexing stack"] if 64 64 [inds] is empty. *) 65 65 val forget_const_ind : const_indexing list -> const_indexing list
Note: See TracChangeset
for help on using the changeset viewer.