         Edinburgh IMP77 Compiler - Version 8.4
    1 %BEGIN
				.section	".text"
		.Ltext0:
				.section	".rodata"
		.LC0:
				.byte	7
				.asciz	"Test OK"
				.skip	247
				.section	".text"
				.align 4
				.global main
				.proc	04
		main:
		.LFB185:
				.register	%g2, #scratch
				.register	%g3, #scratch
				.register	%g7, #ignore
		.LVL0:
				save	%sp, -4096, %sp
		.LVL1:
				add	%sp, -960, %sp
				ldx	[%g7+40], %g1
				stx	%g1, [%fp+2039]
				mov	0, %g1
    2 %INTEGER I,J,JJ,Fail
				mov	%i1, %o1
				call	_imp_initialise, 0
				 mov	%i0, %o0
		.LVL2:
				mov	70, %i5
    3       JJ=0; Fail=0
				mov	0, %g1
		.LBB12:
		.LBB13:
		.LBB14:
				sethi	%hi(4096), %i4
				xor	%i4, -8, %i4
				add	%fp, 2047, %g3
				add	%g3, %i4, %i4
		.LBE14:
		.LBE13:
		.LBE12:
    4 %FOR I=1,1,70 %CYCLE
				mov	0, %g2
    5       %BEGIN
    6       %BYTEINTEGERARRAY A(0:4095)
    7       J=ADDR(A(0))
				addcc	%i5, -1, %i5
		.LVL5:
		.L8:
				be,pn	%icc, .L3
				 mov	%i3, %g1
		.LVL6:
		.L2:
		.LDL1:
    8       %END
    9       %IF JJ#J %THEN %START
				cmp	%i4, %g1
				be,pn	%icc, .L4
				 cmp	%g1, 0
   10          Fail=1 %and WRITE(J,5) %AND NEWLINE %UNLESS JJ=0
				be,a,pt	%icc, .L8
				 addcc	%i5, -1, %i5
		.LVL7:
				mov	5, %o1
				call	_imp_writeint, 0
				 mov	%i1, %o0
		.LVL8:
		.LBB15:
		.LBB16:
				call	_imp_newline, 0
				 nop
		.LVL9:
		.LBE16:
		.LBE15:
   11          JJ=J
				mov	1, %i2
				ba,pt	%xcc, .L2
				 mov	%i4, %i3
		.LVL4:
		.L4:
				ba,pt	%xcc, .L4
				 mov	%i2, %g2
		.LVL10:
		.L3:
   12       %FINISH
				sra	%i4, 0, %i1
		.LVL3:
   13 %REPEAT
   14       %if Fail=0 %then printstring("Test OK")
				cmp	%g2, 0
				be,pn	%icc, .L7
				 sethi	%hi(4096), %i5
		.LVL11:
		.L5:
		.LBB17:
		.LBB18:
				call	exit, 0
				 mov	0, %o0
		.LVL12:
		.L7:
		.LBE18:
		.LBE17:
		.LBB19:
   15 %ENDOFPROGRAM
				xor	%i5, -264, %i4
				add	%fp, 2047, %g1
		.LVL13:
				add	%g1, %i4, %i4
				mov	256, %o2
				sethi	%hi(.LC0), %o1
				or	%o1, %lo(.LC0), %o1
				call	memcpy, 0
				 mov	%i4, %o0
		.LVL14:
				xor	%i5, -520, %i3
		.LVL15:
				add	%fp, 2047, %g1
				add	%g1, %i3, %i3
				mov	256, %o2
				mov	%i4, %o1
				call	memcpy, 0
				 mov	%i3, %o0
		.LVL16:
				mov	256, %o2
				mov	%i3, %o1
				call	memcpy, 0
				 mov	%i4, %o0
		.LVL17:
		.LBE19:
		.LBB20:
		.LBB21:
				xor	%i5, -784, %i5
				add	%fp, 2047, %g1
				add	%g1, %i5, %i5
				mov	256, %o2
				mov	%i4, %o1
				call	memcpy, 0
				 mov	%i5, %o0
		.LVL18:
				call	_imp_printstring, 0
				 mov	%i5, %o0
		.LVL19:
				ba,pt	%xcc, .L5
				 nop
		.LBE21:
		.LBE20:
		.LFE185:
		.Letext0:
   16 Statements compiled
