         Edinburgh IMP77 Compiler - Version 8.4-2024.12.18

     1  %externalroutine toplev
 0000                      L1000  EQU $
 0000 C8 00 00 01                           ENTER 0000,1
     2    %longreal lr1
     3    %integer i, i1 = 1, i2 = 2, i3 = 3, k,k1,k2,k3
 0004 C7 45 EC 01 00 00 00                  MOV DWORD PTR [%EBP-20],#1
 000B C7 45 E8 02 00 00 00                  MOV DWORD PTR [%EBP-24],#2
 0012 C7 45 E4 03 00 00 00                  MOV DWORD PTR [%EBP-28],#3
     4    
     5    %if i2 = i3 %then i = i1
 0019 8B 45 E8                              MOV %EAX,[%EBP-24]
 001C 3B 45 E4                              CMP %EAX,[%EBP-28]
 001F 75 00                                 JNE L1001
 0021 8B 45 EC                              MOV %EAX,[%EBP-20]
 0024 89 45 F0                              MOV [%EBP-16],%EAX
 0027                      L1001  EQU $
     6    test:
 0027                      L1002  EQU $
     7    %if k2 = k3 %then %start
 0027 8B 45 D8                              MOV %EAX,[%EBP-40]
 002A 3B 45 D4                              CMP %EAX,[%EBP-44]
 002D 75 00                                 JNE L1003
     8      k = k1
 002F 8B 45 DC                              MOV %EAX,[%EBP-36]
 0032 89 45 E0                              MOV [%EBP-32],%EAX
     9    %finish
 0035                      L1003  EQU $
    10  
    11  %end
 0035 C9                                    LEAVE
 0036 C3                                    RET
?TEST unused
?LR1 unused
    12  %endoffile

     9 Statements compiled



 ELF object file generated from IMP source file: '/home/gtoal/src/compilers101/new-parser/imps/tests/test3.imp'
 +----------+---------------------+---------+---------+---------+------------+
 | Sections |       Symbols       | Code    | Data    | Diag    | Total size |
 +----------+----------+----------+---------+---------+---------+------------+
 |  (count) | Internal | External | (bytes) | (bytes) | (bytes) | (bytes)    |
 +----------+----------+----------+---------+---------+---------+------------+
 |       11 |        4 |        6 |      55 |       0 |      32 |         87 |
 +----------+----------+----------+---------+---------+---------+------------+


