X-Git-Url: http://svarog.pmf.uns.ac.rs/gitweb/?p=mjc2wsl.git;a=blobdiff_plain;f=samples%2Fsample0-h1.wsl;fp=samples%2Fsample0-h1.wsl;h=905cb16ecbae3f0bc5b669bc63bfca1c193a3959;hp=0000000000000000000000000000000000000000;hb=08dc19331d758604747a51cdef7318ca34e9175e;hpb=a24993cfe39a1fd5b7db6e2ffe9f656955fb73bd diff --git a/samples/sample0-h1.wsl b/samples/sample0-h1.wsl new file mode 100644 index 0000000..905cb16 --- /dev/null +++ b/samples/sample0-h1.wsl @@ -0,0 +1,41 @@ +C:" This file automatically converted from microjava bytecode"; +C:" with mjc2wsl v 0.1"; +VAR < tempa := 0, tempb := 0, tempres :=0, +loc0 := 0, loc1 := 0, loc2 := 0, loc3 := 0, + estack := < >, t_e_m_p := 0 > : + ACTIONS A_S_start: + A_S_start == + +C:" enter not fully procesed yet"; +estack := <0 > ++ estack; +loc0 := HEAD(estack); estack := TAIL(estack); +CALL a19 END +a19 == +estack := ++ estack; +estack := <5 > ++ estack; +tempa := HEAD(estack); estack := TAIL(estack); +tempb := HEAD(estack); estack := TAIL(estack); +C:" IF CALL 13"; +IF tempb >= tempa THEN CALL a34 FI; +estack := ++ estack; +estack := <0 > ++ estack; +tempa := HEAD(estack); estack := TAIL(estack); +tempa := HEAD(estack); estack := TAIL(estack); +PRINT(tempa); +estack := ++ estack; +estack := <1 > ++ estack; +tempa := HEAD(estack); estack := TAIL(estack); +tempb := HEAD(estack); estack := TAIL(estack); +tempres := tempb + tempa; +estack := ++ estack; +loc0 := HEAD(estack); estack := TAIL(estack); +C:" CALL -12"; +CALL a19 END +a34 == +C:" exit not fully procesed yet"; +C:" return not fully procesed yet"; +CALL Z +END +ENDACTIONS; +SKIP +ENDVAR