         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				.section	".text"
		.Ltext0:
				.section	".rodata"
		.LC1:
				.byte	5
				.asciz	"Pass!"
				.skip	249
				.section	".text"
				.align 4
				.global main
				.proc	04
		main:
		.LFB185:
				.register	%g7, #ignore
		.LVL0:
				save	%sp, -960, %sp
		.LVL1:
				ldx	[%g7+40], %g1
				stx	%g1, [%fp+2039]
				mov	0, %g1
    2 %integer i, a,b,c, q
				mov	%i1, %o1
				call	_imp_initialise, 0
				 mov	%i0, %o0
		.LVL2:
		.LDL1:
		.LDL2:
		.LDL3:
		.LDL4:
		.LDL5:
		.LDL6:
		.LDL7:
		.LDL8:
		.LDL9:
		.LDL10:
		.LDL11:
		.LDL12:
		.LDL13:
		.LDL14:
		.LDL15:
		.LDL16:
		.LBB24:
    3
    4   q = 0;
    5
    6   %for i = 3,1,5 %cycle
    7     q = q+i
    8   %repeat
    9
   10   %for i = 3,2,5 %cycle
   11     q = q+i
   12   %repeat
   13
   14   %for i = 5,-1,3 %cycle
   15     q = q+i
   16   %repeat
   17
   18   %for i = 5,-2,3 %cycle
   19     q = q+i
   20   %repeat
   21
   22   a = 3; b = 1; c = 5
   23
   24   %for i = a, b, c %cycle
   25     q = q+i+a
   26   %repeat
   27
   28   a = 3; b = 2; c = 5
   29
   30   %for i = a, b, c %cycle
   31     q = q+i+a
   32   %repeat
   33
   34   a = 5; b = -1; c = 3
   35
   36   %for i = a, b, c %cycle
   37     q = q+i+a
   38   %repeat
   39
   40   a = 5; b = -2; c = 3
   41
   42   %for i = a, b, c %cycle
   43     q = q+i+a
   44   %repeat
   45
   46   %if q = 120 %then printstring("Pass!") %else printstring("Fail!")
   47   newline
				mov	256, %o2
				sethi	%hi(.LC1), %o1
				or	%o1, %lo(.LC1), %o1
				call	memcpy, 0
				 add	%fp, 1783, %o0
		.LVL3:
				mov	256, %o2
				add	%fp, 1783, %o1
				call	memcpy, 0
				 add	%fp, 1527, %o0
		.LVL4:
				mov	256, %o2
				add	%fp, 1527, %o1
				call	memcpy, 0
				 add	%fp, 1783, %o0
		.LVL5:
		.LBE24:
		.LBB25:
		.LBB26:
				mov	256, %o2
				add	%fp, 1783, %o1
				call	memcpy, 0
				 add	%fp, 1263, %o0
		.LVL6:
				call	_imp_printstring, 0
				 add	%fp, 1263, %o0
		.LVL7:
		.LDL17:
		.LBE26:
		.LBE25:
		.LBB27:
		.LBB28:
				call	_imp_newline, 0
				 nop
		.LVL8:
		.LBE28:
		.LBE27:
		.LBB29:
		.LBB30:
				call	exit, 0
				 mov	0, %o0
		.LVL9:
		.LBE30:
		.LBE29:
				nop
		.LFE185:
		.Letext0:
   48
   49 %endofprogram
   42 Statements compiled
