         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				.section	".text"
		.Ltext0:
				.section	".rodata"
		.LC0:
				.byte	12
				.asciz	"Oflow missed"
				.skip	242
		.LC2:
				.byte	14
				.asciz	"event trapped "
				.skip	240
		.LC3:
				.byte	17
				.asciz	"Line of failure ="
				.skip	237
		.LC4:
				.byte	7
				.asciz	"Test OK"
				.skip	247
				.section	.rodata.cst4,"aM",@progbits,4
				.align 4
		.LC5:
				.long	1082130432
				.section	.rodata.cst8,"aM",@progbits,8
				.align 8
		.LC6:
				.long	1055193269
				.long	-1998362383
				.section	".text"
				.align 4
				.global main
				.proc	04
		main:
		.LFB185:
				.register	%g7, #ignore
		.LVL0:
				save	%sp, -2752, %sp
		.LVL1:
				ldx	[%g7+40], %g1
				stx	%g1, [%fp+2039]
				mov	0, %g1
    2 %real i,j
				mov	%i1, %o1
				call	_imp_initialise, 0
				 mov	%i0, %o0
		.LVL2:
    3 %on %event 1 %start
				mov	1, %o1
				sethi	%hi(_imp_event+544), %o0
				call	__sigsetjmp, 0
				 or	%o0, %lo(_imp_event+544), %o0
		.LVL3:
				cmp	%o0, 0
				bne,pn	%icc, .L3
				 mov	2, %o1
		.LVL4:
				sethi	%hi(_imp_event), %o0
				call	_imp_on_event_enter, 0
				 or	%o0, %lo(_imp_event), %o0
		.LVL5:
				brz,pn	%o0, .L3
				 ldd	[%g1+%lo(.LC6)], %f12
		.L4:
		.LDL1:
		.LDL2:
		.LDL3:
		.LVL6:
				fadds	%f8, %f8, %f9
		.LVL7:
				fstod	%f9, %f10
				fcmped	%fcc1, %f10, %f12
				fbl,pn	%fcc1, .L14
				 mov	256, %o2
    4      ->trap
    5 %finish
    6 i=2
    7 %cycle
    8 j=i; i=I+I
    9 %if i<00.00001 %or j>=i %then printstring("Oflow missed") %and %stop
				sethi	%hi(.LC5), %g1
				ld	[%g1+%lo(.LC5)], %f8
				sethi	%hi(.LC6), %g1
   10 %repeat
				fcmpes	%fcc0, %f9, %f8
				fbule,pn %fcc0, .L5
				 nop
		.LVL8:
   11 printstring("FAIL")
?access
   12 %stop
				mov	256, %o2
		.L14:
				sethi	%hi(.LC0), %o1
				or	%o1, %lo(.LC0), %o1
				call	memcpy, 0
				 add	%fp, 503, %o0
		.LVL10:
				mov	256, %o2
				add	%fp, 503, %o1
				call	memcpy, 0
				 add	%fp, -265, %o0
		.LVL11:
				mov	256, %o2
				add	%fp, -265, %o1
				call	memcpy, 0
				 add	%fp, 1015, %o0
		.LVL12:
		.LBE30:
		.LBB31:
		.LBB32:
				mov	256, %o2
				add	%fp, 1015, %o1
				call	memcpy, 0
				 add	%fp, -529, %o0
		.LVL13:
				call	_imp_printstring, 0
				 add	%fp, -529, %o0
		.LVL14:
		.LBE32:
		.LBE31:
		.LBB33:
		.LBB34:
				call	exit, 0
				 mov	0, %o0
		.LVL15:
		.L3:
		.LBE34:
		.LBE33:
		.LBB35:
				mov	256, %o2
				sethi	%hi(.LC2), %o1
				or	%o1, %lo(.LC2), %o1
				call	memcpy, 0
				 add	%fp, 503, %o0
		.LVL16:
				mov	256, %o2
				add	%fp, 503, %o1
				call	memcpy, 0
				 add	%fp, -9, %o0
		.LVL17:
				mov	256, %o2
				add	%fp, -9, %o1
				call	memcpy, 0
				 add	%fp, 1271, %o0
		.LVL18:
		.LBE35:
		.LBB36:
		.LBB37:
				mov	256, %o2
				add	%fp, 1271, %o1
				call	memcpy, 0
				 add	%fp, -529, %o0
		.LVL19:
				call	_imp_printstring, 0
				 add	%fp, -529, %o0
		.LVL20:
		.LBE37:
		.LBE36:
		.LBB38:
		.LBB39:
				sethi	%hi(_imp_event), %i5
		.LBE39:
		.LBE38:
   13 trap:
   14 printstring("event trapped ")
				ba,pt	%xcc, .L4
				 fmovs	%f9, %f8
		.LVL9:
		.L5:
		.LBB30:
   15 write(eventinf>>8,5); write(eventinf&255,5)
				lduw	[%i5+%lo(_imp_event)+8], %o0
				mov	5, %o1
				call	_imp_writeint, 0
				 srl	%o0, 8, %o0
		.LVL21:
   16 newline
				mov	5, %o1
				call	_imp_writeint, 0
				 ldub	[%i5+%lo(_imp_event)+11], %o0
		.LVL22:
		.LBB40:
		.LBB41:
				call	_imp_newline, 0
				 nop
		.LVL23:
		.LBE41:
		.LBE40:
		.LBB42:
   17 printstring("Line of failure =")
				mov	256, %o2
				sethi	%hi(.LC3), %o1
				or	%o1, %lo(.LC3), %o1
				call	memcpy, 0
				 add	%fp, 503, %o0
		.LVL24:
				mov	256, %o2
				add	%fp, 503, %o1
				call	memcpy, 0
				 add	%fp, 247, %o0
		.LVL25:
				mov	256, %o2
				add	%fp, 247, %o1
				call	memcpy, 0
				 add	%fp, 1527, %o0
		.LVL26:
		.LBE42:
		.LBB43:
		.LBB44:
				mov	256, %o2
				add	%fp, 1527, %o1
				call	memcpy, 0
				 add	%fp, -529, %o0
		.LVL27:
				call	_imp_printstring, 0
				 add	%fp, -529, %o0
		.LVL28:
		.LBE44:
		.LBE43:
   18 write(eventline,4)
				mov	4, %o1
				call	_imp_writeint, 0
				 ldsw	[%i5+%lo(_imp_event)+524], %o0
		.LVL29:
		.LBB45:
		.LBB46:
				call	_imp_newline, 0
				 nop
		.LVL30:
		.LBE46:
		.LBE45:
		.LBB47:
   19 newline
   20 printstring("Test OK")
				mov	256, %o2
				sethi	%hi(.LC4), %o1
				or	%o1, %lo(.LC4), %o1
				call	memcpy, 0
				 add	%fp, 503, %o0
		.LVL31:
				mov	256, %o2
				add	%fp, 503, %o1
				call	memcpy, 0
				 add	%fp, 759, %o0
		.LVL32:
				mov	256, %o2
				add	%fp, 759, %o1
				call	memcpy, 0
				 add	%fp, 1783, %o0
		.LVL33:
		.LBE47:
		.LBB48:
		.LBB49:
				mov	256, %o2
				add	%fp, 1783, %o1
				call	memcpy, 0
				 add	%fp, -529, %o0
		.LVL34:
				call	_imp_printstring, 0
				 add	%fp, -529, %o0
		.LVL35:
		.LBE49:
		.LBE48:
		.LBB50:
		.LBB51:
				call	exit, 0
				 mov	0, %o0
		.LVL36:
		.LBE51:
		.LBE50:
				nop
		.LFE185:
		.Letext0:
   21 %endofprogram
   22 Statements compiled
