         Edinburgh IMP77 Compiler - Version 8.4-2024.12.18

     1  %begin
 0000 C8 00 00 01                           ENTER 0000,1
     2  
     3    %integer X
     4    %integername XP
     5    
     6    %integermap test(%integer a,b, %integername c)
 0004 EB 00                                 JMP L1001
 0006                      L1002  EQU $
 0006 C8 00 00 02                           ENTER 0000,2
     7      %owninteger Q = 0
     8      %result == Q
 000A B8 00 00 00 00                        MOV %EAX,DATA+#0
 000F C9                                    LEAVE
 0010 C3                                    RET
     9    %end
 0011                      L1001  EQU $
?C unused
?B unused
?A unused
    10  
    11    X = test(X,XP,X)
 0011 FF 75 F8                              PUSH DWORD PTR [%EBP-8]
 0014 8B 75 F4                              MOV %ESI,[%EBP-12]
 0017 FF 36                                 PUSH DWORD PTR [%ESI]
 0019 8D 45 F8                              LEA %EAX,[%EBP-8]
 001C 50                                    PUSH %EAX
 001D E8 00 00                              CALL 'TEST' (INTERNAL L1002 )
 0020 83 C4 0C                              ADD %ESP,#12
 0023 8B 00                                 MOV %EAX,[%EAX]
 0025 89 45 F8                              MOV [%EBP-8],%EAX
    12  
    13  %endofprogram
 0028 C9                                    LEAVE
 0029 C3                                    RET

     9 Statements compiled



 ELF object file generated from IMP source file: '/home/gtoal/src/compilers101/new-parser/imps/tests/test227.imp'
 +----------+---------------------+---------+---------+---------+------------+
 | Sections |       Symbols       | Code    | Data    | Diag    | Total size |
 +----------+----------+----------+---------+---------+---------+------------+
 |  (count) | Internal | External | (bytes) | (bytes) | (bytes) | (bytes)    |
 +----------+----------+----------+---------+---------+---------+------------+
 |       12 |        6 |        6 |      44 |       4 |      64 |        112 |
 +----------+----------+----------+---------+---------+---------+------------+


