         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
		.Ltext0:
				.globl	next_free_bound_index
				.bss
				.align 4
		next_free_bound_index:
				.zero	4
				.comm	_lb,384,32
				.comm	_ub,384,32
				.globl	main
		main:
		.LFB189:
				leal	4(%esp), %ecx
				andl	$-16, %esp
				pushl	-4(%ecx)
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%edi
				pushl	%ebx
				pushl	%ecx
				subl	$108, %esp
				call	__x86.get_pc_thunk.bx
				addl	$_GLOBAL_OFFSET_TABLE_, %ebx
				movl	%ecx, %eax
				movl	4(%eax), %edx
				movl	%edx, -108(%ebp)
				movl	%gs:20, %edi
				movl	%edi, -28(%ebp)
				xorl	%edi, %edi
				subl	$8, %esp
				pushl	-108(%ebp)
				pushl	(%eax)
				call	_imp_initialise@PLT
				addl	$16, %esp
    2   %own %integer %array negarray(-1:1) = 42, 1234567, 17
    3   %const %short %integer %array index(0:1) = 0, -1
				movw	$0, -92(%ebp)
				movw	$-1, -90(%ebp)
				leal	-88(%ebp), %edx
				movl	$0, %eax
				movl	$15, %ecx
				movl	%edx, %edi
				rep stosl
				leal	-92(%ebp), %eax
				movl	%eax, -88(%ebp)
				movl	$2, -84(%ebp)
				movl	$1, -80(%ebp)
				movl	$1, -72(%ebp)
    4   %integer i
    5
    6   i = 1
				movl	$1, -100(%ebp)
    7
    8   write(negarray(index(i)), 4);   ! Should be negarray(-1) which is 42.
				movl	-100(%ebp), %eax
				movzwl	-92(%ebp,%eax,2), %eax
				cwtl
				addl	$1, %eax
				movl	NEGARRAY.6024@GOTOFF(%ebx,%eax,4), %eax
				subl	$8, %esp
				pushl	$4
				pushl	%eax
				call	_imp_writeint@PLT
				addl	$16, %esp
		.LBB6:
		.LBB7:
				call	_imp_newline@PLT
				movl	$0, -96(%ebp)
		.LBE7:
		.LBE6:
		.LBB8:
		.LBB9:
				subl	$12, %esp
				pushl	-96(%ebp)
				call	exit@PLT
		.LBE9:
		.LBE8:
		.LFE189:
				.data
				.align 4
		NEGARRAY.6024:
				.long	42
				.long	1234567
				.long	17
				.section	.data.rel.local,"aw",@progbits
				.align 32
		NEGARRAY_dv.6025:
				.long	NEGARRAY.6024
				.long	4
				.long	1
				.long	-1
				.long	1
				.zero	40
				.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:
		.LFB190:
				movl	(%esp), %ebx
				ret
		.LFE190:
		.Letext0:
    9   newline
   10
   11 %endofprogram
    8 Statements compiled
