Demo entry 4053034

stuff

   

Submitted by anonymous on Mar 15, 2016 at 12:10
Language: Scheme. Code size: 2.7 kB.

(COMPUNIT
 (FUNC
  _Icalculate_t2ibai
  (SEQ
   (LABEL _l0)
   (MOVE (TEMP prog) (TEMP _ARG0))
   (MOVE (TEMP PLUS) (CONST 43))
   (MOVE (TEMP MINUS) (CONST 45))
   (MOVE (TEMP MUL) (CONST 42))
   (MOVE (TEMP i) (CONST 0))
   (MOVE (TEMP n) (MEM (SUB (TEMP prog) (CONST 8))))
   (MOVE (TEMP c) (CONST 0))
   (LABEL _l1)
   (CJUMP (LT (TEMP i) (TEMP n)) _l2)
   (LABEL _l3)
   (MOVE (TEMP _RET0) (TEMP c))
   (MOVE (TEMP _RET1) (CONST 0))
   (RETURN)
   (LABEL _l2)
   (MOVE (TEMP _t1) (TEMP prog))
   (MOVE (TEMP _t2) (TEMP i))
   (CJUMP (AND (LT (TEMP _t2) (MEM (SUB (TEMP _t1) (CONST 8)))) (GEQ (TEMP _t2) (CONST 0))) _l6)
   (LABEL _l7)
   (EXP (CALL (NAME _I_outOfBounds_p)))
   (LABEL _l6)
   (MOVE (TEMP _t3) (MEM (ADD (TEMP _t1) (MUL (TEMP _t2) (CONST 8)))))
   (MOVE (TEMP _eselim_t0) (TEMP _t3))
   (CJUMP (EQ (TEMP _eselim_t0) (TEMP PLUS)) _l4)
   (LABEL _l5)
   (MOVE (TEMP _t4) (TEMP prog))
   (MOVE (TEMP _t5) (TEMP i))
   (CJUMP (AND (LT (TEMP _t5) (MEM (SUB (TEMP _t4) (CONST 8)))) (GEQ (TEMP _t5) (CONST 0))) _l11)
   (LABEL _l12)
   (EXP (CALL (NAME _I_outOfBounds_p)))
   (LABEL _l11)
   (MOVE (TEMP _t6) (MEM (ADD (TEMP _t4) (MUL (TEMP _t5) (CONST 8)))))
   (MOVE (TEMP _eselim_t1) (TEMP _t6))
   (CJUMP (EQ (TEMP _eselim_t1) (TEMP MINUS)) _l9)
   (LABEL _l10)
   (MOVE (TEMP _t7) (TEMP prog))
   (MOVE (TEMP _t8) (TEMP i))
   (CJUMP (AND (LT (TEMP _t8) (MEM (SUB (TEMP _t7) (CONST 8)))) (GEQ (TEMP _t8) (CONST 0))) _l16)
   (LABEL _l17)
   (EXP (CALL (NAME _I_outOfBounds_p)))
   (LABEL _l16)
   (MOVE (TEMP _t9) (MEM (ADD (TEMP _t7) (MUL (TEMP _t8) (CONST 8)))))
   (MOVE (TEMP _eselim_t2) (TEMP _t9))
   (CJUMP (EQ (TEMP _eselim_t2) (TEMP MUL)) _l14)
   (LABEL _l15)
   (MOVE (TEMP _RET0) (CONST 0))
   (MOVE (TEMP _RET1) (CONST 1))
   (RETURN)
   (LABEL _l4)
   (MOVE (TEMP c) (ADD (TEMP c) (CONST 1)))
   (LABEL _l8)
   (MOVE (TEMP i) (ADD (TEMP i) (CONST 1)))
   (JUMP (NAME _l1))
   (LABEL _l9)
   (MOVE (TEMP c) (SUB (TEMP c) (CONST 1)))
   (LABEL _l13)
   (JUMP (NAME _l8))
   (LABEL _l14)
   (MOVE (TEMP c) (MUL (TEMP c) (CONST 2)))
   (LABEL _l18)
   (JUMP (NAME _l13))))
 (FUNC
  _Imain_paai
  (SEQ
   (LABEL _l19)
   (MOVE (TEMP args) (TEMP _ARG0))
   (MOVE (TEMP _crv1) (CALL (NAME _Ireadln_ai)))
   (MOVE (TEMP _eselim_t3) (TEMP _crv1))
   (MOVE (TEMP _eselim_t4) (CALL (NAME _Icalculate_t2ibai) (TEMP _eselim_t3)))
   (MOVE (TEMP result) (TEMP _RET0))
   (EXP (TEMP _RET1))
   (MOVE (TEMP _crv2) (CALL (NAME _IunparseInt_aii) (TEMP result)))
   (MOVE (TEMP _eselim_t5) (TEMP _crv2))
   (MOVE (TEMP _eselim_t6) (CALL (NAME _Iprintln_pai) (TEMP _eselim_t5)))
   (RETURN))))

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).