#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 */
int EXIT_SUCCESS;
int errorgen();
int lround(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ setbuf(int /*<<< orphan*/, int /*<<< orphan*/ *);
int /*<<< orphan*/ srandom(int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(void) {
  unsigned long long pktcnt_100error = 0, pktcnt_1000error = 0,
                     bitcnt_100error = 0, bitcnt_1000error = 0;
  unsigned long long bitcnt_ok = 0, bitcnt_total = 0;
  int berror100 = 0, berror1000 = 0;
  unsigned long long packets = 0;
  int bit = 0;
  int cbiterror = 0;
  int temp;
  setbuf(stdout, NULL);
  printf("Starting..\n  Packets to send: %d\n", 100000);
  printf("  Frame size: %d bytes (%d bits)\n", (124 * 8) / 8, (124 * 8));
  printf("  Requested BER: %.04f%%\n", 0.01);
  printf("  Error burstsize: %d\n", 2);
  printf("  Linkutil for 100Mbit: %d%%\n", 20);
  printf("  IPG on SGMII: %d bits\n\n",
         (int)(lround((124 * 8) / (20 / 10 / 100.0) - (124 * 8))));
  srandom(time(NULL));
  while (packets++ < 100000) {
    while (bit <
           ((124 * 8) + (lround((124 * 8) / (20 / 10 / 100.0) - (124 * 8))))) {
      cbiterror = errorgen();
      if (cbiterror == 0) {
        bit++;
        bitcnt_ok++;
        continue;
      }
      if (bit >= ((124 * 8) * 10)) {
        bit++;
        continue;
      }
      if (bit < (124 * 8)) {
        berror1000++;
      }
      temp = bit % (8 * 10);
      if (temp <= 7) {
        berror100++;
      }
      bit++;
    }
    bitcnt_100error += berror100;
    bitcnt_1000error += berror1000;
    if (berror100)
      pktcnt_100error++;
    if (berror1000)
      pktcnt_1000error++;
    bitcnt_total += bit;
    berror100 = 0;
    berror1000 = 0;
    bit = 0;
    if (packets % 1000 == 0)
      printf(".");
    if (packets % 100000 == 0)
      printf("\n");
  }
  printf("\n\nFinished\n");
  printf("  Total bits sent %llu\n", bitcnt_total);
  printf("  Total bit errors\n");
  printf("    in 100Mbit:%llu\n", bitcnt_100error);
  printf("    in 1000Mbits:%llu\n", bitcnt_1000error);
  printf("    including idle:%llu\n", bitcnt_total - bitcnt_ok);
  printf("  Total frame errors\n");
  printf("    in 100Mbit:%llu\n", pktcnt_100error);
  printf("    in 1000Mbits:%llu\n\n", pktcnt_1000error);
  printf("BLER(%%)\n");
  printf("  100Mbit:%.05f\n", ((float)pktcnt_100error) / 100000 * 100);
  printf("  1000Mbit:%.05f\n\n", ((float)pktcnt_1000error) / 100000 * 100);
  printf("BER(%%)\n");
  printf("  100Mbit:%.05f\n",
         ((float)bitcnt_100error) / (100000 * (124 * 8)) * 100);
  printf("  1000Mbit:%.05f\n",
         ((float)bitcnt_1000error) / (100000 * (124 * 8)) * 100);
  printf("  Including idle:%.05f\n",
         (1.0 - (float)bitcnt_ok / bitcnt_total) * 100);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
movq   $0x0,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x50(%rbp)
mov    0x2e13(%rip),%rax
mov    (%rax),%edi
xor    %eax,%eax
mov    %eax,%esi
call   1050 <setbuf@plt>
lea    0xe45(%rip),%rdi
mov    $0x186a0,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe54(%rip),%rdi
mov    $0x7c,%esi
mov    $0x3e0,%edx
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe5e(%rip),%rdi
movsd  0xdee(%rip),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xe62(%rip),%rdi
mov    $0x2,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe66(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0xbde0,%edi
call   1040 <lround@plt>
mov    %eax,%esi
lea    0xe65(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1070 <time@plt>
mov    %eax,%edi
call   1030 <srandom@plt>
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x48(%rbp)
cmp    $0x186a0,%rax
jae    13f0 <main+0x290>
jmp    1289 <main+0x129>
mov    -0x4c(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    $0xbde0,%edi
call   1040 <lround@plt>
mov    %eax,%ecx
mov    -0x58(%rbp),%eax
add    $0x3e0,%ecx
cmp    %ecx,%eax
jge    133a <main+0x1da>
mov    $0x0,%al
call   1080 <errorgen@plt>
mov    %eax,-0x50(%rbp)
cmpl   $0x0,-0x50(%rbp)
jne    12da <main+0x17a>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1289 <main+0x129>
cmpl   $0x26c0,-0x4c(%rbp)
jl     12f5 <main+0x195>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1289 <main+0x129>
cmpl   $0x3e0,-0x4c(%rbp)
jge    130b <main+0x1ab>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
mov    -0x4c(%rbp),%eax
mov    $0x50,%ecx
cltd
idiv   %ecx
mov    %edx,-0x54(%rbp)
cmpl   $0x7,-0x54(%rbp)
jg     132c <main+0x1cc>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1289 <main+0x129>
movslq -0x3c(%rbp),%rax
add    -0x20(%rbp),%rax
mov    %rax,-0x20(%rbp)
movslq -0x40(%rbp),%rax
add    -0x28(%rbp),%rax
mov    %rax,-0x28(%rbp)
cmpl   $0x0,-0x3c(%rbp)
je     1368 <main+0x208>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
cmpl   $0x0,-0x40(%rbp)
je     137e <main+0x21e>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
movslq -0x4c(%rbp),%rax
add    -0x38(%rbp),%rax
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    -0x48(%rbp),%rax
mov    $0x3e8,%ecx
xor    %edx,%edx
div    %rcx
cmp    $0x0,%rdx
jne    13c5 <main+0x265>
lea    0xd13(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%rax
mov    $0x186a0,%ecx
xor    %edx,%edx
div    %rcx
cmp    $0x0,%rdx
jne    13eb <main+0x28b>
lea    0xdc6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1269 <main+0x109>
lea    0xcdc(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x61(%rbp)
call   1060 <printf@plt>
mov    -0x61(%rbp),%al
mov    -0x38(%rbp),%rsi
lea    0xcd0(%rip),%rdi
call   1060 <printf@plt>
mov    -0x61(%rbp),%al
lea    0xcd9(%rip),%rdi
call   1060 <printf@plt>
mov    -0x61(%rbp),%al
mov    -0x20(%rbp),%rsi
lea    0xcda(%rip),%rdi
mov    %rdi,-0x70(%rbp)
call   1060 <printf@plt>
mov    -0x61(%rbp),%al
mov    -0x28(%rbp),%rsi
lea    0xcd8(%rip),%rdi
call   1060 <printf@plt>
mov    -0x61(%rbp),%al
mov    -0x38(%rbp),%rsi
mov    -0x30(%rbp),%rcx
sub    %rcx,%rsi
lea    0xcd5(%rip),%rdi
call   1060 <printf@plt>
mov    -0x61(%rbp),%al
lea    0xcdf(%rip),%rdi
call   1060 <printf@plt>
mov    -0x70(%rbp),%rdi
mov    -0x61(%rbp),%al
mov    -0x10(%rbp),%rsi
call   1060 <printf@plt>
mov    -0x61(%rbp),%al
mov    -0x18(%rbp),%rsi
lea    0xcd2(%rip),%rdi
call   1060 <printf@plt>
mov    -0x61(%rbp),%al
lea    0xcdb(%rip),%rdi
call   1060 <printf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
shr    %rdx
mov    %eax,%ecx
and    $0x1,%ecx
or     %rdx,%rcx
cvtsi2ss %rcx,%xmm0
addss  %xmm0,%xmm0
cvtsi2ss %rax,%xmm1
movss  %xmm1,-0x60(%rbp)
test   %rax,%rax
movss  %xmm0,-0x5c(%rbp)
js     14e5 <main+0x385>
movss  -0x60(%rbp),%xmm0
movss  %xmm0,-0x5c(%rbp)
movss  -0x5c(%rbp),%xmm0
movss  0xb26(%rip),%xmm1
movss  %xmm1,-0x90(%rbp)
ff
divss  %xmm1,%xmm0
movss  0xb16(%rip),%xmm1
movss  %xmm1,-0x8c(%rbp)
ff
mulss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc6b(%rip),%rdi
mov    %rdi,-0x88(%rbp)
mov    $0x1,%al
mov    %al,-0x79(%rbp)
call   1060 <printf@plt>
mov    -0x18(%rbp),%rax
mov    %rax,%rdx
shr    %rdx
mov    %eax,%ecx
and    $0x1,%ecx
or     %rdx,%rcx
cvtsi2ss %rcx,%xmm0
addss  %xmm0,%xmm0
cvtsi2ss %rax,%xmm1
movss  %xmm1,-0x78(%rbp)
test   %rax,%rax
movss  %xmm0,-0x74(%rbp)
js     156b <main+0x40b>
movss  -0x78(%rbp),%xmm0
movss  %xmm0,-0x74(%rbp)
mov    -0x79(%rbp),%al
movss  -0x8c(%rbp),%xmm1
ff
movss  -0x90(%rbp),%xmm2
ff
movss  -0x74(%rbp),%xmm0
divss  %xmm2,%xmm0
mulss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc03(%rip),%rdi
call   1060 <printf@plt>
mov    -0x61(%rbp),%al
lea    0xc07(%rip),%rdi
call   1060 <printf@plt>
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
shr    %rdx
mov    %eax,%ecx
and    $0x1,%ecx
or     %rdx,%rcx
cvtsi2ss %rcx,%xmm0
addss  %xmm0,%xmm0
cvtsi2ss %rax,%xmm1
movss  %xmm1,-0x98(%rbp)
ff
test   %rax,%rax
movss  %xmm0,-0x94(%rbp)
ff
js     15f3 <main+0x493>
movss  -0x98(%rbp),%xmm0
ff
movss  %xmm0,-0x94(%rbp)
ff
mov    -0x79(%rbp),%al
mov    -0x88(%rbp),%rdi
movss  -0x8c(%rbp),%xmm1
ff
movss  -0x94(%rbp),%xmm0
ff
movss  0xa0b(%rip),%xmm2
movss  %xmm2,-0xa4(%rbp)
ff
divss  %xmm2,%xmm0
mulss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
call   1060 <printf@plt>
mov    -0x28(%rbp),%rax
mov    %rax,%rdx
shr    %rdx
mov    %eax,%ecx
and    $0x1,%ecx
or     %rdx,%rcx
cvtsi2ss %rcx,%xmm0
addss  %xmm0,%xmm0
cvtsi2ss %rax,%xmm1
movss  %xmm1,-0xa0(%rbp)
ff
test   %rax,%rax
movss  %xmm0,-0x9c(%rbp)
ff
js     1677 <main+0x517>
movss  -0xa0(%rbp),%xmm0
ff
movss  %xmm0,-0x9c(%rbp)
ff
mov    -0x79(%rbp),%al
movss  -0x8c(%rbp),%xmm1
ff
movss  -0xa4(%rbp),%xmm2
ff
movss  -0x9c(%rbp),%xmm0
ff
divss  %xmm2,%xmm0
mulss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb10(%rip),%rdi
call   1060 <printf@plt>
mov    -0x30(%rbp),%rax
mov    %rax,%rdx
shr    %rdx
mov    %eax,%ecx
and    $0x1,%ecx
or     %rdx,%rcx
cvtsi2ss %rcx,%xmm0
addss  %xmm0,%xmm0
cvtsi2ss %rax,%xmm1
movss  %xmm1,-0xac(%rbp)
ff
test   %rax,%rax
movss  %xmm0,-0xa8(%rbp)
ff
js     16f3 <main+0x593>
movss  -0xac(%rbp),%xmm0
ff
movss  %xmm0,-0xa8(%rbp)
ff
movss  -0xa8(%rbp),%xmm0
ff
movss  %xmm0,-0xb8(%rbp)
ff
mov    -0x38(%rbp),%rax
mov    %rax,%rdx
shr    %rdx
mov    %eax,%ecx
and    $0x1,%ecx
or     %rdx,%rcx
cvtsi2ss %rcx,%xmm0
addss  %xmm0,%xmm0
cvtsi2ss %rax,%xmm1
movss  %xmm1,-0xb4(%rbp)
ff
test   %rax,%rax
movss  %xmm0,-0xb0(%rbp)
ff
js     174c <main+0x5ec>
movss  -0xb4(%rbp),%xmm0
ff
movss  %xmm0,-0xb0(%rbp)
ff
movss  -0xb8(%rbp),%xmm0
ff
movss  -0xb0(%rbp),%xmm1
ff
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0x8a4(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  0x890(%rip),%xmm1
mulsd  %xmm1,%xmm0
lea    0xa44(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    0x2847(%rip),%rax
mov    (%rax),%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    0x2e4b(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   1070 <setbuf@plt>
lea    0xe7f(%rip),%rdi
mov    $0x186a0,%esi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xe8e(%rip),%rdi
mov    $0x7c,%esi
mov    $0x3e0,%edx
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xe98(%rip),%rdi
movsd  0xe28(%rip),%xmm0
mov    $0x1,%al
call   1080 <printf@plt>
lea    0xe9c(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xea0(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1080 <printf@plt>
mov    $0xbde0,%edi
call   1050 <lround@plt>
lea    0xea1(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %edi,%edi
call   1090 <time@plt>
mov    %eax,%edi
call   1040 <srandom@plt>
mov    $0x1,%r12d
xor    %eax,%eax
mov    %rax,0x20(%rsp)
xor    %r14d,%r14d
xor    %eax,%eax
mov    %rax,0x18(%rsp)
xor    %r15d,%r15d
xor    %ebp,%ebp
xor    %eax,%eax
mov    %rax,0x28(%rsp)
jmp    128c <main+0x10c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movslq %ebp,%rax
mov    0x30(%rsp),%rbp
add    %rax,%rbp
movslq %r13d,%rax
add    %rax,%r15
movslq %ebx,%rax
add    %rax,%r14
lea    0x1(%r12),%rax
cmp    $0x186a0,%r12
mov    %rax,%r12
je     13e1 <main+0x261>
mov    %rbp,0x30(%rsp)
mov    $0xbde0,%edi
call   1050 <lround@plt>
cmp    $0xfffffc21,%eax
jl     1390 <main+0x210>
mov    %r15,0x8(%rsp)
mov    %r14,0x10(%rsp)
xor    %r15d,%r15d
xor    %r13d,%r13d
xor    %ebp,%ebp
mov    %r15d,%r14d
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   10a0 <errorgen@plt>
test   %eax,%eax
je     1300 <main+0x180>
cmp    $0x26c0,%r15d
jl     1320 <main+0x1a0>
lea    0x1(%r14),%ebx
mov    $0xbde0,%edi
call   1050 <lround@plt>
add    $0x3df,%eax
cmp    %eax,%r14d
mov    %ebx,%r14d
jl     12c0 <main+0x140>
jmp    1380 <main+0x200>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0x1(%r14),%r15d
addq   $0x1,0x18(%rsp)
mov    $0xbde0,%edi
call   1050 <lround@plt>
add    $0x3df,%eax
cmp    %eax,%r14d
jl     12b8 <main+0x138>
jmp    1375 <main+0x1f5>
xor    %eax,%eax
cmp    $0x3e0,%r14d
setl   %al
add    %eax,%r13d
movslq %r14d,%rbx
imul   $0x66666667,%rbx,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x25,%rax
add    %ecx,%eax
shl    $0x4,%eax
lea    (%rax,%rax,4),%eax
mov    %ebx,%ecx
sub    %eax,%ecx
xor    %eax,%eax
cmp    $0x8,%ecx
setl   %al
add    %eax,%ebp
lea    0x1(%rbx),%r15d
mov    $0xbde0,%edi
call   1050 <lround@plt>
add    $0x3df,%eax
cmp    %eax,%ebx
jl     12b8 <main+0x138>
add    $0x1,%r14d
mov    %r14d,%ebx
nopl   0x0(%rax)
mov    0x10(%rsp),%r14
mov    0x8(%rsp),%r15
jmp    1397 <main+0x217>
nopl   0x0(%rax)
xor    %ebp,%ebp
xor    %r13d,%r13d
xor    %ebx,%ebx
cmp    $0x1,%ebp
sbbq   $0xffffffffffffffff,0x20(%rsp)
cmp    $0x1,%r13d
sbbq   $0xffffffffffffffff,0x28(%rsp)
mov    %r12,%rax
movabs $0x1cac083126e978d5,%rcx
08 ac 1c
imul   %rcx,%rax
ror    $0x3,%rax
movabs $0x4189374bc6a7ef,%rcx
cmp    %rcx,%rax
ja     1260 <main+0xe0>
mov    $0x2e,%edi
call   1030 <putchar@plt>
jmp    1260 <main+0xe0>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xdb5(%rip),%rdi
call   1060 <puts@plt>
lea    0xcd3(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xda3(%rip),%rdi
call   1060 <puts@plt>
lea    0xcce(%rip),%rbx
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xccf(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %r14,%rsi
mov    0x18(%rsp),%r12
sub    %r12,%rsi
lea    0xcca(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xd6c(%rip),%rdi
call   1060 <puts@plt>
mov    %rbx,%rdi
mov    0x20(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xcb7(%rip),%rdi
mov    0x28(%rsp),%r13
mov    %r13,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xcb9(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
test   %rbx,%rbx
js     14a0 <main+0x320>
cvtsi2ss %rbx,%xmm0
jmp    14b5 <main+0x335>
mov    %rbx,%rax
shr    %rax
and    $0x1,%ebx
or     %rax,%rbx
cvtsi2ss %rbx,%xmm0
addss  %xmm0,%xmm0
divss  0xb5b(%rip),%xmm0
mulss  0xb57(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc80(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
test   %r13,%r13
js     14e9 <main+0x369>
xorps  %xmm0,%xmm0
cvtsi2ss %r13,%xmm0
jmp    1502 <main+0x382>
mov    %r13,%rax
shr    %rax
and    $0x1,%r13d
or     %rax,%r13
xorps  %xmm0,%xmm0
cvtsi2ss %r13,%xmm0
addss  %xmm0,%xmm0
divss  0xb0e(%rip),%xmm0
mulss  0xb0a(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc44(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
lea    0xc49(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
test   %rbp,%rbp
js     1541 <main+0x3c1>
xorps  %xmm0,%xmm0
cvtsi2ss %rbp,%xmm0
jmp    1559 <main+0x3d9>
mov    %rbp,%rax
shr    %rax
and    $0x1,%ebp
or     %rax,%rbp
xorps  %xmm0,%xmm0
cvtsi2ss %rbp,%xmm0
addss  %xmm0,%xmm0
divss  0xabf(%rip),%xmm0
mulss  0xab3(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
test   %r15,%r15
js     1586 <main+0x406>
xorps  %xmm0,%xmm0
cvtsi2ss %r15,%xmm0
jmp    159f <main+0x41f>
mov    %r15,%rax
shr    %rax
and    $0x1,%r15d
or     %rax,%r15
xorps  %xmm0,%xmm0
cvtsi2ss %r15,%xmm0
addss  %xmm0,%xmm0
divss  0xa79(%rip),%xmm0
mulss  0xa6d(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbc3(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
test   %r12,%r12
js     15eb <main+0x46b>
xorps  %xmm0,%xmm0
cvtsi2ss %r12,%xmm0
test   %r14,%r14
jns    1609 <main+0x489>
mov    %r14,%rax
shr    %rax
and    $0x1,%r14d
or     %rax,%r14
cvtsi2ss %r14,%xmm1
addss  %xmm1,%xmm1
jmp    160e <main+0x48e>
mov    %r12,%rax
shr    %rax
and    $0x1,%r12d
or     %rax,%r12
xorps  %xmm0,%xmm0
cvtsi2ss %r12,%xmm0
addss  %xmm0,%xmm0
test   %r14,%r14
js     15d3 <main+0x453>
cvtsi2ss %r14,%xmm1
divss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movsd  0x9e7(%rip),%xmm0
subsd  %xmm1,%xmm0
mulsd  0x9e3(%rip),%xmm0
lea    0xb5b(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x2996(%rip),%rax
mov    (%rax),%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [34 x i8] c"Starting..\0A Packets to send: %d\0A\00"
@.str.1 = [34 x i8] c" Frame size: %d bytes (%d bits)\0A\00"
@.str.2 = [26 x i8] c" Requested BER: %.04f%%\0A\00"
@.str.3 = [23 x i8] c" Error burstsize: %d\0A\00"
@.str.4 = [30 x i8] c" Linkutil for 100Mbit: %d%%\0A\00"
@.str.5 = [26 x i8] c" IPG on SGMII: %d bits\0A\0A\00"
@.str.6 = [2 x i8] c".\00"
@.str.7 = [2 x i8] c"\0A\00"
@.str.8 = [12 x i8] c"\0A\0AFinished\0A\00"
@.str.9 = [24 x i8] c" Total bits sent %llu\0A\00"
@.str.10 = [20 x i8] c" Total bit errors\0A\00"
@.str.11 = [21 x i8] c" in 100Mbit:%llu\0A\00"
@.str.12 = [23 x i8] c" in 1000Mbits:%llu\0A\00"
@.str.13 = [25 x i8] c" including idle:%llu\0A\00"
@.str.14 = [22 x i8] c" Total frame errors\0A\00"
@.str.15 = [24 x i8] c" in 1000Mbits:%llu\0A\0A\00"
@.str.16 = [10 x i8] c"BLER(%%)\0A\00"
@.str.17 = [17 x i8] c" 100Mbit:%.05f\0A\00"
@.str.18 = [19 x i8] c" 1000Mbit:%.05f\0A\0A\00"
@.str.19 = [9 x i8] c"BER(%%)\0A\00"
@.str.20 = [18 x i8] c" 1000Mbit:%.05f\0A\00"
@.str.21 = [24 x i8] c" Including idle:%.05f\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i32
%9 = alloca i32
%10 = alloca i64
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %1
store i64 0, i64* %2
store i64 0, i64* %3
store i64 0, i64* %4
store i64 0, i64* %5
store i64 0, i64* %6
store i64 0, i64* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i64 0, i64* %10
store i32 0, i32* %11
store i32 0, i32* %12
%14 = load i32, i32* @stdout
%15 = call i32 @setbuf(i32 %14, i32* null)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i32 100000)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i32 124, i32 992)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), double 1.000000e-02)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 2)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 20)
%21 = call i32 @lround(i32 48608)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i32 %21)
%23 = call i32 @time(i32* null)
%24 = call i32 @srandom(i32 %23)
br label %25
25: ; preds = %103, %0
%26 = load i64, i64* %10
%27 = add i64 %26, 1
store i64 %27, i64* %10
%28 = icmp ult i64 %26, 100000
br i1 %28, label %29, label %104
29: ; preds = %25
br label %30
30: ; preds = %64, %47, %39, %29
%31 = load i32, i32* %11
%32 = call i32 @lround(i32 48608)
%33 = add nsw i32 992, %32
%34 = icmp slt i32 %31, %33
br i1 %34, label %35, label %67
35: ; preds = %30
%36 = call i32 (...) @errorgen()
store i32 %36, i32* %12
%37 = load i32, i32* %12
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %44
39: ; preds = %35
%40 = load i32, i32* %11
%41 = add nsw i32 %40, 1
store i32 %41, i32* %11
%42 = load i64, i64* %6
%43 = add i64 %42, 1
store i64 %43, i64* %6
br label %30
44: ; preds = %35
%45 = load i32, i32* %11
%46 = icmp sge i32 %45, 9920
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = load i32, i32* %11
%49 = add nsw i32 %48, 1
store i32 %49, i32* %11
br label %30
50: ; preds = %44
%51 = load i32, i32* %11
%52 = icmp slt i32 %51, 992
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = load i32, i32* %9
%55 = add nsw i32 %54, 1
store i32 %55, i32* %9
br label %56
56: ; preds = %53, %50
%57 = load i32, i32* %11
%58 = srem i32 %57, 80
store i32 %58, i32* %13
%59 = load i32, i32* %13
%60 = icmp sle i32 %59, 7
br i1 %60, label %61, label %64
61: ; preds = %56
%62 = load i32, i32* %8
%63 = add nsw i32 %62, 1
store i32 %63, i32* %8
br label %64
64: ; preds = %61, %56
%65 = load i32, i32* %11
%66 = add nsw i32 %65, 1
store i32 %66, i32* %11
br label %30
67: ; preds = %30
%68 = load i32, i32* %8
%69 = sext i32 %68 to i64
%70 = load i64, i64* %4
%71 = add i64 %70, %69
store i64 %71, i64* %4
%72 = load i32, i32* %9
%73 = sext i32 %72 to i64
%74 = load i64, i64* %5
%75 = add i64 %74, %73
store i64 %75, i64* %5
%76 = load i32, i32* %8
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %81
78: ; preds = %67
%79 = load i64, i64* %2
%80 = add i64 %79, 1
store i64 %80, i64* %2
br label %81
81: ; preds = %78, %67
%82 = load i32, i32* %9
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %87
84: ; preds = %81
%85 = load i64, i64* %3
%86 = add i64 %85, 1
store i64 %86, i64* %3
br label %87
87: ; preds = %84, %81
%88 = load i32, i32* %11
%89 = sext i32 %88 to i64
%90 = load i64, i64* %7
%91 = add i64 %90, %89
store i64 %91, i64* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %11
%92 = load i64, i64* %10
%93 = urem i64 %92, 1000
%94 = icmp eq i64 %93, 0
br i1 %94, label %95, label %97
95: ; preds = %87
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %97
97: ; preds = %95, %87
%98 = load i64, i64* %10
%99 = urem i64 %98, 100000
%100 = icmp eq i64 %99, 0
br i1 %100, label %101, label %103
101: ; preds = %97
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %103
103: ; preds = %101, %97
br label %25
104: ; preds = %25
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%106 = load i64, i64* %7
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), i64 %106)
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
%109 = load i64, i64* %4
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i64 %109)
%111 = load i64, i64* %5
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i64 %111)
%113 = load i64, i64* %7
%114 = load i64, i64* %6
%115 = sub i64 %113, %114
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0), i64 %115)
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0))
%118 = load i64, i64* %2
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i64 %118)
%120 = load i64, i64* %3
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0), i64 %120)
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0))
%123 = load i64, i64* %2
%124 = uitofp i64 %123 to float
%125 = fdiv float %124, 1.000000e+05
%126 = fmul float %125, 1.000000e+02
%127 = fpext float %126 to double
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.17, i64 0, i64 0), double %127)
%129 = load i64, i64* %3
%130 = uitofp i64 %129 to float
%131 = fdiv float %130, 1.000000e+05
%132 = fmul float %131, 1.000000e+02
%133 = fpext float %132 to double
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.18, i64 0, i64 0), double %133)
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0))
%136 = load i64, i64* %4
%137 = uitofp i64 %136 to float
%138 = fdiv float %137, 9.920000e+07
%139 = fmul float %138, 1.000000e+02
%140 = fpext float %139 to double
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.17, i64 0, i64 0), double %140)
%142 = load i64, i64* %5
%143 = uitofp i64 %142 to float
%144 = fdiv float %143, 9.920000e+07
%145 = fmul float %144, 1.000000e+02
%146 = fpext float %145 to double
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0), double %146)
%148 = load i64, i64* %6
%149 = uitofp i64 %148 to float
%150 = load i64, i64* %7
%151 = uitofp i64 %150 to float
%152 = fdiv float %149, %151
%153 = fpext float %152 to double
%154 = fsub double 1.000000e+00, %153
%155 = fmul double %154, 1.000000e+02
%156 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.21, i64 0, i64 0), double %155)
%157 = load i32, i32* @EXIT_SUCCESS
ret i32 %157
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [34 x i8] c"Starting..\0A Packets to send: %d\0A\00"
@.str.1 = [34 x i8] c" Frame size: %d bytes (%d bits)\0A\00"
@.str.2 = [26 x i8] c" Requested BER: %.04f%%\0A\00"
@.str.3 = [23 x i8] c" Error burstsize: %d\0A\00"
@.str.4 = [30 x i8] c" Linkutil for 100Mbit: %d%%\0A\00"
@.str.5 = [26 x i8] c" IPG on SGMII: %d bits\0A\0A\00"
@.str.9 = [24 x i8] c" Total bits sent %llu\0A\00"
@.str.11 = [21 x i8] c" in 100Mbit:%llu\0A\00"
@.str.12 = [23 x i8] c" in 1000Mbits:%llu\0A\00"
@.str.13 = [25 x i8] c" including idle:%llu\0A\00"
@.str.15 = [24 x i8] c" in 1000Mbits:%llu\0A\0A\00"
@.str.16 = [10 x i8] c"BLER(%%)\0A\00"
@.str.17 = [17 x i8] c" 100Mbit:%.05f\0A\00"
@.str.18 = [19 x i8] c" 1000Mbit:%.05f\0A\0A\00"
@.str.19 = [9 x i8] c"BER(%%)\0A\00"
@.str.20 = [18 x i8] c" 1000Mbit:%.05f\0A\00"
@.str.21 = [24 x i8] c" Including idle:%.05f\0A\00"
@EXIT_SUCCESS = global i32 0
@str = [11 x i8] c"\0A\0AFinished\00"
@str.22 = [19 x i8] c" Total bit errors\00"
@str.23 = [21 x i8] c" Total frame errors\00"
define i32 @main() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @setbuf(i32 %1, i32* null)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i32 100000)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i32 124, i32 992)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), double 1.000000e-02)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 2)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 20)
%8 = tail call i32 @lround(i32 48608)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i32 %8)
%10 = tail call i32 @time(i32* null)
%11 = tail call i32 @srandom(i32 %10)
br label %12
12: ; preds = %81, %0
%13 = phi i64 [ 1, %0 ], [ %83, %81 ]
%14 = phi i64 [ 0, %0 ], [ %71, %81 ]
%15 = phi i64 [ 0, %0 ], [ %76, %81 ]
%16 = phi i64 [ 0, %0 ], [ %61, %81 ]
%17 = phi i64 [ 0, %0 ], [ %68, %81 ]
%18 = phi i64 [ 0, %0 ], [ %66, %81 ]
%19 = phi i64 [ 0, %0 ], [ %74, %81 ]
%20 = tail call i32 @lround(i32 48608)
%21 = icmp sgt i32 %20, -992
br i1 %21, label %22, label %60
22: ; preds = %12, %36
%23 = phi i32 [ %37, %36 ], [ 0, %12 ]
%24 = phi i32 [ %29, %36 ], [ 0, %12 ]
%25 = phi i32 [ %30, %36 ], [ 0, %12 ]
%26 = phi i64 [ %38, %36 ], [ %16, %12 ]
br label %27
27: ; preds = %22, %48
%28 = phi i32 [ %23, %22 ], [ %56, %48 ]
%29 = phi i32 [ %24, %22 ], [ %51, %48 ]
%30 = phi i32 [ %25, %22 ], [ %55, %48 ]
%31 = icmp sgt i32 %28, 9919
br label %32
32: ; preds = %27, %43
%33 = phi i32 [ %28, %27 ], [ %44, %43 ]
%34 = tail call i32 (...) @errorgen()
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %42
36: ; preds = %32
%37 = add nsw i32 %33, 1
%38 = add i64 %26, 1
%39 = tail call i32 @lround(i32 48608)
%40 = add nsw i32 %39, 991
%41 = icmp slt i32 %33, %40
br i1 %41, label %22, label %60
42: ; preds = %32
br i1 %31, label %43, label %48
43: ; preds = %42
%44 = add nuw nsw i32 %33, 1
%45 = tail call i32 @lround(i32 48608)
%46 = add nsw i32 %45, 991
%47 = icmp slt i32 %33, %46
br i1 %47, label %32, label %60
48: ; preds = %42
%49 = icmp slt i32 %33, 992
%50 = zext i1 %49 to i32
%51 = add nsw i32 %29, %50
%52 = srem i32 %33, 80
%53 = icmp slt i32 %52, 8
%54 = zext i1 %53 to i32
%55 = add nsw i32 %30, %54
%56 = add nsw i32 %33, 1
%57 = tail call i32 @lround(i32 48608)
%58 = add nsw i32 %57, 991
%59 = icmp slt i32 %33, %58
br i1 %59, label %27, label %60
60: ; preds = %36, %48, %43, %12
%61 = phi i64 [ %16, %12 ], [ %26, %43 ], [ %26, %48 ], [ %38, %36 ]
%62 = phi i32 [ 0, %12 ], [ %30, %43 ], [ %55, %48 ], [ %30, %36 ]
%63 = phi i32 [ 0, %12 ], [ %29, %43 ], [ %51, %48 ], [ %29, %36 ]
%64 = phi i32 [ 0, %12 ], [ %44, %43 ], [ %56, %48 ], [ %37, %36 ]
%65 = sext i32 %62 to i64
%66 = add i64 %18, %65
%67 = sext i32 %63 to i64
%68 = add i64 %17, %67
%69 = icmp ne i32 %62, 0
%70 = zext i1 %69 to i64
%71 = add i64 %14, %70
%72 = icmp ne i32 %63, 0
%73 = zext i1 %72 to i64
%74 = add i64 %19, %73
%75 = sext i32 %64 to i64
%76 = add i64 %15, %75
%77 = urem i64 %13, 1000
%78 = icmp eq i64 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %60
%80 = tail call i32 @putchar(i32 46)
br label %81
81: ; preds = %79, %60
%82 = icmp eq i64 %13, 100000
%83 = add nuw nsw i64 %13, 1
br i1 %82, label %84, label %12
84: ; preds = %81
%85 = tail call i32 @putchar(i32 10)
%86 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%87 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), i64 %76)
%88 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.22, i64 0, i64 0))
%89 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i64 %66)
%90 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i64 %68)
%91 = sub i64 %76, %61
%92 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0), i64 %91)
%93 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.23, i64 0, i64 0))
%94 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i64 %71)
%95 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0), i64 %74)
%96 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0))
%97 = uitofp i64 %71 to float
%98 = fdiv float %97, 1.000000e+05
%99 = fmul float %98, 1.000000e+02
%100 = fpext float %99 to double
%101 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.17, i64 0, i64 0), double %100)
%102 = uitofp i64 %74 to float
%103 = fdiv float %102, 1.000000e+05
%104 = fmul float %103, 1.000000e+02
%105 = fpext float %104 to double
%106 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.18, i64 0, i64 0), double %105)
%107 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0))
%108 = uitofp i64 %66 to float
%109 = fdiv float %108, 9.920000e+07
%110 = fmul float %109, 1.000000e+02
%111 = fpext float %110 to double
%112 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.17, i64 0, i64 0), double %111)
%113 = uitofp i64 %68 to float
%114 = fdiv float %113, 9.920000e+07
%115 = fmul float %114, 1.000000e+02
%116 = fpext float %115 to double
%117 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0), double %116)
%118 = uitofp i64 %61 to float
%119 = uitofp i64 %76 to float
%120 = fdiv float %118, %119
%121 = fpext float %120 to double
%122 = fsub double 1.000000e+00, %121
%123 = fmul double %122, 1.000000e+02
%124 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.21, i64 0, i64 0), double %123)
%125 = load i32, i32* @EXIT_SUCCESS
ret i32 %125
}