From 659e5fd404f454def89aacaf02b2d067e640a85f Mon Sep 17 00:00:00 2001 From: pacien Date: Sat, 21 Apr 2018 15:38:11 +0200 Subject: Document eurm transformation functions --- eurml.mli | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'eurml.mli') diff --git a/eurml.mli b/eurml.mli index 1b13dca..8fd8ef1 100644 --- a/eurml.mli +++ b/eurml.mli @@ -5,10 +5,21 @@ open Common +(* Strips out comments and rewrite/enumerate labels *) val compile_preprocess : eurmcmd list -> eurmcmd list + +(* Rewrites Dec, GEqPredicate, LEqPredicate, LTPredicate, Mult and ZeroPredicate *) val compile_stage1 : eurmcmd list -> state -> eurmcmd list * state + +(* Rewrites Add, GTPredicate and Sub *) val compile_stage2 : eurmcmd list -> state -> eurmcmd list * state + +(* Rewrites Goto *) val compile_stage3 : eurmcmd list -> state -> eurmcmd list * state + +(* Rewrites Inc, EqPredicate, Label and Zero *) val compile_stage4 : eurmcmd list -> state -> urmcmd list * state + +(* Transcompiles an EURM instruction sequence into URM *) val urm_from_eurm : eurmcmd list -> urmcmd list -- cgit v1.2.3