         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				.option nopic
		.Ltext0:
				.align	1
		OUTER.6002:
		.LFB186:
		.LVL9:
				add	sp,sp,-16
				sd	ra,8(sp)
    2   %routine outer(%integer i)
		.LVL0:
				add	sp,sp,-800
				sd	ra,792(sp)
				sd	s0,784(sp)
				lui	s0,%hi(__stack_chk_guard)
				ld	a5,%lo(__stack_chk_guard)(s0)
				sd	a5,776(sp)
		.LBB9:
				call	_imp_initialise
		.LVL10:
		.LBB18:
		.LBB19:
    3     printstring("Outer-level version was called"); newline
				li	a2,256
				lui	a1,%hi(.LANCHOR0)
				addi	a1,a1,%lo(.LANCHOR0)
				add	a0,sp,520
		.LVL1:
				call	memcpy
		.LVL2:
				li	a2,256
				add	a1,sp,520
				add	a0,sp,264
				call	memcpy
		.LVL3:
				li	a2,256
				add	a1,sp,264
				add	a0,sp,520
				call	memcpy
		.LVL4:
		.LBE9:
		.LBB10:
		.LBB11:
				li	a2,256
				add	a1,sp,520
				mv	a0,sp
				call	memcpy
		.LVL5:
				mv	a0,sp
				call	_imp_printstring
		.LVL6:
		.LBE11:
		.LBE10:
		.LBB12:
		.LBB13:
				call	_imp_newline
		.LVL7:
		.LBE13:
		.LBE12:
    4   %end
?I unused
    5   %routine inner
				ld	a4,776(sp)
				ld	a5,%lo(__stack_chk_guard)(s0)
				bne	a4,a5,.L4
				ld	ra,792(sp)
				ld	s0,784(sp)
				add	sp,sp,800
				jr	ra
		.L4:
				call	__stack_chk_fail
		.LVL8:
		.LFE186:
				.align	1
				.globl	main
		main:
		.LFB185:
    6     %routine test1
    7     %end
    8
    9     outer(10)
				li	a0,10
				call	OUTER.6002
		.LVL11:
		.LBE19:
		.LBE18:
		.LBB20:
		.LBB21:
				li	a0,0
				call	exit
		.LVL12:
		.LBE21:
		.LBE20:
		.LFE185:
				.section	.rodata
				.align	3
				.set	.LANCHOR0,. + 0
		.LC3:
				.byte	30
				.string	"Outer-level version was called"
				.zero	224
		.Letext0:
   10
   11     %routine outer(%integer i)
   12       printstring("Inner-level version was called.  Probably should not have been!"); newline
   13       printstring("This is only likely to have happened if nested procedures were badly"); newline
   14       printstring("exbedded in the conversion to C ..."); newline
   15     %end
?I unused
   16
   17     test1
   18   %end
?OUTER unused
   19   inner
   20 %endofprogram
   21 Statements compiled
