#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double _sqrt(int);
double add(double, double);
double divide(double, double);
double frexp(double, int *);
int /*<<< orphan*/ multiply(double, double);
int /*<<< orphan*/ part3();
double printf(char *, unsigned long, ...);
int /*<<< orphan*/ puts(char *);
unsigned long rdtsc();
double sqrt(int);
double subtract(double, double);
int main(void) {
  puts("Masks used:\n");
  puts("SIG_MASK    : 0x000FFFFFFFFFFFFFllu\n");
  puts("EXP_MASK    : 0x7FF0000000000000llu\n");
  puts("SIGN_MASK   : 0x8000000000000000llu\n");
  puts("GET_EXP(x)  : ((x >> 52) & 0x7FF)\n");
  puts("GET_MAN(x)  : (x & 0xFFFFFFFFFFFFFllu)\n");
  puts("GET_SIGN(x) : (x >> 63)\n");
  puts("IMPLICIT    : 0x10000000000000llu\n");
  int i = 0;
  double res = 0;
  int another = 0;
  double arg = 4.2;
  puts("Frexp implementation caches NaN and inf errors\n");
  puts("* extract components\n");
  puts("* subtract bias\n");
  puts("* Shift until radix pt is normalized\n");
  puts("* Increment exponent with each shift\n");
  puts("* Reconstruct double\n");
  double man = frexp(arg, &another);
  printf("%lf = %lf * 2 ^ %d\n", arg, man, another);
  part3();
  puts("The Add algorithm is as follows\n");
  puts("* Extract the components of the double\n");
  puts("* Add an implicit leading 1\n");
  puts("* Shift the lower exponent until it aligns with the larger one\n");
  puts("* Add the fractions\n");
  puts("* Normalize the result by shifting radix point until only one is "
       "left\n");
  puts("* Reconstruct the double\n");
  res = add(1.5, 99.99);
  printf("1.5 + 99.99 = %lf\n", res);
  res = add(35.6, 54.4);
  printf("35.6 + 54.4 = %lf\n\n", res);
  puts("The Subtraction algorithm works almost the same as add\n");
  puts("* Extract the components of the double\n");
  puts("* Add an implicit leading 1\n");
  puts("* Shift the lower exponent until it aligns with the larger one\n");
  puts("* subtract the fractions\n");
  puts("* Normalize the result by shifting radix point left until only one is "
       "left\n");
  puts("* Reconstruct the double\n");
  res = subtract(101.0, 1);
  printf("101.0 - 1 = %lf\n", res);
  res = subtract(33.0, 31.5);
  printf("33.0 - 31.5 = %lf\n", res);
  puts("The Multiplication algorithm:\n");
  puts("* Add the Exponents, subtract the bias\n");
  puts("* Xor the sign bit\n");
  puts("* Mutiply significands\n");
  puts("* Store result in 128 bit int\n");
  puts("* Normalize number but shifting\n");
  puts("* Reconstruct the double\n");
  multiply(9.0, 9.0);
  printf("9.0 * 9.0 = %lf\n", res);
  multiply(.5, .5);
  printf(".5 * .5 = %lf\n", res);
  puts("The division algorithm basically calls multiply\n");
  puts("* Invert the minimum exponent\n");
  puts("* Divide significands\n");
  puts("* Normalize number by shifting\n");
  puts("* Call multiply\n");
  puts("* Reconstruct the double\n");
  res = divide(10.0, 5.0);
  printf("10.0 / 5.0 = %lf\n", res);
  res = divide(5.0, 2.0);
  printf("5.0 / 2.0 = %lf\n", res);
  puts("The quake 3 implementation with another iteration and made for "
       "doubles\n");
  puts("Basically a fast Newton's Method\n");
  puts("Calculation based on log2(y) = -(1/2)log2(x)\n");
  puts("The magic number is (3/2) * L * (B-s)\n");
  puts("This is realy fast inverse square root, so the fpu is used to divide, "
       "b/c my divide is impricise");
  res = _sqrt(4);
  printf("sqrt(4) = %lf\n", 1 / res);
  res = _sqrt(5);
  res = printf("sqrt(5) = %lf\n", 1 / res);
  puts("Hardware add\n");
  unsigned long a = rdtsc();
  for (i = 0; i < 1000; i++) {
    add(4.5, 3.5);
  }
  unsigned long b = rdtsc();
  unsigned long c = rdtsc();
  for (i = 0; i < 1000000000; i++) {
    add(4.5, 3.5);
  }
  unsigned long d = rdtsc();
  unsigned long e = b - a;
  unsigned long f = d - c;
  unsigned long ticks = (f - e) / (1000000000 - 1000);
  printf("Clocks ticks for add on Core M .9GHz: %lu\n\n", ticks);
  puts("Software add\n");
  a = rdtsc();
  for (i = 0; i < 1000; i++) {
    res = 4.5 + 3.5;
  }
  b = rdtsc();
  c = rdtsc();
  for (i = 0; i < 1000000000; i++) {
    res = 4.5 + 3.5;
  }
  d = rdtsc();
  e = b - a;
  f = d - c;
  ticks = (f - e) / (1000000000 - 1000);
  printf("Clocks ticks for subtract on Core M .9GHz: %lu\n\n", ticks);
  puts("Software sub\n");
  a = rdtsc();
  for (i = 0; i < 1000; i++) {
    subtract(3.3, 1.1);
  }
  b = rdtsc();
  c = rdtsc();
  for (i = 0; i < 1000000000; i++) {
    subtract(3.3, 1.1);
  }
  d = rdtsc();
  e = b - a;
  f = d - c;
  ticks = (f - e) / (1000000000 - 1000);
  printf("Clocks ticks for subtract on Core M .9GHz: %lu\n\n", ticks);
  puts("Hardware sub\n");
  a = rdtsc();
  for (i = 0; i < 1000; i++) {
    res = 3.3 - 1.1;
  }
  b = rdtsc();
  c = rdtsc();
  for (i = 0; i < 1000000000; i++) {
    res = 3.3 - 1.1;
  }
  d = rdtsc();
  e = b - a;
  f = d - c;
  ticks = (f - e) / (1000000000 - 1000);
  printf("Clocks ticks for subtract on Core M .9GHz: %lu\n\n", ticks);
  puts("Software mul\n");
  rdtsc();
  a = rdtsc();
  for (i = 0; i < 1000; i++) {
    multiply(2.2, 2.0);
  }
  b = rdtsc();
  c = rdtsc();
  for (i = 0; i < 1000000000; i++) {
    multiply(2.2, 2.0);
  }
  d = rdtsc();
  e = b - a;
  f = d - c;
  ticks = (f - e) / (1000000000 - 1000);
  printf("Clocks ticks for multiply on Core M .9GHz: %lu\n\n", ticks);
  puts("Hardware mul\n");
  rdtsc();
  a = rdtsc();
  for (i = 0; i < 1000; i++) {
    res = 2.2 * 2.0;
  }
  b = rdtsc();
  c = rdtsc();
  for (i = 0; i < 1000000000; i++) {
    res = 2.2 * 2.0;
  }
  d = rdtsc();
  e = b - a;
  f = d - c;
  ticks = (f - e) / (1000000000 - 1000);
  printf("Clocks ticks for multiply on Core M .9GHz: %lu\n\n", ticks);
  puts("Software sqrt\n");
  a = rdtsc();
  for (i = 0; i < 1000; i++) {
    _sqrt(5);
  }
  b = rdtsc();
  c = rdtsc();
  for (i = 0; i < 1000000000; i++) {
    _sqrt(5);
  }
  d = rdtsc();
  e = b - a;
  f = d - c;
  ticks = (f - e) / (1000000000 - 1000);
  printf("Clocks ticks for sqrt on Core M .9GHz: %lu\n\n", ticks);
  puts("Hardware sqrt\n");
  a = rdtsc();
  for (i = 0; i < 1000; i++) {
    res = sqrt(5);
  }
  b = rdtsc();
  c = rdtsc();
  for (i = 0; i < 1000000000; i++) {
    res = sqrt(5);
  }
  d = rdtsc();
  e = b - a;
  f = d - c;
  ticks = (f - e) / (1000000000 - 1000);
  printf("Clocks ticks for sqrt on Core M .9GHz: %lu\n\n", ticks);
  puts("Software division\n");
  a = rdtsc();
  for (i = 0; i < 1000; i++) {
    divide(5.0, 2.0);
  }
  b = rdtsc();
  c = rdtsc();
  for (i = 0; i < 1000000000; i++) {
    divide(5.0, 2.0);
  }
  d = rdtsc();
  e = b - a;
  f = d - c;
  ticks = (f - e) / (1000000000 - 1000);
  printf("Clocks ticks for division on Core M .9GHz: %lu\n\n", ticks);
  puts("Hardware division\n");
  a = rdtsc();
  for (i = 0; i < 1000; i++) {
    res = (5.0 / 2.0);
  }
  b = rdtsc();
  c = rdtsc();
  for (i = 0; i < 1000000000; i++) {
    res = (5.0 / 2.0);
  }
  d = rdtsc();
  e = b - a;
  f = d - c;
  ticks = (f - e) / (1000000000 - 1000);
  printf("Clocks ticks for division on Core M .9GHz: %lu\n\n", ticks);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0x1eef(%rip),%rdi
call   1050 <puts@plt>
lea    0x1ef0(%rip),%rdi
call   1050 <puts@plt>
lea    0x1f09(%rip),%rdi
call   1050 <puts@plt>
lea    0x1f22(%rip),%rdi
call   1050 <puts@plt>
lea    0x1f3b(%rip),%rdi
call   1050 <puts@plt>
lea    0x1f52(%rip),%rdi
call   1050 <puts@plt>
lea    0x1f6e(%rip),%rdi
call   1050 <puts@plt>
lea    0x1f7b(%rip),%rdi
call   1050 <puts@plt>
movl   $0x0,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movabs $0x4010cccccccccccd,%rax
cc 10 40
mov    %rax,-0x20(%rbp)
lea    0x1f6e(%rip),%rdi
call   1050 <puts@plt>
lea    0x1f92(%rip),%rdi
call   1050 <puts@plt>
lea    0x1f9c(%rip),%rdi
call   1050 <puts@plt>
lea    0x1fa1(%rip),%rdi
call   1050 <puts@plt>
lea    0x1fbb(%rip),%rdi
call   1050 <puts@plt>
lea    0x1fd5(%rip),%rdi
call   1050 <puts@plt>
movsd  -0x20(%rbp),%xmm0
lea    -0x14(%rbp),%rdi
call   10b0 <frexp@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0x1d52(%rip),%xmm2
movsd  %xmm2,-0x70(%rbp)
movaps %xmm0,%xmm1
subsd  %xmm2,%xmm1
cvttsd2si %xmm1,%rax
cvttsd2si %xmm0,%rsi
mov    %rsi,%rcx
sar    $0x3f,%rcx
and    %rcx,%rax
or     %rax,%rsi
movsd  -0x28(%rbp),%xmm0
mov    -0x14(%rbp),%edx
lea    0x1f94(%rip),%rdi
mov    $0x1,%al
call   1090 <printf@plt>
xor    %eax,%eax
mov    %al,-0x71(%rbp)
call   1080 <part3@plt>
lea    0x1f90(%rip),%rdi
call   1050 <puts@plt>
lea    0x1fa5(%rip),%rdi
mov    %rdi,-0xa0(%rbp)
call   1050 <puts@plt>
lea    0x1fba(%rip),%rdi
mov    %rdi,-0x98(%rbp)
call   1050 <puts@plt>
lea    0x1fc4(%rip),%rdi
mov    %rdi,-0x90(%rbp)
call   1050 <puts@plt>
lea    0x1ff1(%rip),%rdi
call   1050 <puts@plt>
lea    0x1ffa(%rip),%rdi
call   1050 <puts@plt>
lea    0x2035(%rip),%rdi
mov    %rdi,-0x88(%rbp)
call   1050 <puts@plt>
movsd  0x1c9f(%rip),%xmm0
movsd  0x1c9f(%rip),%xmm1
call   1030 <add@plt>
mov    -0x71(%rbp),%al
movsd  -0x70(%rbp),%xmm2
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movaps %xmm0,%xmm1
subsd  %xmm2,%xmm1
cvttsd2si %xmm1,%rcx
cvttsd2si %xmm0,%rsi
mov    %rsi,%rdx
sar    $0x3f,%rdx
and    %rdx,%rcx
or     %rcx,%rsi
lea    0x1ff7(%rip),%rdi
call   1090 <printf@plt>
movsd  0x1c5e(%rip),%xmm0
movsd  0x1c5e(%rip),%xmm1
call   1030 <add@plt>
mov    -0x71(%rbp),%al
movsd  -0x70(%rbp),%xmm2
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movaps %xmm0,%xmm1
subsd  %xmm2,%xmm1
cvttsd2si %xmm1,%rcx
cvttsd2si %xmm0,%rsi
mov    %rsi,%rdx
sar    $0x3f,%rdx
and    %rdx,%rcx
or     %rcx,%rsi
lea    0x1fb9(%rip),%rdi
call   1090 <printf@plt>
lea    0x1fc1(%rip),%rdi
call   1050 <puts@plt>
mov    -0xa0(%rbp),%rdi
call   1050 <puts@plt>
mov    -0x98(%rbp),%rdi
call   1050 <puts@plt>
mov    -0x90(%rbp),%rdi
call   1050 <puts@plt>
lea    0x1fc9(%rip),%rdi
call   1050 <puts@plt>
lea    0x1fd7(%rip),%rdi
call   1050 <puts@plt>
mov    -0x88(%rbp),%rdi
call   1050 <puts@plt>
movsd  0x1bc9(%rip),%xmm0
movsd  0x1bc9(%rip),%xmm1
movsd  %xmm1,-0x68(%rbp)
call   10c0 <subtract@plt>
mov    -0x71(%rbp),%al
movsd  -0x70(%rbp),%xmm2
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movaps %xmm0,%xmm1
subsd  %xmm2,%xmm1
cvttsd2si %xmm1,%rcx
cvttsd2si %xmm0,%rsi
mov    %rsi,%rdx
sar    $0x3f,%rdx
and    %rdx,%rcx
or     %rcx,%rsi
lea    0x1fc1(%rip),%rdi
call   1090 <printf@plt>
movsd  0x1b83(%rip),%xmm0
movsd  0x1b83(%rip),%xmm1
call   10c0 <subtract@plt>
mov    -0x71(%rbp),%al
movsd  -0x70(%rbp),%xmm2
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movaps %xmm0,%xmm1
subsd  %xmm2,%xmm1
cvttsd2si %xmm1,%rcx
cvttsd2si %xmm0,%rsi
mov    %rsi,%rdx
sar    $0x3f,%rdx
and    %rdx,%rcx
or     %rcx,%rsi
lea    0x1f81(%rip),%rdi
call   1090 <printf@plt>
lea    0x1f88(%rip),%rdi
call   1050 <puts@plt>
lea    0x1f9b(%rip),%rdi
call   1050 <puts@plt>
lea    0x1fb7(%rip),%rdi
call   1050 <puts@plt>
lea    0x1fbf(%rip),%rdi
call   1050 <puts@plt>
lea    0x1fcb(%rip),%rdi
call   1050 <puts@plt>
lea    0x1fde(%rip),%rdi
call   1050 <puts@plt>
mov    -0x88(%rbp),%rdi
call   1050 <puts@plt>
movsd  0x1aee(%rip),%xmm1
movaps %xmm1,%xmm0
call   1040 <multiply@plt>
movsd  -0x70(%rbp),%xmm2
mov    -0x71(%rbp),%al
movsd  -0x10(%rbp),%xmm0
movaps %xmm0,%xmm1
subsd  %xmm2,%xmm1
cvttsd2si %xmm1,%rcx
cvttsd2si %xmm0,%rsi
mov    %rsi,%rdx
sar    $0x3f,%rdx
and    %rdx,%rcx
or     %rcx,%rsi
lea    0x1fac(%rip),%rdi
call   1090 <printf@plt>
movsd  0x1aaf(%rip),%xmm1
movaps %xmm1,%xmm0
call   1040 <multiply@plt>
movsd  -0x70(%rbp),%xmm2
mov    -0x71(%rbp),%al
movsd  -0x10(%rbp),%xmm0
movaps %xmm0,%xmm1
subsd  %xmm2,%xmm1
cvttsd2si %xmm1,%rcx
cvttsd2si %xmm0,%rsi
mov    %rsi,%rdx
sar    $0x3f,%rdx
and    %rdx,%rcx
or     %rcx,%rsi
lea    0x1f76(%rip),%rdi
call   1090 <printf@plt>
lea    0x1f79(%rip),%rdi
call   1050 <puts@plt>
lea    0x1f9e(%rip),%rdi
call   1050 <puts@plt>
lea    0x1fb1(%rip),%rdi
call   1050 <puts@plt>
lea    0x1fbc(%rip),%rdi
call   1050 <puts@plt>
lea    0x1fd0(%rip),%rdi
call   1050 <puts@plt>
mov    -0x88(%rbp),%rdi
call   1050 <puts@plt>
movsd  0x1a28(%rip),%xmm0
movsd  0x1a28(%rip),%xmm1
movsd  %xmm1,-0x80(%rbp)
call   1070 <divide@plt>
mov    -0x71(%rbp),%al
movsd  -0x70(%rbp),%xmm2
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movaps %xmm0,%xmm1
subsd  %xmm2,%xmm1
cvttsd2si %xmm1,%rcx
cvttsd2si %xmm0,%rsi
mov    %rsi,%rdx
sar    $0x3f,%rdx
and    %rdx,%rcx
or     %rcx,%rsi
lea    0x1f7f(%rip),%rdi
call   1090 <printf@plt>
movsd  -0x80(%rbp),%xmm0
movsd  0x19dd(%rip),%xmm1
call   1070 <divide@plt>
mov    -0x71(%rbp),%al
movsd  -0x70(%rbp),%xmm2
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movaps %xmm0,%xmm1
subsd  %xmm2,%xmm1
cvttsd2si %xmm1,%rcx
cvttsd2si %xmm0,%rsi
mov    %rsi,%rdx
sar    $0x3f,%rdx
and    %rdx,%rcx
or     %rcx,%rsi
lea    0x1f43(%rip),%rdi
call   1090 <printf@plt>
lea    0x1f48(%rip),%rdi
call   1050 <puts@plt>
lea    0x1f84(%rip),%rdi
call   1050 <puts@plt>
lea    0x1f9a(%rip),%rdi
call   1050 <puts@plt>
lea    0x1fbc(%rip),%rdi
call   1050 <puts@plt>
lea    0x1fd7(%rip),%rdi
call   1050 <puts@plt>
mov    $0x4,%edi
call   1060 <_sqrt@plt>
mov    -0x71(%rbp),%al
movsd  -0x70(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x68(%rbp),%xmm0
movsd  %xmm2,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm2
divsd  %xmm2,%xmm0
movaps %xmm0,%xmm2
cvttsd2si %xmm2,%rsi
mov    %rsi,%rdx
sar    $0x3f,%rdx
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rcx
and    %rdx,%rcx
or     %rcx,%rsi
lea    0x1fe6(%rip),%rdi
call   1090 <printf@plt>
mov    $0x5,%edi
call   1060 <_sqrt@plt>
movsd  -0x70(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x68(%rbp),%xmm0
movsd  %xmm2,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm2
divsd  %xmm2,%xmm0
movaps %xmm0,%xmm2
cvttsd2si %xmm2,%rsi
mov    %rsi,%rcx
sar    $0x3f,%rcx
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rax
and    %rcx,%rax
or     %rax,%rsi
lea    0x1fa6(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
movsd  %xmm0,-0x10(%rbp)
lea    0x1fa2(%rip),%rdi
call   1050 <puts@plt>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3e8,-0x8(%rbp)
jge    17fe <main+0x64e>
movsd  0x18c5(%rip),%xmm0
movsd  0x18c5(%rip),%xmm1
call   1030 <add@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    17ce <main+0x61e>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x38(%rbp)
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3b9aca00,-0x8(%rbp)
jge    184b <main+0x69b>
movsd  0x1878(%rip),%xmm0
movsd  0x1878(%rip),%xmm1
call   1030 <add@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    181b <main+0x66b>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%rax
sub    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rax
sub    -0x40(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
sub    -0x50(%rbp),%rax
mov    $0x3b9ac618,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rsi
lea    0x1ed8(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    0x1ef6(%rip),%rdi
call   1050 <puts@plt>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3e8,-0x8(%rbp)
jge    18dc <main+0x72c>
movsd  0x17d7(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    18b4 <main+0x704>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x38(%rbp)
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3b9aca00,-0x8(%rbp)
jge    1921 <main+0x771>
movsd  0x1792(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    18f9 <main+0x749>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%rax
sub    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rax
sub    -0x40(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
sub    -0x50(%rbp),%rax
mov    $0x3b9ac618,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rsi
lea    0x1e3c(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    0x1e5f(%rip),%rdi
call   1050 <puts@plt>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3e8,-0x8(%rbp)
jge    19ba <main+0x80a>
movsd  0x16f1(%rip),%xmm0
movsd  0x16f1(%rip),%xmm1
call   10c0 <subtract@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    198a <main+0x7da>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x38(%rbp)
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3b9aca00,-0x8(%rbp)
jge    1a07 <main+0x857>
movsd  0x16a4(%rip),%xmm0
movsd  0x16a4(%rip),%xmm1
call   10c0 <subtract@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    19d7 <main+0x827>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%rax
sub    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rax
sub    -0x40(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
sub    -0x50(%rbp),%rax
mov    $0x3b9ac618,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rsi
lea    0x1d56(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    0x1d87(%rip),%rdi
call   1050 <puts@plt>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3e8,-0x8(%rbp)
jge    1a98 <main+0x8e8>
movsd  0x1603(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1a70 <main+0x8c0>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x38(%rbp)
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3b9aca00,-0x8(%rbp)
jge    1add <main+0x92d>
movsd  0x15be(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1ab5 <main+0x905>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%rax
sub    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rax
sub    -0x40(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
sub    -0x50(%rbp),%rax
mov    $0x3b9ac618,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rsi
lea    0x1c80(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    0x1cbf(%rip),%rdi
call   1050 <puts@plt>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3e8,-0x8(%rbp)
jge    1b7d <main+0x9cd>
movsd  0x151e(%rip),%xmm0
movsd  0x14fe(%rip),%xmm1
call   1040 <multiply@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1b4d <main+0x99d>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x38(%rbp)
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3b9aca00,-0x8(%rbp)
jge    1bca <main+0xa1a>
movsd  0x14d1(%rip),%xmm0
movsd  0x14b1(%rip),%xmm1
call   1040 <multiply@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1b9a <main+0x9ea>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%rax
sub    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rax
sub    -0x40(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
sub    -0x50(%rbp),%rax
mov    $0x3b9ac618,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rsi
lea    0x1bee(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    0x1c11(%rip),%rdi
call   1050 <puts@plt>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3e8,-0x8(%rbp)
jge    1c62 <main+0xab2>
movsd  0x1429(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1c3a <main+0xa8a>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x38(%rbp)
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3b9aca00,-0x8(%rbp)
jge    1ca7 <main+0xaf7>
movsd  0x13e4(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1c7f <main+0xacf>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%rax
sub    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rax
sub    -0x40(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
sub    -0x50(%rbp),%rax
mov    $0x3b9ac618,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rsi
lea    0x1b11(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    0x1b42(%rip),%rdi
call   1050 <puts@plt>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3e8,-0x8(%rbp)
jge    1d35 <main+0xb85>
mov    $0x5,%edi
call   1060 <_sqrt@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1d10 <main+0xb60>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x38(%rbp)
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3b9aca00,-0x8(%rbp)
jge    1d77 <main+0xbc7>
mov    $0x5,%edi
call   1060 <_sqrt@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1d52 <main+0xba2>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%rax
sub    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rax
sub    -0x40(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
sub    -0x50(%rbp),%rax
mov    $0x3b9ac618,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rsi
lea    0x1a8f(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    0x1aae(%rip),%rdi
call   1050 <puts@plt>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3e8,-0x8(%rbp)
jge    1e0a <main+0xc5a>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
movsd  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1de0 <main+0xc30>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x38(%rbp)
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3b9aca00,-0x8(%rbp)
jge    1e51 <main+0xca1>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
movsd  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1e27 <main+0xc77>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%rax
sub    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rax
sub    -0x40(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
sub    -0x50(%rbp),%rax
mov    $0x3b9ac618,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rsi
lea    0x19b5(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    0x19e3(%rip),%rdi
call   1050 <puts@plt>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3e8,-0x8(%rbp)
jge    1eea <main+0xd3a>
movsd  0x1191(%rip),%xmm0
movsd  0x1191(%rip),%xmm1
call   1070 <divide@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1eba <main+0xd0a>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x38(%rbp)
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3b9aca00,-0x8(%rbp)
jge    1f37 <main+0xd87>
movsd  0x1144(%rip),%xmm0
movsd  0x1144(%rip),%xmm1
call   1070 <divide@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1f07 <main+0xd57>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%rax
sub    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rax
sub    -0x40(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
sub    -0x50(%rbp),%rax
mov    $0x3b9ac618,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rsi
lea    0x191e(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    0x1941(%rip),%rdi
call   1050 <puts@plt>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3e8,-0x8(%rbp)
jge    1fc8 <main+0xe18>
movsd  0x10bb(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1fa0 <main+0xdf0>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x38(%rbp)
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3b9aca00,-0x8(%rbp)
jge    200d <main+0xe5d>
movsd  0x1076(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1fe5 <main+0xe35>
mov    $0x0,%al
call   10a0 <rdtsc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%rax
sub    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rax
sub    -0x40(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
sub    -0x50(%rbp),%rax
mov    $0x3b9ac618,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rsi
lea    0x1848(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xede(%rip),%rdi
call   1050 <puts@plt>
lea    0xedf(%rip),%rdi
call   1050 <puts@plt>
lea    0xef8(%rip),%rdi
call   1050 <puts@plt>
lea    0xf11(%rip),%rdi
call   1050 <puts@plt>
lea    0xf2a(%rip),%rdi
call   1050 <puts@plt>
lea    0xf41(%rip),%rdi
call   1050 <puts@plt>
lea    0xf5d(%rip),%rdi
call   1050 <puts@plt>
lea    0xf6a(%rip),%rdi
call   1050 <puts@plt>
movl   $0x0,0x4(%rsp)
lea    0xf79(%rip),%rdi
call   1050 <puts@plt>
lea    0xf9d(%rip),%rdi
call   1050 <puts@plt>
lea    0xfa7(%rip),%rdi
call   1050 <puts@plt>
lea    0xfac(%rip),%rdi
call   1050 <puts@plt>
lea    0xfc6(%rip),%rdi
call   1050 <puts@plt>
lea    0xfe0(%rip),%rdi
call   1050 <puts@plt>
movsd  0xd8d(%rip),%xmm0
lea    0x4(%rsp),%rdi
call   10b0 <frexp@plt>
mov    0x4(%rsp),%edx
lea    0xfd4(%rip),%rdi
mov    $0x4,%esi
mov    $0x1,%al
call   1090 <printf@plt>
xor    %eax,%eax
call   1080 <part3@plt>
lea    0xfce(%rip),%rdi
call   1050 <puts@plt>
lea    0xfe3(%rip),%r15
mov    %r15,%rdi
call   1050 <puts@plt>
lea    0xffc(%rip),%r12
mov    %r12,%rdi
call   1050 <puts@plt>
lea    0x100a(%rip),%rbx
mov    %rbx,%rdi
call   1050 <puts@plt>
lea    0x103b(%rip),%rdi
call   1050 <puts@plt>
lea    0x1044(%rip),%rdi
call   1050 <puts@plt>
lea    0x107f(%rip),%r14
mov    %r14,%rdi
call   1050 <puts@plt>
movsd  0xd05(%rip),%xmm0
movsd  0xd05(%rip),%xmm1
call   1030 <add@plt>
cvttsd2si %xmm0,%rax
mov    %rax,%rcx
sar    $0x3f,%rcx
subsd  0xcf4(%rip),%xmm0
cvttsd2si %xmm0,%rsi
and    %rcx,%rsi
or     %rax,%rsi
lea    0x1056(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
movsd  0xcdb(%rip),%xmm0
movsd  0xcdb(%rip),%xmm1
call   1030 <add@plt>
cvttsd2si %xmm0,%rax
mov    %rax,%rcx
sar    $0x3f,%rcx
subsd  0xcb2(%rip),%xmm0
cvttsd2si %xmm0,%rsi
and    %rcx,%rsi
or     %rax,%rsi
lea    0x1027(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x102d(%rip),%rdi
call   1050 <puts@plt>
mov    %r15,%rdi
call   1050 <puts@plt>
mov    %r12,%rdi
call   1050 <puts@plt>
mov    %rbx,%rdi
call   1050 <puts@plt>
lea    0x1041(%rip),%rdi
call   1050 <puts@plt>
lea    0x104f(%rip),%rdi
call   1050 <puts@plt>
mov    %r14,%rdi
call   1050 <puts@plt>
movsd  0xc65(%rip),%xmm0
movsd  0xc65(%rip),%xmm1
call   10c0 <subtract@plt>
cvttsd2si %xmm0,%rax
mov    %rax,%rcx
sar    $0x3f,%rcx
subsd  0xc2c(%rip),%xmm0
cvttsd2si %xmm0,%rsi
and    %rcx,%rsi
or     %rax,%rsi
lea    0x1053(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
movsd  0xc33(%rip),%xmm0
movsd  0xc33(%rip),%xmm1
call   10c0 <subtract@plt>
cvttsd2si %xmm0,%rax
mov    %rax,%rcx
sar    $0x3f,%rcx
subsd  0xbea(%rip),%xmm0
cvttsd2si %xmm0,%rbx
and    %rcx,%rbx
or     %rax,%rbx
lea    0x1022(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x1024(%rip),%rdi
call   1050 <puts@plt>
lea    0x1037(%rip),%rdi
call   1050 <puts@plt>
lea    0x1053(%rip),%rdi
call   1050 <puts@plt>
lea    0x105b(%rip),%rdi
call   1050 <puts@plt>
lea    0x1067(%rip),%rdi
call   1050 <puts@plt>
lea    0x107a(%rip),%rdi
call   1050 <puts@plt>
mov    %r14,%rdi
call   1050 <puts@plt>
movsd  0xbae(%rip),%xmm0
movaps %xmm0,%xmm1
call   1040 <multiply@plt>
lea    0x1077(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
movsd  0xb95(%rip),%xmm0
movaps %xmm0,%xmm1
call   1040 <multiply@plt>
lea    0x1067(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x1065(%rip),%rdi
call   1050 <puts@plt>
lea    0x108a(%rip),%rdi
call   1050 <puts@plt>
lea    0x109d(%rip),%rdi
call   1050 <puts@plt>
lea    0x10a8(%rip),%rdi
call   1050 <puts@plt>
lea    0x10bc(%rip),%rdi
call   1050 <puts@plt>
mov    %r14,%rdi
call   1050 <puts@plt>
movsd  0xb38(%rip),%xmm0
movsd  0xb38(%rip),%xmm1
call   1070 <divide@plt>
cvttsd2si %xmm0,%rax
mov    %rax,%rcx
sar    $0x3f,%rcx
subsd  0xacf(%rip),%xmm0
cvttsd2si %xmm0,%rsi
and    %rcx,%rsi
or     %rax,%rsi
lea    0x1085(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
movsd  0xb06(%rip),%xmm1
movsd  0xaf6(%rip),%xmm0
call   1070 <divide@plt>
cvttsd2si %xmm0,%rax
mov    %rax,%rcx
sar    $0x3f,%rcx
subsd  0xa8d(%rip),%xmm0
cvttsd2si %xmm0,%rsi
and    %rcx,%rsi
or     %rax,%rsi
lea    0x1055(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x1058(%rip),%rdi
call   1050 <puts@plt>
lea    0x1094(%rip),%rdi
call   1050 <puts@plt>
lea    0x10aa(%rip),%rdi
call   1050 <puts@plt>
lea    0x10cc(%rip),%rdi
call   1050 <puts@plt>
lea    0x10e7(%rip),%rdi
call   1050 <puts@plt>
mov    $0x4,%edi
call   1060 <_sqrt@plt>
movsd  0xa46(%rip),%xmm1
divsd  %xmm0,%xmm1
cvttsd2si %xmm1,%rax
mov    %rax,%rcx
sar    $0x3f,%rcx
subsd  0xa0e(%rip),%xmm1
cvttsd2si %xmm1,%rsi
and    %rcx,%rsi
or     %rax,%rsi
lea    0x1107(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    $0x5,%edi
call   1060 <_sqrt@plt>
movsd  0xa03(%rip),%xmm1
divsd  %xmm0,%xmm1
cvttsd2si %xmm1,%rax
mov    %rax,%rcx
sar    $0x3f,%rcx
subsd  0x9cb(%rip),%xmm1
cvttsd2si %xmm1,%rsi
and    %rcx,%rsi
or     %rax,%rsi
lea    0x10d3(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x10d4(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r14
mov    $0x3e8,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  0x9e0(%rip),%xmm0
movsd  0x9e0(%rip),%xmm1
call   1030 <add@plt>
add    $0xffffffff,%ebx
jne    1690 <main+0x4e0>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r15
mov    $0x3b9aca00,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  0x9a0(%rip),%xmm0
movsd  0x9a0(%rip),%xmm1
call   1030 <add@plt>
add    $0xffffffff,%ebp
jne    16d0 <main+0x520>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
add    %r15,%rbx
sub    %rbx,%r14
add    %r14,%rax
shr    $0x3,%rax
movabs $0x897068430f1b36f,%r13
06 97 08
mul    %r13
shr    $0x16,%rdx
lea    0x1039(%rip),%rdi
mov    %rdx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x1054(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r15
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r14
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   10a0 <rdtsc@plt>
add    %r14,%rbx
sub    %rbx,%r15
add    %r15,%rax
shr    $0x3,%rax
mul    %r13
shr    $0x16,%rdx
lea    0x101d(%rip),%rdi
mov    %rdx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x103d(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r14
mov    $0x3e8,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  0x8e0(%rip),%xmm0
movsd  0x8e0(%rip),%xmm1
call   10c0 <subtract@plt>
add    $0xffffffff,%ebx
jne    17a0 <main+0x5f0>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r15
mov    $0x3b9aca00,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  0x8a0(%rip),%xmm0
movsd  0x8a0(%rip),%xmm1
call   10c0 <subtract@plt>
add    $0xffffffff,%ebp
jne    17e0 <main+0x630>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
add    %r15,%rbx
sub    %rbx,%r14
add    %r14,%rax
shr    $0x3,%rax
mul    %r13
shr    $0x16,%rdx
lea    0xf6d(%rip),%r14
mov    %r14,%rdi
mov    %rdx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xf98(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r12
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r15
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   10a0 <rdtsc@plt>
add    %r15,%rbx
sub    %rbx,%r12
add    %r12,%rax
shr    $0x3,%rax
mul    %r13
shr    $0x16,%rdx
mov    %r14,%rdi
mov    %rdx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xf54(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r14
mov    $0x3e8,%ebx
nopl   (%rax)
movsd  0x7f0(%rip),%xmm0
movsd  0x7c0(%rip),%xmm1
call   1040 <multiply@plt>
add    $0xffffffff,%ebx
jne    18a0 <main+0x6f0>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r15
mov    $0x3b9aca00,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  0x7b0(%rip),%xmm0
movsd  0x780(%rip),%xmm1
call   1040 <multiply@plt>
add    $0xffffffff,%ebp
jne    18e0 <main+0x730>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
add    %r15,%rbx
sub    %rbx,%r14
add    %r14,%rax
shr    $0x3,%rax
mul    %r13
shr    $0x16,%rdx
lea    0xec8(%rip),%r14
mov    %r14,%rdi
mov    %rdx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xee5(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r12
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r15
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   10a0 <rdtsc@plt>
add    %r15,%rbx
sub    %rbx,%r12
add    %r12,%rax
shr    $0x3,%rax
mul    %r13
shr    $0x16,%rdx
mov    %r14,%rdi
mov    %rdx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xe9a(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r14
mov    $0x3e8,%ebx
nopl   (%rax)
mov    $0x5,%edi
call   1060 <_sqrt@plt>
add    $0xffffffff,%ebx
jne    19a0 <main+0x7f0>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r15
mov    $0x3b9aca00,%ebp
nopl   0x0(%rax,%rax,1)
mov    $0x5,%edi
call   1060 <_sqrt@plt>
add    $0xffffffff,%ebp
jne    19d0 <main+0x820>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
add    %r15,%rbx
sub    %rbx,%r14
add    %r14,%rax
shr    $0x3,%rax
mul    %r13
shr    $0x16,%rdx
lea    0xe31(%rip),%rdi
mov    %rdx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xe4d(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r14
mov    $0x3e8,%ebx
cs nopw 0x0(%rax,%rax,1)
mov    $0x5,%edi
call   10d0 <sqrt@plt>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
add    $0xfffffff6,%ebx
jne    1a30 <main+0x880>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r15
mov    $0x3b9aca00,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0x5,%edi
call   10d0 <sqrt@plt>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
mov    $0x5,%edi
call   10d0 <sqrt@plt>
add    $0xfffffff6,%ebp
jne    1ac0 <main+0x910>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
add    %r15,%rbx
sub    %rbx,%r14
add    %r14,%rax
shr    $0x3,%rax
mul    %r13
shr    $0x16,%rdx
lea    0xce7(%rip),%rdi
mov    %rdx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xd12(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r14
mov    $0x3e8,%ebx
movsd  0x4f0(%rip),%xmm0
movsd  0x4f0(%rip),%xmm1
call   1070 <divide@plt>
add    $0xffffffff,%ebx
jne    1b70 <main+0x9c0>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r15
mov    $0x3b9aca00,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  0x4b0(%rip),%xmm0
movsd  0x4b0(%rip),%xmm1
call   1070 <divide@plt>
add    $0xffffffff,%ebp
jne    1bb0 <main+0xa00>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
add    %r15,%rbx
sub    %rbx,%r14
add    %r14,%rax
shr    $0x3,%rax
mul    %r13
shr    $0x16,%rdx
lea    0xc95(%rip),%r14
mov    %r14,%rdi
mov    %rdx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xcb2(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r12
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%r15
xor    %eax,%eax
call   10a0 <rdtsc@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   10a0 <rdtsc@plt>
add    %r15,%rbx
sub    %rbx,%r12
add    %r12,%rax
shr    $0x3,%rax
mul    %r13
shr    $0x16,%rdx
mov    %r14,%rdi
mov    %rdx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"Masks used:\0A\00"
@.str.1 = [37 x i8] c"SIG_MASK : 0x000FFFFFFFFFFFFFllu\0A\00"
@.str.2 = [37 x i8] c"EXP_MASK : 0x7FF0000000000000llu\0A\00"
@.str.3 = [37 x i8] c"SIGN_MASK : 0x8000000000000000llu\0A\00"
@.str.4 = [35 x i8] c"GET_EXP(x) : ((x >> 52) & 0x7FF)\0A\00"
@.str.5 = [40 x i8] c"GET_MAN(x) : (x & 0xFFFFFFFFFFFFFllu)\0A\00"
@.str.6 = [25 x i8] c"GET_SIGN(x) : (x >> 63)\0A\00"
@.str.7 = [35 x i8] c"IMPLICIT : 0x10000000000000llu\0A\00"
@.str.8 = [48 x i8] c"Frexp implementation caches NaN and inf errors\0A\00"
@.str.9 = [22 x i8] c"* extract components\0A\00"
@.str.10 = [17 x i8] c"* subtract bias\0A\00"
@.str.11 = [38 x i8] c"* Shift until radix pt is normalized\0A\00"
@.str.12 = [38 x i8] c"* Increment exponent with each shift\0A\00"
@.str.13 = [22 x i8] c"* Reconstruct double\0A\00"
@.str.14 = [20 x i8] c"%lf = %lf * 2 ^ %d\0A\00"
@.str.15 = [33 x i8] c"The Add algorithm is as follows\0A\00"
@.str.16 = [40 x i8] c"* Extract the components of the double\0A\00"
@.str.17 = [29 x i8] c"* Add an implicit leading 1\0A\00"
@.str.18 = [64 x i8] c"* Shift the lower exponent until it aligns with the larger one\0A\00"
@.str.19 = [21 x i8] c"* Add the fractions\0A\00"
@.str.20 = [71 x i8] c"* Normalize the result by shifting radix point until only one is left\0A\00"
@.str.21 = [26 x i8] c"* Reconstruct the double\0A\00"
@.str.22 = [19 x i8] c"1.5 + 99.99 = %lf\0A\00"
@.str.23 = [20 x i8] c"35.6 + 54.4 = %lf\0A\0A\00"
@.str.24 = [56 x i8] c"The Subtraction algorithm works almost the same as add\0A\00"
@.str.25 = [26 x i8] c"* subtract the fractions\0A\00"
@.str.26 = [76 x i8] c"* Normalize the result by shifting radix point left until only one is left\0A\00"
@.str.27 = [17 x i8] c"101.0 - 1 = %lf\0A\00"
@.str.28 = [19 x i8] c"33.0 - 31.5 = %lf\0A\00"
@.str.29 = [31 x i8] c"The Multiplication algorithm:\0A\00"
@.str.30 = [40 x i8] c"* Add the Exponents, subtract the bias\0A\00"
@.str.31 = [20 x i8] c"* Xor the sign bit\0A\00"
@.str.32 = [24 x i8] c"* Mutiply significands\0A\00"
@.str.33 = [31 x i8] c"* Store result in 128 bit int\0A\00"
@.str.34 = [33 x i8] c"* Normalize number but shifting\0A\00"
@.str.35 = [17 x i8] c"9.0 * 9.0 = %lf\0A\00"
@.str.36 = [15 x i8] c".5 * .5 = %lf\0A\00"
@.str.37 = [49 x i8] c"The division algorithm basically calls multiply\0A\00"
@.str.38 = [31 x i8] c"* Invert the minimum exponent\0A\00"
@.str.39 = [23 x i8] c"* Divide significands\0A\00"
@.str.40 = [32 x i8] c"* Normalize number by shifting\0A\00"
@.str.41 = [17 x i8] c"* Call multiply\0A\00"
@.str.42 = [18 x i8] c"10.0 / 5.0 = %lf\0A\00"
@.str.43 = [17 x i8] c"5.0 / 2.0 = %lf\0A\00"
@.str.44 = [72 x i8] c"The quake 3 implementation with another iteration and made for doubles\0A\00"
@.str.45 = [34 x i8] c"Basically a fast Newton's Method\0A\00"
@.str.46 = [46 x i8] c"Calculation based on log2(y) = -(1/2)log2(x)\0A\00"
@.str.47 = [39 x i8] c"The magic number is (3/2) * L * (B-s)\0A\00"
@.str.48 = [97 x i8] c"This is realy fast inverse square root, so the fpu is used to divide, b/c my divide is impricise\00"
@.str.49 = [15 x i8] c"sqrt(4) = %lf\0A\00"
@.str.50 = [15 x i8] c"sqrt(5) = %lf\0A\00"
@.str.51 = [14 x i8] c"Hardware add\0A\00"
@.str.52 = [44 x i8] c"Clocks ticks for add on Core M .9GHz: %lu\0A\0A\00"
@.str.53 = [14 x i8] c"Software add\0A\00"
@.str.54 = [49 x i8] c"Clocks ticks for subtract on Core M .9GHz: %lu\0A\0A\00"
@.str.55 = [14 x i8] c"Software sub\0A\00"
@.str.56 = [14 x i8] c"Hardware sub\0A\00"
@.str.57 = [14 x i8] c"Software mul\0A\00"
@.str.58 = [49 x i8] c"Clocks ticks for multiply on Core M .9GHz: %lu\0A\0A\00"
@.str.59 = [14 x i8] c"Hardware mul\0A\00"
@.str.60 = [15 x i8] c"Software sqrt\0A\00"
@.str.61 = [45 x i8] c"Clocks ticks for sqrt on Core M .9GHz: %lu\0A\0A\00"
@.str.62 = [15 x i8] c"Hardware sqrt\0A\00"
@.str.63 = [19 x i8] c"Software division\0A\00"
@.str.64 = [49 x i8] c"Clocks ticks for division on Core M .9GHz: %lu\0A\0A\00"
@.str.65 = [19 x i8] c"Hardware division\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca double
%4 = alloca i32
%5 = alloca double
%6 = alloca double
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
%13 = alloca i64
store i32 0, i32* %1
%14 = call i32 @puts(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%15 = call i32 @puts(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 @puts(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%17 = call i32 @puts(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%18 = call i32 @puts(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
%19 = call i32 @puts(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
%20 = call i32 @puts(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%21 = call i32 @puts(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %2
store double 0.000000e+00, double* %3
store i32 0, i32* %4
store double 4.200000e+00, double* %5
%22 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%23 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0))
%24 = call i32 @puts(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0))
%25 = call i32 @puts(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.11, i64 0, i64 0))
%26 = call i32 @puts(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0))
%27 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0))
%28 = load double, double* %5
%29 = call double @frexp(double %28, i32* %4)
store double %29, double* %6
%30 = load double, double* %5
%31 = fptoui double %30 to i64
%32 = load double, double* %6
%33 = load i32, i32* %4
%34 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0), i64 %31, double %32, i32 %33)
%35 = call i32 (...) @part3()
%36 = call i32 @puts(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.15, i64 0, i64 0))
%37 = call i32 @puts(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.16, i64 0, i64 0))
%38 = call i32 @puts(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.17, i64 0, i64 0))
%39 = call i32 @puts(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.18, i64 0, i64 0))
%40 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.19, i64 0, i64 0))
%41 = call i32 @puts(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.20, i64 0, i64 0))
%42 = call i32 @puts(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0))
%43 = call double @add(double 1.500000e+00, double 0x4058FF5C28F5C28F)
store double %43, double* %3
%44 = load double, double* %3
%45 = fptoui double %44 to i64
%46 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.22, i64 0, i64 0), i64 %45)
%47 = call double @add(double 3.560000e+01, double 5.440000e+01)
store double %47, double* %3
%48 = load double, double* %3
%49 = fptoui double %48 to i64
%50 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.23, i64 0, i64 0), i64 %49)
%51 = call i32 @puts(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.24, i64 0, i64 0))
%52 = call i32 @puts(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.16, i64 0, i64 0))
%53 = call i32 @puts(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.17, i64 0, i64 0))
%54 = call i32 @puts(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.18, i64 0, i64 0))
%55 = call i32 @puts(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.25, i64 0, i64 0))
%56 = call i32 @puts(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.26, i64 0, i64 0))
%57 = call i32 @puts(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0))
%58 = call double @subtract(double 1.010000e+02, double 1.000000e+00)
store double %58, double* %3
%59 = load double, double* %3
%60 = fptoui double %59 to i64
%61 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.27, i64 0, i64 0), i64 %60)
%62 = call double @subtract(double 3.300000e+01, double 3.150000e+01)
store double %62, double* %3
%63 = load double, double* %3
%64 = fptoui double %63 to i64
%65 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.28, i64 0, i64 0), i64 %64)
%66 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.29, i64 0, i64 0))
%67 = call i32 @puts(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.30, i64 0, i64 0))
%68 = call i32 @puts(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.31, i64 0, i64 0))
%69 = call i32 @puts(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.32, i64 0, i64 0))
%70 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.33, i64 0, i64 0))
%71 = call i32 @puts(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.34, i64 0, i64 0))
%72 = call i32 @puts(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0))
%73 = call i32 @multiply(double 9.000000e+00, double 9.000000e+00)
%74 = load double, double* %3
%75 = fptoui double %74 to i64
%76 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.35, i64 0, i64 0), i64 %75)
%77 = call i32 @multiply(double 5.000000e-01, double 5.000000e-01)
%78 = load double, double* %3
%79 = fptoui double %78 to i64
%80 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.36, i64 0, i64 0), i64 %79)
%81 = call i32 @puts(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.37, i64 0, i64 0))
%82 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.38, i64 0, i64 0))
%83 = call i32 @puts(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.39, i64 0, i64 0))
%84 = call i32 @puts(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.40, i64 0, i64 0))
%85 = call i32 @puts(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.41, i64 0, i64 0))
%86 = call i32 @puts(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0))
%87 = call double @divide(double 1.000000e+01, double 5.000000e+00)
store double %87, double* %3
%88 = load double, double* %3
%89 = fptoui double %88 to i64
%90 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.42, i64 0, i64 0), i64 %89)
%91 = call double @divide(double 5.000000e+00, double 2.000000e+00)
store double %91, double* %3
%92 = load double, double* %3
%93 = fptoui double %92 to i64
%94 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.43, i64 0, i64 0), i64 %93)
%95 = call i32 @puts(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.44, i64 0, i64 0))
%96 = call i32 @puts(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.45, i64 0, i64 0))
%97 = call i32 @puts(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.46, i64 0, i64 0))
%98 = call i32 @puts(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.47, i64 0, i64 0))
%99 = call i32 @puts(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.48, i64 0, i64 0))
%100 = call double @_sqrt(i32 4)
store double %100, double* %3
%101 = load double, double* %3
%102 = fdiv double 1.000000e+00, %101
%103 = fptoui double %102 to i64
%104 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.49, i64 0, i64 0), i64 %103)
%105 = call double @_sqrt(i32 5)
store double %105, double* %3
%106 = load double, double* %3
%107 = fdiv double 1.000000e+00, %106
%108 = fptoui double %107 to i64
%109 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.50, i64 0, i64 0), i64 %108)
store double %109, double* %3
%110 = call i32 @puts(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.51, i64 0, i64 0))
%111 = call i64 (...) @rdtsc()
store i64 %111, i64* %7
store i32 0, i32* %2
br label %112
112: ; preds = %117, %0
%113 = load i32, i32* %2
%114 = icmp slt i32 %113, 1000
br i1 %114, label %115, label %120
115: ; preds = %112
%116 = call double @add(double 4.500000e+00, double 3.500000e+00)
br label %117
117: ; preds = %115
%118 = load i32, i32* %2
%119 = add nsw i32 %118, 1
store i32 %119, i32* %2
br label %112
120: ; preds = %112
%121 = call i64 (...) @rdtsc()
store i64 %121, i64* %8
%122 = call i64 (...) @rdtsc()
store i64 %122, i64* %9
store i32 0, i32* %2
br label %123
123: ; preds = %128, %120
%124 = load i32, i32* %2
%125 = icmp slt i32 %124, 1000000000
br i1 %125, label %126, label %131
126: ; preds = %123
%127 = call double @add(double 4.500000e+00, double 3.500000e+00)
br label %128
128: ; preds = %126
%129 = load i32, i32* %2
%130 = add nsw i32 %129, 1
store i32 %130, i32* %2
br label %123
131: ; preds = %123
%132 = call i64 (...) @rdtsc()
store i64 %132, i64* %10
%133 = load i64, i64* %8
%134 = load i64, i64* %7
%135 = sub i64 %133, %134
store i64 %135, i64* %11
%136 = load i64, i64* %10
%137 = load i64, i64* %9
%138 = sub i64 %136, %137
store i64 %138, i64* %12
%139 = load i64, i64* %12
%140 = load i64, i64* %11
%141 = sub i64 %139, %140
%142 = udiv i64 %141, 999999000
store i64 %142, i64* %13
%143 = load i64, i64* %13
%144 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.52, i64 0, i64 0), i64 %143)
%145 = call i32 @puts(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.53, i64 0, i64 0))
%146 = call i64 (...) @rdtsc()
store i64 %146, i64* %7
store i32 0, i32* %2
br label %147
147: ; preds = %151, %131
%148 = load i32, i32* %2
%149 = icmp slt i32 %148, 1000
br i1 %149, label %150, label %154
150: ; preds = %147
store double 8.000000e+00, double* %3
br label %151
151: ; preds = %150
%152 = load i32, i32* %2
%153 = add nsw i32 %152, 1
store i32 %153, i32* %2
br label %147
154: ; preds = %147
%155 = call i64 (...) @rdtsc()
store i64 %155, i64* %8
%156 = call i64 (...) @rdtsc()
store i64 %156, i64* %9
store i32 0, i32* %2
br label %157
157: ; preds = %161, %154
%158 = load i32, i32* %2
%159 = icmp slt i32 %158, 1000000000
br i1 %159, label %160, label %164
160: ; preds = %157
store double 8.000000e+00, double* %3
br label %161
161: ; preds = %160
%162 = load i32, i32* %2
%163 = add nsw i32 %162, 1
store i32 %163, i32* %2
br label %157
164: ; preds = %157
%165 = call i64 (...) @rdtsc()
store i64 %165, i64* %10
%166 = load i64, i64* %8
%167 = load i64, i64* %7
%168 = sub i64 %166, %167
store i64 %168, i64* %11
%169 = load i64, i64* %10
%170 = load i64, i64* %9
%171 = sub i64 %169, %170
store i64 %171, i64* %12
%172 = load i64, i64* %12
%173 = load i64, i64* %11
%174 = sub i64 %172, %173
%175 = udiv i64 %174, 999999000
store i64 %175, i64* %13
%176 = load i64, i64* %13
%177 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.54, i64 0, i64 0), i64 %176)
%178 = call i32 @puts(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.55, i64 0, i64 0))
%179 = call i64 (...) @rdtsc()
store i64 %179, i64* %7
store i32 0, i32* %2
br label %180
180: ; preds = %185, %164
%181 = load i32, i32* %2
%182 = icmp slt i32 %181, 1000
br i1 %182, label %183, label %188
183: ; preds = %180
%184 = call double @subtract(double 3.300000e+00, double 1.100000e+00)
br label %185
185: ; preds = %183
%186 = load i32, i32* %2
%187 = add nsw i32 %186, 1
store i32 %187, i32* %2
br label %180
188: ; preds = %180
%189 = call i64 (...) @rdtsc()
store i64 %189, i64* %8
%190 = call i64 (...) @rdtsc()
store i64 %190, i64* %9
store i32 0, i32* %2
br label %191
191: ; preds = %196, %188
%192 = load i32, i32* %2
%193 = icmp slt i32 %192, 1000000000
br i1 %193, label %194, label %199
194: ; preds = %191
%195 = call double @subtract(double 3.300000e+00, double 1.100000e+00)
br label %196
196: ; preds = %194
%197 = load i32, i32* %2
%198 = add nsw i32 %197, 1
store i32 %198, i32* %2
br label %191
199: ; preds = %191
%200 = call i64 (...) @rdtsc()
store i64 %200, i64* %10
%201 = load i64, i64* %8
%202 = load i64, i64* %7
%203 = sub i64 %201, %202
store i64 %203, i64* %11
%204 = load i64, i64* %10
%205 = load i64, i64* %9
%206 = sub i64 %204, %205
store i64 %206, i64* %12
%207 = load i64, i64* %12
%208 = load i64, i64* %11
%209 = sub i64 %207, %208
%210 = udiv i64 %209, 999999000
store i64 %210, i64* %13
%211 = load i64, i64* %13
%212 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.54, i64 0, i64 0), i64 %211)
%213 = call i32 @puts(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.56, i64 0, i64 0))
%214 = call i64 (...) @rdtsc()
store i64 %214, i64* %7
store i32 0, i32* %2
br label %215
215: ; preds = %219, %199
%216 = load i32, i32* %2
%217 = icmp slt i32 %216, 1000
br i1 %217, label %218, label %222
218: ; preds = %215
store double 0x4001999999999999, double* %3
br label %219
219: ; preds = %218
%220 = load i32, i32* %2
%221 = add nsw i32 %220, 1
store i32 %221, i32* %2
br label %215
222: ; preds = %215
%223 = call i64 (...) @rdtsc()
store i64 %223, i64* %8
%224 = call i64 (...) @rdtsc()
store i64 %224, i64* %9
store i32 0, i32* %2
br label %225
225: ; preds = %229, %222
%226 = load i32, i32* %2
%227 = icmp slt i32 %226, 1000000000
br i1 %227, label %228, label %232
228: ; preds = %225
store double 0x4001999999999999, double* %3
br label %229
229: ; preds = %228
%230 = load i32, i32* %2
%231 = add nsw i32 %230, 1
store i32 %231, i32* %2
br label %225
232: ; preds = %225
%233 = call i64 (...) @rdtsc()
store i64 %233, i64* %10
%234 = load i64, i64* %8
%235 = load i64, i64* %7
%236 = sub i64 %234, %235
store i64 %236, i64* %11
%237 = load i64, i64* %10
%238 = load i64, i64* %9
%239 = sub i64 %237, %238
store i64 %239, i64* %12
%240 = load i64, i64* %12
%241 = load i64, i64* %11
%242 = sub i64 %240, %241
%243 = udiv i64 %242, 999999000
store i64 %243, i64* %13
%244 = load i64, i64* %13
%245 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.54, i64 0, i64 0), i64 %244)
%246 = call i32 @puts(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.57, i64 0, i64 0))
%247 = call i64 (...) @rdtsc()
%248 = call i64 (...) @rdtsc()
store i64 %248, i64* %7
store i32 0, i32* %2
br label %249
249: ; preds = %254, %232
%250 = load i32, i32* %2
%251 = icmp slt i32 %250, 1000
br i1 %251, label %252, label %257
252: ; preds = %249
%253 = call i32 @multiply(double 2.200000e+00, double 2.000000e+00)
br label %254
254: ; preds = %252
%255 = load i32, i32* %2
%256 = add nsw i32 %255, 1
store i32 %256, i32* %2
br label %249
257: ; preds = %249
%258 = call i64 (...) @rdtsc()
store i64 %258, i64* %8
%259 = call i64 (...) @rdtsc()
store i64 %259, i64* %9
store i32 0, i32* %2
br label %260
260: ; preds = %265, %257
%261 = load i32, i32* %2
%262 = icmp slt i32 %261, 1000000000
br i1 %262, label %263, label %268
263: ; preds = %260
%264 = call i32 @multiply(double 2.200000e+00, double 2.000000e+00)
br label %265
265: ; preds = %263
%266 = load i32, i32* %2
%267 = add nsw i32 %266, 1
store i32 %267, i32* %2
br label %260
268: ; preds = %260
%269 = call i64 (...) @rdtsc()
store i64 %269, i64* %10
%270 = load i64, i64* %8
%271 = load i64, i64* %7
%272 = sub i64 %270, %271
store i64 %272, i64* %11
%273 = load i64, i64* %10
%274 = load i64, i64* %9
%275 = sub i64 %273, %274
store i64 %275, i64* %12
%276 = load i64, i64* %12
%277 = load i64, i64* %11
%278 = sub i64 %276, %277
%279 = udiv i64 %278, 999999000
store i64 %279, i64* %13
%280 = load i64, i64* %13
%281 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.58, i64 0, i64 0), i64 %280)
%282 = call i32 @puts(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.59, i64 0, i64 0))
%283 = call i64 (...) @rdtsc()
%284 = call i64 (...) @rdtsc()
store i64 %284, i64* %7
store i32 0, i32* %2
br label %285
285: ; preds = %289, %268
%286 = load i32, i32* %2
%287 = icmp slt i32 %286, 1000
br i1 %287, label %288, label %292
288: ; preds = %285
store double 4.400000e+00, double* %3
br label %289
289: ; preds = %288
%290 = load i32, i32* %2
%291 = add nsw i32 %290, 1
store i32 %291, i32* %2
br label %285
292: ; preds = %285
%293 = call i64 (...) @rdtsc()
store i64 %293, i64* %8
%294 = call i64 (...) @rdtsc()
store i64 %294, i64* %9
store i32 0, i32* %2
br label %295
295: ; preds = %299, %292
%296 = load i32, i32* %2
%297 = icmp slt i32 %296, 1000000000
br i1 %297, label %298, label %302
298: ; preds = %295
store double 4.400000e+00, double* %3
br label %299
299: ; preds = %298
%300 = load i32, i32* %2
%301 = add nsw i32 %300, 1
store i32 %301, i32* %2
br label %295
302: ; preds = %295
%303 = call i64 (...) @rdtsc()
store i64 %303, i64* %10
%304 = load i64, i64* %8
%305 = load i64, i64* %7
%306 = sub i64 %304, %305
store i64 %306, i64* %11
%307 = load i64, i64* %10
%308 = load i64, i64* %9
%309 = sub i64 %307, %308
store i64 %309, i64* %12
%310 = load i64, i64* %12
%311 = load i64, i64* %11
%312 = sub i64 %310, %311
%313 = udiv i64 %312, 999999000
store i64 %313, i64* %13
%314 = load i64, i64* %13
%315 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.58, i64 0, i64 0), i64 %314)
%316 = call i32 @puts(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.60, i64 0, i64 0))
%317 = call i64 (...) @rdtsc()
store i64 %317, i64* %7
store i32 0, i32* %2
br label %318
318: ; preds = %323, %302
%319 = load i32, i32* %2
%320 = icmp slt i32 %319, 1000
br i1 %320, label %321, label %326
321: ; preds = %318
%322 = call double @_sqrt(i32 5)
br label %323
323: ; preds = %321
%324 = load i32, i32* %2
%325 = add nsw i32 %324, 1
store i32 %325, i32* %2
br label %318
326: ; preds = %318
%327 = call i64 (...) @rdtsc()
store i64 %327, i64* %8
%328 = call i64 (...) @rdtsc()
store i64 %328, i64* %9
store i32 0, i32* %2
br label %329
329: ; preds = %334, %326
%330 = load i32, i32* %2
%331 = icmp slt i32 %330, 1000000000
br i1 %331, label %332, label %337
332: ; preds = %329
%333 = call double @_sqrt(i32 5)
br label %334
334: ; preds = %332
%335 = load i32, i32* %2
%336 = add nsw i32 %335, 1
store i32 %336, i32* %2
br label %329
337: ; preds = %329
%338 = call i64 (...) @rdtsc()
store i64 %338, i64* %10
%339 = load i64, i64* %8
%340 = load i64, i64* %7
%341 = sub i64 %339, %340
store i64 %341, i64* %11
%342 = load i64, i64* %10
%343 = load i64, i64* %9
%344 = sub i64 %342, %343
store i64 %344, i64* %12
%345 = load i64, i64* %12
%346 = load i64, i64* %11
%347 = sub i64 %345, %346
%348 = udiv i64 %347, 999999000
store i64 %348, i64* %13
%349 = load i64, i64* %13
%350 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.61, i64 0, i64 0), i64 %349)
%351 = call i32 @puts(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.62, i64 0, i64 0))
%352 = call i64 (...) @rdtsc()
store i64 %352, i64* %7
store i32 0, i32* %2
br label %353
353: ; preds = %358, %337
%354 = load i32, i32* %2
%355 = icmp slt i32 %354, 1000
br i1 %355, label %356, label %361
356: ; preds = %353
%357 = call double @sqrt(i32 5)
store double %357, double* %3
br label %358
358: ; preds = %356
%359 = load i32, i32* %2
%360 = add nsw i32 %359, 1
store i32 %360, i32* %2
br label %353
361: ; preds = %353
%362 = call i64 (...) @rdtsc()
store i64 %362, i64* %8
%363 = call i64 (...) @rdtsc()
store i64 %363, i64* %9
store i32 0, i32* %2
br label %364
364: ; preds = %369, %361
%365 = load i32, i32* %2
%366 = icmp slt i32 %365, 1000000000
br i1 %366, label %367, label %372
367: ; preds = %364
%368 = call double @sqrt(i32 5)
store double %368, double* %3
br label %369
369: ; preds = %367
%370 = load i32, i32* %2
%371 = add nsw i32 %370, 1
store i32 %371, i32* %2
br label %364
372: ; preds = %364
%373 = call i64 (...) @rdtsc()
store i64 %373, i64* %10
%374 = load i64, i64* %8
%375 = load i64, i64* %7
%376 = sub i64 %374, %375
store i64 %376, i64* %11
%377 = load i64, i64* %10
%378 = load i64, i64* %9
%379 = sub i64 %377, %378
store i64 %379, i64* %12
%380 = load i64, i64* %12
%381 = load i64, i64* %11
%382 = sub i64 %380, %381
%383 = udiv i64 %382, 999999000
store i64 %383, i64* %13
%384 = load i64, i64* %13
%385 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.61, i64 0, i64 0), i64 %384)
%386 = call i32 @puts(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.63, i64 0, i64 0))
%387 = call i64 (...) @rdtsc()
store i64 %387, i64* %7
store i32 0, i32* %2
br label %388
388: ; preds = %393, %372
%389 = load i32, i32* %2
%390 = icmp slt i32 %389, 1000
br i1 %390, label %391, label %396
391: ; preds = %388
%392 = call double @divide(double 5.000000e+00, double 2.000000e+00)
br label %393
393: ; preds = %391
%394 = load i32, i32* %2
%395 = add nsw i32 %394, 1
store i32 %395, i32* %2
br label %388
396: ; preds = %388
%397 = call i64 (...) @rdtsc()
store i64 %397, i64* %8
%398 = call i64 (...) @rdtsc()
store i64 %398, i64* %9
store i32 0, i32* %2
br label %399
399: ; preds = %404, %396
%400 = load i32, i32* %2
%401 = icmp slt i32 %400, 1000000000
br i1 %401, label %402, label %407
402: ; preds = %399
%403 = call double @divide(double 5.000000e+00, double 2.000000e+00)
br label %404
404: ; preds = %402
%405 = load i32, i32* %2
%406 = add nsw i32 %405, 1
store i32 %406, i32* %2
br label %399
407: ; preds = %399
%408 = call i64 (...) @rdtsc()
store i64 %408, i64* %10
%409 = load i64, i64* %8
%410 = load i64, i64* %7
%411 = sub i64 %409, %410
store i64 %411, i64* %11
%412 = load i64, i64* %10
%413 = load i64, i64* %9
%414 = sub i64 %412, %413
store i64 %414, i64* %12
%415 = load i64, i64* %12
%416 = load i64, i64* %11
%417 = sub i64 %415, %416
%418 = udiv i64 %417, 999999000
store i64 %418, i64* %13
%419 = load i64, i64* %13
%420 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.64, i64 0, i64 0), i64 %419)
%421 = call i32 @puts(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.65, i64 0, i64 0))
%422 = call i64 (...) @rdtsc()
store i64 %422, i64* %7
store i32 0, i32* %2
br label %423
423: ; preds = %427, %407
%424 = load i32, i32* %2
%425 = icmp slt i32 %424, 1000
br i1 %425, label %426, label %430
426: ; preds = %423
store double 2.500000e+00, double* %3
br label %427
427: ; preds = %426
%428 = load i32, i32* %2
%429 = add nsw i32 %428, 1
store i32 %429, i32* %2
br label %423
430: ; preds = %423
%431 = call i64 (...) @rdtsc()
store i64 %431, i64* %8
%432 = call i64 (...) @rdtsc()
store i64 %432, i64* %9
store i32 0, i32* %2
br label %433
433: ; preds = %437, %430
%434 = load i32, i32* %2
%435 = icmp slt i32 %434, 1000000000
br i1 %435, label %436, label %440
436: ; preds = %433
store double 2.500000e+00, double* %3
br label %437
437: ; preds = %436
%438 = load i32, i32* %2
%439 = add nsw i32 %438, 1
store i32 %439, i32* %2
br label %433
440: ; preds = %433
%441 = call i64 (...) @rdtsc()
store i64 %441, i64* %10
%442 = load i64, i64* %8
%443 = load i64, i64* %7
%444 = sub i64 %442, %443
store i64 %444, i64* %11
%445 = load i64, i64* %10
%446 = load i64, i64* %9
%447 = sub i64 %445, %446
store i64 %447, i64* %12
%448 = load i64, i64* %12
%449 = load i64, i64* %11
%450 = sub i64 %448, %449
%451 = udiv i64 %450, 999999000
store i64 %451, i64* %13
%452 = load i64, i64* %13
%453 = call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.64, i64 0, i64 0), i64 %452)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"Masks used:\0A\00"
@.str.1 = [37 x i8] c"SIG_MASK : 0x000FFFFFFFFFFFFFllu\0A\00"
@.str.2 = [37 x i8] c"EXP_MASK : 0x7FF0000000000000llu\0A\00"
@.str.3 = [37 x i8] c"SIGN_MASK : 0x8000000000000000llu\0A\00"
@.str.4 = [35 x i8] c"GET_EXP(x) : ((x >> 52) & 0x7FF)\0A\00"
@.str.5 = [40 x i8] c"GET_MAN(x) : (x & 0xFFFFFFFFFFFFFllu)\0A\00"
@.str.6 = [25 x i8] c"GET_SIGN(x) : (x >> 63)\0A\00"
@.str.7 = [35 x i8] c"IMPLICIT : 0x10000000000000llu\0A\00"
@.str.8 = [48 x i8] c"Frexp implementation caches NaN and inf errors\0A\00"
@.str.9 = [22 x i8] c"* extract components\0A\00"
@.str.10 = [17 x i8] c"* subtract bias\0A\00"
@.str.11 = [38 x i8] c"* Shift until radix pt is normalized\0A\00"
@.str.12 = [38 x i8] c"* Increment exponent with each shift\0A\00"
@.str.13 = [22 x i8] c"* Reconstruct double\0A\00"
@.str.14 = [20 x i8] c"%lf = %lf * 2 ^ %d\0A\00"
@.str.15 = [33 x i8] c"The Add algorithm is as follows\0A\00"
@.str.16 = [40 x i8] c"* Extract the components of the double\0A\00"
@.str.17 = [29 x i8] c"* Add an implicit leading 1\0A\00"
@.str.18 = [64 x i8] c"* Shift the lower exponent until it aligns with the larger one\0A\00"
@.str.19 = [21 x i8] c"* Add the fractions\0A\00"
@.str.20 = [71 x i8] c"* Normalize the result by shifting radix point until only one is left\0A\00"
@.str.21 = [26 x i8] c"* Reconstruct the double\0A\00"
@.str.22 = [19 x i8] c"1.5 + 99.99 = %lf\0A\00"
@.str.23 = [20 x i8] c"35.6 + 54.4 = %lf\0A\0A\00"
@.str.24 = [56 x i8] c"The Subtraction algorithm works almost the same as add\0A\00"
@.str.25 = [26 x i8] c"* subtract the fractions\0A\00"
@.str.26 = [76 x i8] c"* Normalize the result by shifting radix point left until only one is left\0A\00"
@.str.27 = [17 x i8] c"101.0 - 1 = %lf\0A\00"
@.str.28 = [19 x i8] c"33.0 - 31.5 = %lf\0A\00"
@.str.29 = [31 x i8] c"The Multiplication algorithm:\0A\00"
@.str.30 = [40 x i8] c"* Add the Exponents, subtract the bias\0A\00"
@.str.31 = [20 x i8] c"* Xor the sign bit\0A\00"
@.str.32 = [24 x i8] c"* Mutiply significands\0A\00"
@.str.33 = [31 x i8] c"* Store result in 128 bit int\0A\00"
@.str.34 = [33 x i8] c"* Normalize number but shifting\0A\00"
@.str.35 = [17 x i8] c"9.0 * 9.0 = %lf\0A\00"
@.str.36 = [15 x i8] c".5 * .5 = %lf\0A\00"
@.str.37 = [49 x i8] c"The division algorithm basically calls multiply\0A\00"
@.str.38 = [31 x i8] c"* Invert the minimum exponent\0A\00"
@.str.39 = [23 x i8] c"* Divide significands\0A\00"
@.str.40 = [32 x i8] c"* Normalize number by shifting\0A\00"
@.str.41 = [17 x i8] c"* Call multiply\0A\00"
@.str.42 = [18 x i8] c"10.0 / 5.0 = %lf\0A\00"
@.str.43 = [17 x i8] c"5.0 / 2.0 = %lf\0A\00"
@.str.44 = [72 x i8] c"The quake 3 implementation with another iteration and made for doubles\0A\00"
@.str.45 = [34 x i8] c"Basically a fast Newton's Method\0A\00"
@.str.46 = [46 x i8] c"Calculation based on log2(y) = -(1/2)log2(x)\0A\00"
@.str.47 = [39 x i8] c"The magic number is (3/2) * L * (B-s)\0A\00"
@.str.48 = [97 x i8] c"This is realy fast inverse square root, so the fpu is used to divide, b/c my divide is impricise\00"
@.str.49 = [15 x i8] c"sqrt(4) = %lf\0A\00"
@.str.50 = [15 x i8] c"sqrt(5) = %lf\0A\00"
@.str.51 = [14 x i8] c"Hardware add\0A\00"
@.str.52 = [44 x i8] c"Clocks ticks for add on Core M .9GHz: %lu\0A\0A\00"
@.str.53 = [14 x i8] c"Software add\0A\00"
@.str.54 = [49 x i8] c"Clocks ticks for subtract on Core M .9GHz: %lu\0A\0A\00"
@.str.55 = [14 x i8] c"Software sub\0A\00"
@.str.56 = [14 x i8] c"Hardware sub\0A\00"
@.str.57 = [14 x i8] c"Software mul\0A\00"
@.str.58 = [49 x i8] c"Clocks ticks for multiply on Core M .9GHz: %lu\0A\0A\00"
@.str.59 = [14 x i8] c"Hardware mul\0A\00"
@.str.60 = [15 x i8] c"Software sqrt\0A\00"
@.str.61 = [45 x i8] c"Clocks ticks for sqrt on Core M .9GHz: %lu\0A\0A\00"
@.str.62 = [15 x i8] c"Hardware sqrt\0A\00"
@.str.63 = [19 x i8] c"Software division\0A\00"
@.str.64 = [49 x i8] c"Clocks ticks for division on Core M .9GHz: %lu\0A\0A\00"
@.str.65 = [19 x i8] c"Hardware division\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0))
%10 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.11, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0))
%17 = call double @frexp(double 4.200000e+00, i32* %1)
%18 = load i32, i32* %1
%19 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0), i64 4, double %17, i32 %18)
%20 = tail call i32 (...) @part3()
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.15, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.16, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.17, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.18, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.19, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str.20, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0))
%28 = tail call double @add(double 1.500000e+00, double 0x4058FF5C28F5C28F)
%29 = fptoui double %28 to i64
%30 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.22, i64 0, i64 0), i64 %29)
%31 = tail call double @add(double 3.560000e+01, double 5.440000e+01)
%32 = fptoui double %31 to i64
%33 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.23, i64 0, i64 0), i64 %32)
%34 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.24, i64 0, i64 0))
%35 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.16, i64 0, i64 0))
%36 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.17, i64 0, i64 0))
%37 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.18, i64 0, i64 0))
%38 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.25, i64 0, i64 0))
%39 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @.str.26, i64 0, i64 0))
%40 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0))
%41 = tail call double @subtract(double 1.010000e+02, double 1.000000e+00)
%42 = fptoui double %41 to i64
%43 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.27, i64 0, i64 0), i64 %42)
%44 = tail call double @subtract(double 3.300000e+01, double 3.150000e+01)
%45 = fptoui double %44 to i64
%46 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.28, i64 0, i64 0), i64 %45)
%47 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.29, i64 0, i64 0))
%48 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.30, i64 0, i64 0))
%49 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.31, i64 0, i64 0))
%50 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.32, i64 0, i64 0))
%51 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.33, i64 0, i64 0))
%52 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.34, i64 0, i64 0))
%53 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0))
%54 = tail call i32 @multiply(double 9.000000e+00, double 9.000000e+00)
%55 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.35, i64 0, i64 0), i64 %45)
%56 = tail call i32 @multiply(double 5.000000e-01, double 5.000000e-01)
%57 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.36, i64 0, i64 0), i64 %45)
%58 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.37, i64 0, i64 0))
%59 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.38, i64 0, i64 0))
%60 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.39, i64 0, i64 0))
%61 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.40, i64 0, i64 0))
%62 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.41, i64 0, i64 0))
%63 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0))
%64 = tail call double @divide(double 1.000000e+01, double 5.000000e+00)
%65 = fptoui double %64 to i64
%66 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.42, i64 0, i64 0), i64 %65)
%67 = tail call double @divide(double 5.000000e+00, double 2.000000e+00)
%68 = fptoui double %67 to i64
%69 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.43, i64 0, i64 0), i64 %68)
%70 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.44, i64 0, i64 0))
%71 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.45, i64 0, i64 0))
%72 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.46, i64 0, i64 0))
%73 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.47, i64 0, i64 0))
%74 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([97 x i8], [97 x i8]* @.str.48, i64 0, i64 0))
%75 = tail call double @_sqrt(i32 4)
%76 = fdiv double 1.000000e+00, %75
%77 = fptoui double %76 to i64
%78 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.49, i64 0, i64 0), i64 %77)
%79 = tail call double @_sqrt(i32 5)
%80 = fdiv double 1.000000e+00, %79
%81 = fptoui double %80 to i64
%82 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.50, i64 0, i64 0), i64 %81)
%83 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.51, i64 0, i64 0))
%84 = tail call i64 (...) @rdtsc()
br label %85
85: ; preds = %0, %85
%86 = phi i32 [ 0, %0 ], [ %88, %85 ]
%87 = tail call double @add(double 4.500000e+00, double 3.500000e+00)
%88 = add nuw nsw i32 %86, 1
%89 = icmp eq i32 %88, 1000
br i1 %89, label %90, label %85
90: ; preds = %85
%91 = tail call i64 (...) @rdtsc()
%92 = tail call i64 (...) @rdtsc()
br label %93
93: ; preds = %90, %93
%94 = phi i32 [ 0, %90 ], [ %96, %93 ]
%95 = tail call double @add(double 4.500000e+00, double 3.500000e+00)
%96 = add nuw nsw i32 %94, 1
%97 = icmp eq i32 %96, 1000000000
br i1 %97, label %98, label %93
98: ; preds = %93
%99 = tail call i64 (...) @rdtsc()
%100 = add i64 %91, %92
%101 = sub i64 %84, %100
%102 = add i64 %101, %99
%103 = udiv i64 %102, 999999000
%104 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.52, i64 0, i64 0), i64 %103)
%105 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.53, i64 0, i64 0))
%106 = tail call i64 (...) @rdtsc()
%107 = tail call i64 (...) @rdtsc()
%108 = tail call i64 (...) @rdtsc()
%109 = tail call i64 (...) @rdtsc()
%110 = add i64 %107, %108
%111 = sub i64 %106, %110
%112 = add i64 %111, %109
%113 = udiv i64 %112, 999999000
%114 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.54, i64 0, i64 0), i64 %113)
%115 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.55, i64 0, i64 0))
%116 = tail call i64 (...) @rdtsc()
br label %117
117: ; preds = %98, %117
%118 = phi i32 [ 0, %98 ], [ %120, %117 ]
%119 = tail call double @subtract(double 3.300000e+00, double 1.100000e+00)
%120 = add nuw nsw i32 %118, 1
%121 = icmp eq i32 %120, 1000
br i1 %121, label %122, label %117
122: ; preds = %117
%123 = tail call i64 (...) @rdtsc()
%124 = tail call i64 (...) @rdtsc()
br label %125
125: ; preds = %122, %125
%126 = phi i32 [ 0, %122 ], [ %128, %125 ]
%127 = tail call double @subtract(double 3.300000e+00, double 1.100000e+00)
%128 = add nuw nsw i32 %126, 1
%129 = icmp eq i32 %128, 1000000000
br i1 %129, label %130, label %125
130: ; preds = %125
%131 = tail call i64 (...) @rdtsc()
%132 = add i64 %123, %124
%133 = sub i64 %116, %132
%134 = add i64 %133, %131
%135 = udiv i64 %134, 999999000
%136 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.54, i64 0, i64 0), i64 %135)
%137 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.56, i64 0, i64 0))
%138 = tail call i64 (...) @rdtsc()
%139 = tail call i64 (...) @rdtsc()
%140 = tail call i64 (...) @rdtsc()
%141 = tail call i64 (...) @rdtsc()
%142 = add i64 %139, %140
%143 = sub i64 %138, %142
%144 = add i64 %143, %141
%145 = udiv i64 %144, 999999000
%146 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.54, i64 0, i64 0), i64 %145)
%147 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.57, i64 0, i64 0))
%148 = tail call i64 (...) @rdtsc()
%149 = tail call i64 (...) @rdtsc()
br label %150
150: ; preds = %130, %150
%151 = phi i32 [ 0, %130 ], [ %153, %150 ]
%152 = tail call i32 @multiply(double 2.200000e+00, double 2.000000e+00)
%153 = add nuw nsw i32 %151, 1
%154 = icmp eq i32 %153, 1000
br i1 %154, label %155, label %150
155: ; preds = %150
%156 = tail call i64 (...) @rdtsc()
%157 = tail call i64 (...) @rdtsc()
br label %158
158: ; preds = %155, %158
%159 = phi i32 [ 0, %155 ], [ %161, %158 ]
%160 = tail call i32 @multiply(double 2.200000e+00, double 2.000000e+00)
%161 = add nuw nsw i32 %159, 1
%162 = icmp eq i32 %161, 1000000000
br i1 %162, label %163, label %158
163: ; preds = %158
%164 = tail call i64 (...) @rdtsc()
%165 = add i64 %156, %157
%166 = sub i64 %149, %165
%167 = add i64 %166, %164
%168 = udiv i64 %167, 999999000
%169 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.58, i64 0, i64 0), i64 %168)
%170 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.59, i64 0, i64 0))
%171 = tail call i64 (...) @rdtsc()
%172 = tail call i64 (...) @rdtsc()
%173 = tail call i64 (...) @rdtsc()
%174 = tail call i64 (...) @rdtsc()
%175 = tail call i64 (...) @rdtsc()
%176 = add i64 %173, %174
%177 = sub i64 %172, %176
%178 = add i64 %177, %175
%179 = udiv i64 %178, 999999000
%180 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.58, i64 0, i64 0), i64 %179)
%181 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.60, i64 0, i64 0))
%182 = tail call i64 (...) @rdtsc()
br label %183
183: ; preds = %163, %183
%184 = phi i32 [ 0, %163 ], [ %186, %183 ]
%185 = tail call double @_sqrt(i32 5)
%186 = add nuw nsw i32 %184, 1
%187 = icmp eq i32 %186, 1000
br i1 %187, label %188, label %183
188: ; preds = %183
%189 = tail call i64 (...) @rdtsc()
%190 = tail call i64 (...) @rdtsc()
br label %191
191: ; preds = %188, %191
%192 = phi i32 [ 0, %188 ], [ %194, %191 ]
%193 = tail call double @_sqrt(i32 5)
%194 = add nuw nsw i32 %192, 1
%195 = icmp eq i32 %194, 1000000000
br i1 %195, label %196, label %191
196: ; preds = %191
%197 = tail call i64 (...) @rdtsc()
%198 = add i64 %189, %190
%199 = sub i64 %182, %198
%200 = add i64 %199, %197
%201 = udiv i64 %200, 999999000
%202 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.61, i64 0, i64 0), i64 %201)
%203 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.62, i64 0, i64 0))
%204 = tail call i64 (...) @rdtsc()
br label %205
205: ; preds = %205, %196
%206 = phi i32 [ 0, %196 ], [ %217, %205 ]
%207 = tail call double @sqrt(i32 5)
%208 = tail call double @sqrt(i32 5)
%209 = tail call double @sqrt(i32 5)
%210 = tail call double @sqrt(i32 5)
%211 = tail call double @sqrt(i32 5)
%212 = tail call double @sqrt(i32 5)
%213 = tail call double @sqrt(i32 5)
%214 = tail call double @sqrt(i32 5)
%215 = tail call double @sqrt(i32 5)
%216 = tail call double @sqrt(i32 5)
%217 = add nuw nsw i32 %206, 10
%218 = icmp eq i32 %217, 1000
br i1 %218, label %219, label %205
219: ; preds = %205
%220 = tail call i64 (...) @rdtsc()
%221 = tail call i64 (...) @rdtsc()
br label %222
222: ; preds = %222, %219
%223 = phi i32 [ 0, %219 ], [ %234, %222 ]
%224 = tail call double @sqrt(i32 5)
%225 = tail call double @sqrt(i32 5)
%226 = tail call double @sqrt(i32 5)
%227 = tail call double @sqrt(i32 5)
%228 = tail call double @sqrt(i32 5)
%229 = tail call double @sqrt(i32 5)
%230 = tail call double @sqrt(i32 5)
%231 = tail call double @sqrt(i32 5)
%232 = tail call double @sqrt(i32 5)
%233 = tail call double @sqrt(i32 5)
%234 = add nuw nsw i32 %223, 10
%235 = icmp eq i32 %234, 1000000000
br i1 %235, label %236, label %222
236: ; preds = %222
%237 = tail call i64 (...) @rdtsc()
%238 = add i64 %220, %221
%239 = sub i64 %204, %238
%240 = add i64 %239, %237
%241 = udiv i64 %240, 999999000
%242 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.61, i64 0, i64 0), i64 %241)
%243 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.63, i64 0, i64 0))
%244 = tail call i64 (...) @rdtsc()
br label %245
245: ; preds = %236, %245
%246 = phi i32 [ 0, %236 ], [ %248, %245 ]
%247 = tail call double @divide(double 5.000000e+00, double 2.000000e+00)
%248 = add nuw nsw i32 %246, 1
%249 = icmp eq i32 %248, 1000
br i1 %249, label %250, label %245
250: ; preds = %245
%251 = tail call i64 (...) @rdtsc()
%252 = tail call i64 (...) @rdtsc()
br label %253
253: ; preds = %250, %253
%254 = phi i32 [ 0, %250 ], [ %256, %253 ]
%255 = tail call double @divide(double 5.000000e+00, double 2.000000e+00)
%256 = add nuw nsw i32 %254, 1
%257 = icmp eq i32 %256, 1000000000
br i1 %257, label %258, label %253
258: ; preds = %253
%259 = tail call i64 (...) @rdtsc()
%260 = add i64 %251, %252
%261 = sub i64 %244, %260
%262 = add i64 %261, %259
%263 = udiv i64 %262, 999999000
%264 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.64, i64 0, i64 0), i64 %263)
%265 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.65, i64 0, i64 0))
%266 = tail call i64 (...) @rdtsc()
%267 = tail call i64 (...) @rdtsc()
%268 = tail call i64 (...) @rdtsc()
%269 = tail call i64 (...) @rdtsc()
%270 = add i64 %267, %268
%271 = sub i64 %266, %270
%272 = add i64 %271, %269
%273 = udiv i64 %272, 999999000
%274 = tail call double (i8*, i64, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.64, i64 0, i64 0), i64 %273)
ret i32 0
}