#include <stdio.h>
#include <math.h>
int main() {
10040107f: 90 nop
0000000100401080 <main>:
100401080: 55 pushq %rbp
100401081: 48 89 e5 movq %rsp,%rbp
100401084: 48 83 ec 40 subq $0x40,%rsp
100401088: e8 83 00 00 00 callq 100401110 <__main>
int result = 0;
10040108d: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%rbp)
for(int i = 0; i <= 3; i++) {
100401094: c7 45 f8 00 00 00 00 movl $0x0,-0x8(%rbp)
10040109b: eb 36 jmp 1004010d3 <main+0x53>
result += pow(2, i);
10040109d: f2 0f 2a 45 f8 cvtsi2sdl -0x8(%rbp),%xmm0
1004010a2: 48 8b 05 5f 1f 00 00 movq 0x1f5f(%rip),%rax # 100403008 <.rdata+0x8>
1004010a9: 66 0f 28 c8 movapd %xmm0,%xmm1
1004010ad: 48 89 45 e8 movq %rax,-0x18(%rbp)
1004010b1: f2 0f 10 45 e8 movsd -0x18(%rbp),%xmm0
1004010b6: e8 65 00 00 00 callq 100401120 <pow>
1004010bb: 66 0f 28 c8 movapd %xmm0,%xmm1
1004010bf: f2 0f 2a 45 fc cvtsi2sdl -0x4(%rbp),%xmm0
1004010c4: f2 0f 58 c1 addsd %xmm1,%xmm0
1004010c8: f2 0f 2c c0 cvttsd2si %xmm0,%eax
1004010cc: 89 45 fc movl %eax,-0x4(%rbp)
for(int i = 0; i <= 3; i++) {
1004010cf: 83 45 f8 01 addl $0x1,-0x8(%rbp)
1004010d3: 83 7d f8 03 cmpl $0x3,-0x8(%rbp)
1004010d7: 7e c4 jle 10040109d <main+0x1d>
}
printf("%d", result);
1004010d9: 8b 45 fc movl -0x4(%rbp),%eax
1004010dc: 89 c2 movl %eax,%edx
1004010de: 48 8d 0d 1b 1f 00 00 leaq 0x1f1b(%rip),%rcx # 100403000 <.rdata>
1004010e5: e8 46 00 00 00 callq 100401130 <printf>
return 0;
1004010ea: b8 00 00 00 00 movl $0x0,%eax
}
1004010ef: 48 83 c4 40 addq $0x40,%rsp
1004010f3: 5d popq %rbp
1004010f4: c3 retq
1004010f5: 90 nop
|