         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
		.Ltext0:
				.globl	main
		main:
		.LFB185:
		.LVL0:
				subq	$536, %rsp
				movq	%fs:40, %rax
				movq	%rax, 520(%rsp)
				xorl	%eax, %eax
    2 %integer i, a,b,c, q
				call	_imp_initialise@PLT
		.LVL1:
		.LDL1:
		.LDL2:
		.LDL3:
		.LDL4:
		.LDL5:
		.LDL6:
		.LDL7:
		.LDL8:
		.LDL9:
		.LDL10:
		.LDL11:
		.LDL12:
		.LDL13:
		.LDL14:
		.LDL15:
		.LDL16:
		.LBB24:
    3
    4   q = 0;
    5
    6   %for i = 3,1,5 %cycle
    7     q = q+i
    8   %repeat
    9
   10   %for i = 3,2,5 %cycle
   11     q = q+i
   12   %repeat
   13
   14   %for i = 5,-1,3 %cycle
   15     q = q+i
   16   %repeat
   17
   18   %for i = 5,-2,3 %cycle
   19     q = q+i
   20   %repeat
   21
   22   a = 3; b = 1; c = 5
   23
   24   %for i = a, b, c %cycle
   25     q = q+i+a
   26   %repeat
   27
   28   a = 3; b = 2; c = 5
   29
   30   %for i = a, b, c %cycle
   31     q = q+i+a
   32   %repeat
   33
   34   a = 5; b = -1; c = 3
   35
   36   %for i = a, b, c %cycle
   37     q = q+i+a
   38   %repeat
   39
   40   a = 5; b = -2; c = 3
   41
   42   %for i = a, b, c %cycle
   43     q = q+i+a
   44   %repeat
   45
   46   %if q = 120 %then printstring("Pass!") %else printstring("Fail!")
   47   newline
				movabsq	$143670862160, %rax
				movl	$0, %edx
				movq	%rax, 257(%rsp)
				movq	%rdx, 265(%rsp)
				movb	$0, 273(%rsp)
				movw	$0, 274(%rsp)
				movl	$0, 276(%rsp)
				leaq	280(%rsp), %rdi
				movl	$29, %ecx
				movl	$0, %eax
				rep stosq
				movb	$5, 256(%rsp)
				movq	256(%rsp), %rax
				movq	264(%rsp), %rdx
				movq	%rax, (%rsp)
				movq	%rdx, 8(%rsp)
		.LVL2:
				movb	$5, (%rsp)
		.LBE24:
		.LBB25:
		.LBB26:
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	504(%rsp)
				pushq	248(%rsp)
				pushq	248(%rsp)
				call	_imp_printstring@PLT
		.LVL3:
		.LDL17:
		.LBE26:
		.LBE25:
		.LBB27:
		.LBB28:
				addq	$256, %rsp
				call	_imp_newline@PLT
		.LVL4:
		.LBE28:
		.LBE27:
		.LBB29:
		.LBB30:
				movl	$0, %edi
				call	exit@PLT
		.LVL5:
		.LBE30:
		.LBE29:
		.LFE185:
		.Letext0:
   48
   49 %endofprogram
   42 Statements compiled
