         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				.option nopic
		.Ltext0:
				.align	1
		TEST.6009:
		.LFB186:
		.LVL19:
				add	sp,sp,-32
				sd	ra,24(sp)
				lui	a5,%hi(__stack_chk_guard)
				ld	a5,%lo(__stack_chk_guard)(a5)
				sd	a5,8(sp)
    2 %byteinteger c,d
				call	_imp_initialise
		.LVL20:
    3 %integer i,j,k
    4 %routine test(%byte b,%integername n,%byte c)
		.LVL0:
				add	sp,sp,-1312
				sd	ra,1304(sp)
				lui	a5,%hi(__stack_chk_guard)
				ld	a5,%lo(__stack_chk_guard)(a5)
				sd	a5,1288(sp)
    5 %if c='c' %and b='b' %and n=12345678 %then printstring("test ok ") %c
				li	a5,99
				bne	a2,a5,.L2
    6        %else printstring("Fail") %and %monitor
				li	a5,98
				beq	a0,a5,.L6
		.L2:
		.LBB10:
    7 %end
				lw	a4,0(a1)
				li	a5,12345344
				add	a5,a5,334
				bne	a4,a5,.L2
		.LBB13:
    8 j=12345678
				ld	a4,1288(sp)
				lui	a5,%hi(__stack_chk_guard)
				ld	a5,%lo(__stack_chk_guard)(a5)
				bne	a4,a5,.L7
				ld	ra,1304(sp)
				add	sp,sp,1312
				jr	ra
		.LVL9:
		.L6:
				li	a2,256
		.LVL10:
				lui	a1,%hi(.LANCHOR0)
		.LVL11:
				addi	a1,a1,%lo(.LANCHOR0)
				add	a0,sp,1032
		.LVL12:
				call	memcpy
		.LVL13:
				li	a2,256
				add	a1,sp,1032
				add	a0,sp,264
				call	memcpy
		.LVL14:
				li	a2,256
				add	a1,sp,264
				add	a0,sp,776
				call	memcpy
		.LVL15:
		.LBE13:
		.LBB14:
		.LBB15:
				li	a2,256
				add	a1,sp,776
				mv	a0,sp
				call	memcpy
		.LVL16:
				mv	a0,sp
				call	_imp_printstring
		.LVL17:
				j	.L1
		.L7:
		.LBE15:
		.LBE14:
				call	__stack_chk_fail
		.LVL18:
		.LFE186:
				.align	1
				.globl	main
		main:
		.LFB185:
				li	a5,12345344
				addw	a5,a5,334
				sw	a5,4(sp)
    9 test('b',j,'c')
				li	a2,99
				add	a1,sp,4
				li	a0,98
				call	TEST.6009
		.LVL21:
		.LBB16:
		.LBB17:
				li	a0,0
				call	exit
		.LVL22:
		.LBE17:
		.LBE16:
		.LFE185:
				.section	.rodata
				.align	3
				.set	.LANCHOR0,. + 0
		.LC0:
				.byte	8
				.string	"test ok "
				.zero	246
		.LC1:
				.byte	4
				.string	"Fail"
				.zero	250
		.Letext0:
   10 %endofprogram
?K unused
?I unused
?D unused
?C unused
    9 Statements compiled
				li	a2,256
		.LVL1:
				lui	a1,%hi(.LANCHOR0+256)
		.LVL2:
				addi	a1,a1,%lo(.LANCHOR0+256)
				add	a0,sp,1032
		.LVL3:
				call	memcpy
		.LVL4:
				li	a2,256
				add	a1,sp,1032
				add	a0,sp,520
				call	memcpy
		.LVL5:
				li	a2,256
				add	a1,sp,520
				add	a0,sp,1032
				call	memcpy
		.LVL6:
		.LBE10:
		.LBB11:
		.LBB12:
				li	a2,256
				add	a1,sp,1032
				mv	a0,sp
				call	memcpy
		.LVL7:
				mv	a0,sp
				call	_imp_printstring
		.LVL8:
		.L3:
		.L1:
		.LBE12:
		.LBE11:
