         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
		.Ltext0:
				.section	.rodata
				.align 32
		.LC3:
				.byte	30
				.string	"Outer-level version was called"
				.zero	224
		OUTER.6022:
		.LFB190:
				leal	4(%esp), %ecx
				andl	$-16, %esp
				pushl	-4(%ecx)
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%ebx
				pushl	%ecx
				subl	$32, %esp
				call	__x86.get_pc_thunk.bx
				addl	$_GLOBAL_OFFSET_TABLE_, %ebx
				movl	%ecx, %eax
				movl	4(%eax), %edx
				movl	%edx, -28(%ebp)
				movl	%gs:20, %ecx
				movl	%ecx, -12(%ebp)
				xorl	%ecx, %ecx
				leal	8(%ebp), %edx
				movl	%edx, -20(%ebp)
				subl	$8, %esp
				pushl	-28(%ebp)
				pushl	(%eax)
				call	_imp_initialise@PLT
				addl	$16, %esp
    2   %routine outer(%integer i)
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%edi
				pushl	%esi
				pushl	%ebx
				subl	$556, %esp
				call	__x86.get_pc_thunk.bx
				addl	$_GLOBAL_OFFSET_TABLE_, %ebx
				movl	%ecx, -556(%ebp)
				movl	%gs:20, %eax
				movl	%eax, -28(%ebp)
				xorl	%eax, %eax
		.LBB9:
    3     printstring("Outer-level version was called"); newline
				leal	-284(%ebp), %eax
				leal	.LC3@GOTOFF(%ebx), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
				leal	-540(%ebp), %eax
				leal	-284(%ebp), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
				leal	-284(%ebp), %eax
				leal	-540(%ebp), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
		.LBE9:
		.LBB10:
		.LBB11:
				subl	$256, %esp
				movl	%esp, %eax
				movl	%eax, %edi
				leal	-284(%ebp), %eax
				movl	$64, %edx
				movl	%eax, %esi
				movl	%edx, %ecx
				rep movsl
				call	_imp_printstring@PLT
				addl	$256, %esp
		.LBE11:
		.LBE10:
		.LBB12:
		.LBB13:
				call	_imp_newline@PLT
		.LBE13:
		.LBE12:
    4   %end
				nop
				movl	-28(%ebp), %eax
				xorl	%gs:20, %eax
				je	.L3
				call	__stack_chk_fail_local
		.L3:
				leal	-12(%ebp), %esp
				popl	%ebx
				popl	%esi
				popl	%edi
				popl	%ebp
				ret
		.LFE190:
				.globl	main
		main:
		.LFB189:
?I unused
    5   %routine inner
				pushl	%ebp
				movl	%esp, %ebp
				subl	$40, %esp
				call	__x86.get_pc_thunk.ax
				addl	$_GLOBAL_OFFSET_TABLE_, %eax
				movl	%ecx, %eax
				movl	%ecx, -28(%ebp)
				movl	%gs:20, %edx
				movl	%edx, -12(%ebp)
				xorl	%edx, %edx
				leal	8(%ebp), %edx
				movl	%edx, -16(%ebp)
    6     %routine test1
				pushl	%ebp
				movl	%esp, %ebp
				subl	$4, %esp
				call	__x86.get_pc_thunk.ax
				addl	$_GLOBAL_OFFSET_TABLE_, %eax
				movl	%ecx, -4(%ebp)
    7     %end
				nop
				leave
				ret
		.LFE192:
		INNER.6027:
		.LFB191:
    8
    9     outer(10)
				subl	$12, %esp
				pushl	$10
				movl	%eax, %ecx
				call	OUTER.6022
				addl	$16, %esp
   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
				leal	-16(%ebp), %eax
				movl	%eax, %ecx
				call	TEST1.6030
   18   %end
				nop
				movl	-12(%ebp), %eax
				xorl	%gs:20, %eax
				je	.L10
				call	__stack_chk_fail_local
		.L10:
				leave
				ret
		.LFE191:
				.section	.text.__x86.get_pc_thunk.ax,"axG",@progbits,__x86.get_pc_thunk.ax,comdat
				.globl	__x86.get_pc_thunk.ax
				.hidden	__x86.get_pc_thunk.ax
		__x86.get_pc_thunk.ax:
		.LFB194:
				movl	(%esp), %eax
				ret
		.LFE194:
				.section	.text.__x86.get_pc_thunk.bx,"axG",@progbits,__x86.get_pc_thunk.bx,comdat
				.globl	__x86.get_pc_thunk.bx
				.hidden	__x86.get_pc_thunk.bx
		__x86.get_pc_thunk.bx:
		.LFB195:
				movl	(%esp), %ebx
				ret
		.LFE195:
		.Letext0:
?OUTER unused
   19   inner
				leal	-20(%ebp), %eax
				movl	%eax, %ecx
				call	INNER.6027
				movl	$0, -16(%ebp)
		.LBB14:
		.LBB15:
				subl	$12, %esp
				pushl	-16(%ebp)
				call	exit@PLT
		.LBE15:
		.LBE14:
		.LFE189:
		TEST1.6030:
		.LFB192:
   20 %endofprogram
   21 Statements compiled
