.file "loopInv.c" .text .section .rodata.str1.1,"aMS",@progbits,1 .LC0: .string "%d" .LC1: .string "sum: %d\n" .section .text.startup,"ax",@progbits .p2align 4 .globl main .type main, @function main: .LFB23: .cfi_startproc subq $24, %rsp .cfi_def_cfa_offset 32 leaq .LC0(%rip), %rdi movq %fs:40, %rax movq %rax, 8(%rsp) xorl %eax, %eax leaq 4(%rsp), %rsi call __isoc99_scanf@PLT movl 4(%rsp), %eax leal (%rax,%rax,4), %ecx cmpl $-5, %ecx jl .L5 addl $7, %ecx movl $1, %eax xorl %edx, %edx .p2align 4,,10 .p2align 3 .L3: addl %eax, %edx addl $1, %eax cmpl %eax, %ecx jne .L3 .L2: xorl %eax, %eax leaq .LC1(%rip), %rsi movl $1, %edi call __printf_chk@PLT movq 8(%rsp), %rax xorq %fs:40, %rax jne .L9 xorl %eax, %eax addq $24, %rsp .cfi_remember_state .cfi_def_cfa_offset 8 ret .L5: .cfi_restore_state xorl %edx, %edx jmp .L2 .L9: call __stack_chk_fail@PLT .cfi_endproc .LFE23: .size main, .-main .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~18.04) 9.4.0" .section .note.GNU-stack,"",@progbits