         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
		.Ltext0:
				.section	.rodata
				.align 32
		.LC0:
				.byte	4
				.string	"BUG!"
				.zero	250
				.globl	main
		main:
		.LFB189:
				leal	4(%esp), %ecx
				andl	$-16, %esp
				pushl	-4(%ecx)
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%edi
				pushl	%esi
				pushl	%ebx
				pushl	%ecx
				subl	$552, %esp
				call	__x86.get_pc_thunk.bx
				addl	$_GLOBAL_OFFSET_TABLE_, %ebx
				movl	%ecx, %eax
				movl	4(%eax), %edx
				movl	%edx, -556(%ebp)
				movl	%gs:20, %esi
				movl	%esi, -28(%ebp)
				xorl	%esi, %esi
				subl	$8, %esp
				pushl	-556(%ebp)
				pushl	(%eax)
				call	_imp_initialise@PLT
				addl	$16, %esp
    2    %integer faults = -42
				movl	$-42, -548(%ebp)
    3    %if faults > 0 %start
				cmpl	$0, -548(%ebp)
				jle	.L8
				nop
				jmp	.L3
		.L9:
				nop
		.L3:
		.LBB13:
    4       ! Label ID generation messes up due to block structure. Note that the problem
    5       ! is either in pass1 or icode2ast.c - changing genc.c to output the block as
    6       ! an anonymous procedure or just a simple C "{ ... }" grouping has no effect
    7       ! on the label IDs used for these two %if statements...
    8       %begin
    9          printsymbol('s') %if faults > 1
				cmpl	$1, -548(%ebp)
				jle	.L9
				movb	$115, -549(%ebp)
		.LBB11:
		.LBB12:
				movsbl	-549(%ebp), %eax
				subl	$12, %esp
				pushl	%eax
				call	_imp_printsymbol@PLT
				addl	$16, %esp
				jmp	.L3
		.L8:
		.LBE12:
		.LBE11:
   10          printstring("BUG!"); newline
				leal	-284(%ebp), %eax
				leal	.LC0@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
		.LBE13:
		.LBB14:
		.LBB15:
				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
		.LBE15:
		.LBE14:
		.LBB16:
		.LBB17:
				call	_imp_newline@PLT
		.LBE17:
		.LBE16:
   11       %end
				nop
		.L5:
		.L6:
				movl	$0, -544(%ebp)
		.LBB18:
		.LBB19:
				subl	$12, %esp
				pushl	-544(%ebp)
				call	exit@PLT
		.LBE19:
		.LBE18:
		.LFE189:
				.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:
   12    %finish
   13 %end %of %program
   10 Statements compiled
