.file "incrtest.c" .section .rodata .LC0: .string "foo\n" .LC1: .string "foo2\n" .LC2: .string "bar\n" .LC3: .string "bar2\n" .text .globl main .type main, @function main: pushl %ebp movl %esp, %ebp subl $8, %esp andl $-16, %esp movl $0, %eax subl %eax, %esp movl $5, -4(%ebp) leal -4(%ebp), %eax incl (%eax) movl -4(%ebp), %edx leal -4(%ebp), %eax incl (%eax) cmpl -4(%ebp), %edx jne .L2 movl $.LC0, (%esp) call printf jmp .L3 .L2: movl $.LC1, (%esp) call printf .L3: leal -4(%ebp), %eax incl (%eax) movl -4(%ebp), %edx leal -4(%ebp), %eax incl (%eax) cmpl -4(%ebp), %edx je .L4 movl $.LC2, (%esp) call printf jmp .L5 .L4: movl $.LC3, (%esp) call printf .L5: movl $0, %eax leave ret .size main, .-main .section .note.GNU-stack,"",@progbits .ident "GCC: (GNU) 3.3.5-20050130 (Gentoo Linux 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8. 7.7.1)"