         Edinburgh IMP77 Compiler - Version 8.4
    1 ! check that sizeof/typeof was giving the expected value
		.Ltext0:
		TEST.6388:
		.LFB186:
    2 %begin
		.LVL7:
				pushq	%rbp
				pushq	%rbx
				subq	$1144, %rsp
				movq	%fs:40, %rax
				movq	%rax, 1128(%rsp)
				xorl	%eax, %eax
    3   %routine test(%name param)         ;! ia1          ia2
		.LVL0:
				subq	$8, %rsp
				call	_imp_initialise@PLT
		.LVL8:
		.LBB52:
    4     write(addr(param),0)  ; newline  ;! 2145833816   2145833816
				movl	$0, %esi
				call	_imp_writelong@PLT
		.LVL1:
		.LBB46:
		.LBB47:
				call	_imp_newline@PLT
		.LVL2:
		.LBE47:
		.LBE46:
    5     write(sizeof(param),0); newline  ;! 1            8             1 is sizeof %byte, 8 is sizeof %longreal
				movl	$0, %esi
				movl	$16, %edi
				call	_imp_writelong@PLT
		.LVL3:
		.LBB48:
		.LBB49:
				call	_imp_newline@PLT
		.LVL4:
		.LBE49:
		.LBE48:
    6     write(typeof(param),0); newline  ;! 5            8             5 is typeof %byte, 8 is typeof %longreal
				movl	$0, %esi
				movl	$4, %edi
				call	_imp_writeint@PLT
		.LVL5:
		.LBB50:
		.LBB51:
				call	_imp_newline@PLT
		.LVL6:
		.LBE51:
		.LBE50:
    7   %end
    8
				addq	$8, %rsp
				ret
		.LFE186:
				.globl	main
		main:
		.LFB185:
    9   %bytearray ia1(3:5)
   10   %longrealarray ia2(2:4,3:6)
   11
   12   printstring( "Testing ia1"); newline
				movabsq	$2334956331019232596, %rax
				movl	$3236201, %edx
				movq	%rax, 865(%rsp)
				movq	%rdx, 873(%rsp)
				movl	$0, %ebp
				movb	$0, 881(%rsp)
				movw	$0, 882(%rsp)
				movl	$0, 884(%rsp)
				leaq	888(%rsp), %rdi
				movl	$29, %ecx
				movq	%rbp, %rax
				rep stosq
				movb	$11, 864(%rsp)
				movq	864(%rsp), %rax
				movq	872(%rsp), %rdx
				movq	%rax, 96(%rsp)
				movq	%rdx, 104(%rsp)
		.LVL9:
				movb	$11, 96(%rsp)
		.LBE52:
		.LBB53:
		.LBB54:
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	1112(%rsp)
				pushq	344(%rsp)
				pushq	344(%rsp)
				call	_imp_printstring@PLT
		.LVL10:
		.LBE54:
		.LBE53:
		.LBB55:
		.LBB56:
				addq	$256, %rsp
				call	_imp_newline@PLT
		.LVL11:
		.LBE56:
		.LBE55:
   13   write(addr(ia1),0); newline     ;! 2145833816
				leaq	1125(%rsp), %rbx
				movl	$0, %esi
				movq	%rbx, %rdi
				call	_imp_writelong@PLT
		.LVL12:
		.LBB57:
		.LBB58:
				call	_imp_newline@PLT
		.LVL13:
		.LBE58:
		.LBE57:
   14   write(addr(ia1(3)),0); newline  ;! 2145833704
				movl	$0, %esi
				movq	%rbx, %rdi
				call	_imp_writelong@PLT
		.LVL14:
		.LBB59:
		.LBB60:
				call	_imp_newline@PLT
		.LVL15:
		.LBE60:
		.LBE59:
   15   write(sizeof(ia1),0); newline   ;! 1                sizeof %btre
				movl	$0, %esi
				movl	$1, %edi
				call	_imp_writelong@PLT
		.LVL16:
		.LBB61:
		.LBB62:
				call	_imp_newline@PLT
		.LVL17:
		.LBE62:
		.LBE61:
   16   write(typeof(ia1),0); newline   ;! 5                typeof %byte
				movl	$0, %esi
				movl	$5, %edi
				call	_imp_writeint@PLT
		.LVL18:
		.LBB63:
		.LBB64:
				call	_imp_newline@PLT
		.LVL19:
		.LBE64:
		.LBE63:
   17   test(ia1)
				movq	%rbx, %rdi
				call	TEST.6388
		.LVL20:
		.LBB65:
   18
   19   printstring( "Testing ia2"); newline
				movabsq	$2334956331019232596, %rax
				movl	$3301737, %edx
				movq	%rax, 609(%rsp)
				movq	%rdx, 617(%rsp)
				movb	$0, 625(%rsp)
				movw	$0, 626(%rsp)
				movl	$0, 628(%rsp)
				leaq	632(%rsp), %rdi
				movl	$29, %ecx
				movq	%rbp, %rax
				rep stosq
				movb	$11, 608(%rsp)
				movq	608(%rsp), %rax
				movq	616(%rsp), %rdx
				movq	%rax, 352(%rsp)
				movq	%rdx, 360(%rsp)
		.LVL21:
				movb	$11, 352(%rsp)
		.LBE65:
		.LBB66:
		.LBB67:
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	856(%rsp)
				pushq	600(%rsp)
				pushq	600(%rsp)
				call	_imp_printstring@PLT
		.LVL22:
		.LBE67:
		.LBE66:
		.LBB68:
		.LBB69:
				addq	$256, %rsp
				call	_imp_newline@PLT
		.LVL23:
		.LBE69:
		.LBE68:
   20   write(addr(ia2),0); newline      ;! 2145833816
				movq	%rsp, %rbx
				movl	$0, %esi
				movq	%rbx, %rdi
				call	_imp_writelong@PLT
		.LVL24:
		.LBB70:
		.LBB71:
				call	_imp_newline@PLT
		.LVL25:
		.LBE71:
		.LBE70:
   21   write(addr(ia2(2,3)),0); newline ;! 2145833708      4 bytes after address of first element of ia1, i.e. ia1(3)
				movl	$0, %esi
				movq	%rbx, %rdi
				call	_imp_writelong@PLT
		.LVL26:
		.LBB72:
		.LBB73:
				call	_imp_newline@PLT
		.LVL27:
		.LBE73:
		.LBE72:
   22                                     !                 which is 3 %byteinteger elements of 1 byte each, aligned to next 4 bytes.
   23   write(sizeof(ia2),0); newline    ;! 8               sizeof %longreal
				movl	$0, %esi
				movl	$32, %edi
				call	_imp_writelong@PLT
		.LVL28:
		.LBB74:
		.LBB75:
				call	_imp_newline@PLT
		.LVL29:
		.LBE75:
		.LBE74:
   24   write(typeof(ia2),0); newline    ;! 8               typeof %longreal
				movl	$0, %esi
				movl	$4, %edi
				call	_imp_writeint@PLT
		.LVL30:
		.LBB76:
		.LBB77:
				call	_imp_newline@PLT
		.LVL31:
		.LBE77:
		.LBE76:
   25   test(ia2)
				movq	%rbx, %rdi
				call	TEST.6388
		.LVL32:
		.LBB78:
		.LBB79:
				movl	$0, %edi
				call	exit@PLT
		.LVL33:
		.LBE79:
		.LBE78:
		.LFE185:
		.Letext0:
   26
   27 %endofprogram
   34 Statements compiled
