#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 */
struct option {
  char *member_0;
  char member_3;
  int /*<<< orphan*/ *member_2;
  int /*<<< orphan*/ const member_1;
};

/* Variables and functions */
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ abort();
long double atof(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ free(char *);
int getline(char **, size_t *, int /*<<< orphan*/);
int getopt_long(int, char **, char *, struct option *, int *);
#define no_argument 128
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdin;
int main(int argc, char *argv[]) {
  int opt_sum = 0;
  int opt_avg = 0;
  int opt_num = 0;
  int opt_hlp = 0;
  int opt_ver = 0;
  int opt_max = 0;
  int opt_min = 0;
  int c;
  while (1) {
    static struct option long_options[] = {{"avg", no_argument, NULL, 'a'},
                                           {"count", no_argument, NULL, 'n'},
                                           {"num", no_argument, NULL, 'n'},
                                           {"sum", no_argument, NULL, 's'},
                                           {"max", no_argument, NULL, 'M'},
                                           {"min", no_argument, NULL, 'm'},
                                           {"help", no_argument, NULL, 200},
                                           {"version", no_argument, NULL, 201},
                                           {0, 0, 0, 0}};
    int option_index = 0;
    c = getopt_long(argc, argv, "achMmns", long_options, &option_index);
    if (c == -1)
      break;
    switch (c) {
    case 0:
      break;
    case 'a':
      opt_avg = 1;
      break;
    case 'c':
      opt_num = 1;
      break;
    case 'n':
      opt_num = 1;
      break;
    case 's':
      opt_sum = 1;
      break;
    case 'M':
      opt_max = 1;
      break;
    case 'm':
      opt_min = 1;
      break;
    case 200:
      opt_hlp = 1;
      break;
    case 201:
      opt_ver = 1;
      break;
    case '?':
      break;
    default:
      abort();
    }
  }
  if (opt_hlp) {
    printf("usage: stats [-acns]\n");
    printf("\n");
    printf("Options:\n");
    printf("	-a		Show average.\n");
    printf("	-c, -n  Show item count.\n");
    printf("	-s		Show sum.\n");
    printf("	-M		Show maximum.\n");
    printf("	-m		Show minimum.\n");
    printf("\n");
    exit(EXIT_SUCCESS);
  }
  if (opt_ver) {
    printf("stats v0.1\n");
    exit(EXIT_SUCCESS);
  }
  long double sum = 0;
  int num = 0;
  size_t l = 0;
  char *lineptr = NULL;
  long double max = 0;
  long double min = 0;
  if (getline(&lineptr, &l, stdin) != -1) {
    long double n = atof(lineptr);
    max = n;
    min = n;
    sum = n;
    num = 1;
  }
  while (getline(&lineptr, &l, stdin) != -1) {
    long double n = atof(lineptr);
    if (n > max)
      max = n;
    if (n < min)
      min = n;
    sum = sum + n;
    ++num;
  }
  free(lineptr);
  int opt_n = opt_sum + opt_num + opt_avg;
  if (opt_sum)
    printf("%s%LG\n", opt_n > 1 ? "sum....: " : "", sum);
  if (opt_num)
    printf("%s%d\n", opt_n > 1 ? "num....: " : "", num);
  if (opt_avg)
    printf("%s%LG\n", opt_n > 1 ? "avg....: " : "", sum / num);
  if (opt_max)
    printf("%s%LG\n", opt_n > 1 ? "max....: " : "", max);
  if (opt_min)
    printf("%s%LG\n", opt_n > 1 ? "min....: " : "", min);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe58(%rip),%rdx
lea    0x2e8a(%rip),%rcx
lea    -0x34(%rbp),%r8
call   1060 <getopt_long@plt>
mov    %eax,-0x30(%rbp)
cmpl   $0xffffffff,-0x30(%rbp)
jne    11f1 <main+0x81>
jmp    1335 <main+0x1c5>
mov    -0x30(%rbp),%eax
mov    %eax,-0xbc(%rbp)
test   %eax,%eax
je     12bf <main+0x14f>
jmp    1207 <main+0x97>
mov    -0xbc(%rbp),%eax
sub    $0x3f,%eax
je     1324 <main+0x1b4>
jmp    121b <main+0xab>
mov    -0xbc(%rbp),%eax
sub    $0x4d,%eax
je     12f4 <main+0x184>
jmp    122f <main+0xbf>
mov    -0xbc(%rbp),%eax
sub    $0x61,%eax
je     12c4 <main+0x154>
jmp    1243 <main+0xd3>
mov    -0xbc(%rbp),%eax
sub    $0x63,%eax
je     12d0 <main+0x160>
jmp    1257 <main+0xe7>
mov    -0xbc(%rbp),%eax
sub    $0x6d,%eax
je     1300 <main+0x190>
jmp    126b <main+0xfb>
mov    -0xbc(%rbp),%eax
sub    $0x6e,%eax
je     12dc <main+0x16c>
jmp    127f <main+0x10f>
mov    -0xbc(%rbp),%eax
sub    $0x73,%eax
je     12e8 <main+0x178>
jmp    1293 <main+0x123>
mov    -0xbc(%rbp),%eax
sub    $0xc8,%eax
je     130c <main+0x19c>
jmp    12a9 <main+0x139>
mov    -0xbc(%rbp),%eax
sub    $0xc9,%eax
je     1318 <main+0x1a8>
jmp    1329 <main+0x1b9>
jmp    1330 <main+0x1c0>
movl   $0x1,-0x18(%rbp)
jmp    1330 <main+0x1c0>
movl   $0x1,-0x1c(%rbp)
jmp    1330 <main+0x1c0>
movl   $0x1,-0x1c(%rbp)
jmp    1330 <main+0x1c0>
movl   $0x1,-0x14(%rbp)
jmp    1330 <main+0x1c0>
movl   $0x1,-0x28(%rbp)
jmp    1330 <main+0x1c0>
movl   $0x1,-0x2c(%rbp)
jmp    1330 <main+0x1c0>
movl   $0x1,-0x20(%rbp)
jmp    1330 <main+0x1c0>
movl   $0x1,-0x24(%rbp)
jmp    1330 <main+0x1c0>
jmp    1330 <main+0x1c0>
mov    $0x0,%al
call   1040 <abort@plt>
jmp    11ba <main+0x4a>
cmpl   $0x0,-0x20(%rbp)
je     13cb <main+0x25b>
lea    0xce9(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xd0d(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xce3(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xcdf(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xce5(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xcf2(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xcf4(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xcfa(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xcab(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    0x2c14(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
cmpl   $0x0,-0x24(%rbp)
je     13f1 <main+0x281>
lea    0xcda(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    0x2bee(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
fldz
fld    %st(0)
fstpt  -0x50(%rbp)
movl   $0x0,-0x54(%rbp)
movq   $0x0,-0x60(%rbp)
movq   $0x0,-0x68(%rbp)
fld    %st(0)
fstpt  -0x80(%rbp)
fstpt  -0x90(%rbp)
mov    0x2bc7(%rip),%rax
mov    (%rax),%edx
lea    -0x68(%rbp),%rdi
lea    -0x60(%rbp),%rsi
call   1080 <getline@plt>
cmp    $0xffffffff,%eax
je     146d <main+0x2fd>
mov    -0x68(%rbp),%rdi
call   1050 <atof@plt>
fstpt  -0xa0(%rbp)
fldt   -0xa0(%rbp)
fstpt  -0x80(%rbp)
fldt   -0xa0(%rbp)
fstpt  -0x90(%rbp)
fldt   -0xa0(%rbp)
fstpt  -0x50(%rbp)
movl   $0x1,-0x54(%rbp)
jmp    1472 <main+0x302>
mov    0x2b6f(%rip),%rax
mov    (%rax),%edx
lea    -0x68(%rbp),%rdi
lea    -0x60(%rbp),%rsi
call   1080 <getline@plt>
cmp    $0xffffffff,%eax
je     1506 <main+0x396>
mov    -0x68(%rbp),%rdi
call   1050 <atof@plt>
fstpt  -0xb0(%rbp)
fldt   -0xb0(%rbp)
fldt   -0x80(%rbp)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jbe    14c3 <main+0x353>
jmp    14ba <main+0x34a>
fldt   -0xb0(%rbp)
fstpt  -0x80(%rbp)
fldt   -0xb0(%rbp)
fldt   -0x90(%rbp)
fucomip %st(1),%st
fstp   %st(0)
jbe    14ea <main+0x37a>
jmp    14de <main+0x36e>
fldt   -0xb0(%rbp)
fstpt  -0x90(%rbp)
fldt   -0x50(%rbp)
fldt   -0xb0(%rbp)
faddp  %st,%st(1)
fstpt  -0x50(%rbp)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1472 <main+0x302>
mov    -0x68(%rbp),%rdi
call   1030 <free@plt>
mov    -0x14(%rbp),%eax
add    -0x1c(%rbp),%eax
add    -0x18(%rbp),%eax
mov    %eax,-0xb4(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1559 <main+0x3e9>
mov    -0xb4(%rbp),%eax
sub    $0x2,%eax
lea    0xb91(%rip),%rax
lea    0xb23(%rip),%rsi
cmovge %rax,%rsi
fldt   -0x50(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xb70(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
cmpl   $0x0,-0x1c(%rbp)
je     158f <main+0x41f>
mov    -0xb4(%rbp),%ecx
lea    0xaf2(%rip),%rsi
lea    0xb62(%rip),%rax
cmp    $0x1,%ecx
cmovg  %rax,%rsi
mov    -0x54(%rbp),%edx
lea    0xb4b(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
cmpl   $0x0,-0x18(%rbp)
je     15db <main+0x46b>
mov    -0xb4(%rbp),%eax
sub    $0x2,%eax
lea    0xb3a(%rip),%rax
lea    0xab2(%rip),%rsi
cmovge %rax,%rsi
fldt   -0x50(%rbp)
mov    -0x54(%rbp),%eax
mov    %eax,-0xb8(%rbp)
fildl  -0xb8(%rbp)
fdivrp %st,%st(1)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xaee(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
cmpl   $0x0,-0x28(%rbp)
je     1616 <main+0x4a6>
mov    -0xb4(%rbp),%eax
sub    $0x2,%eax
lea    0xaf8(%rip),%rax
lea    0xa66(%rip),%rsi
cmovge %rax,%rsi
fldt   -0x80(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xab3(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
cmpl   $0x0,-0x2c(%rbp)
je     1654 <main+0x4e4>
mov    -0xb4(%rbp),%eax
sub    $0x2,%eax
lea    0xac7(%rip),%rax
lea    0xa2b(%rip),%rsi
cmovge %rax,%rsi
fldt   -0x90(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xa75(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
movl   $0x0,0x40(%rsp)
lea    0xf49(%rip),%r14
lea    0x2eb7(%rip),%r15
lea    0x30(%rsp),%r12
lea    0xe3b(%rip),%r13
movl   $0x0,0x3c(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x0,0x1c(%rsp)
xor    %eax,%eax
mov    %rax,0x50(%rsp)
xor    %eax,%eax
mov    %rax,0x60(%rsp)
movl   $0x0,0x38(%rsp)
jmp    1200 <main+0x70>
movl   $0x1,0x40(%rsp)
nopl   (%rax)
movl   $0x0,0x30(%rsp)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %r15,%rcx
mov    %r12,%r8
call   1080 <getopt_long@plt>
cmp    $0xc7,%eax
jg     1240 <main+0xb0>
lea    -0x3f(%rax),%ecx
cmp    $0x34,%ecx
ja     125c <main+0xcc>
movslq 0x0(%r13,%rcx,4),%rax
add    %r13,%rax
jmp    *%rax
mov    $0x1,%eax
mov    %rax,0x50(%rsp)
jmp    1200 <main+0x70>
cmp    $0xc8,%eax
je     1285 <main+0xf5>
cmp    $0xc9,%eax
jne    14d9 <main+0x349>
movl   $0x1,0x10(%rsp)
jmp    1200 <main+0x70>
test   %eax,%eax
je     1200 <main+0x70>
jmp    1292 <main+0x102>
movl   $0x1,0x3c(%rsp)
jmp    1200 <main+0x70>
mov    $0x1,%eax
mov    %rax,0x60(%rsp)
jmp    1200 <main+0x70>
movl   $0x1,0x38(%rsp)
jmp    1200 <main+0x70>
movl   $0x1,0x1c(%rsp)
jmp    1200 <main+0x70>
cmp    $0xffffffff,%eax
jne    14d9 <main+0x349>
cmpl   $0x0,0x1c(%rsp)
jne    14e0 <main+0x350>
cmpl   $0x0,0x10(%rsp)
jne    154a <main+0x3ba>
movq   $0x0,0x30(%rsp)
movq   $0x0,0x28(%rsp)
mov    0x2d1e(%rip),%r15
mov    (%r15),%edx
lea    0x28(%rsp),%rdi
lea    0x30(%rsp),%rsi
call   10a0 <getline@plt>
fldz
cmp    $0xffffffff,%eax
je     12fa <main+0x16a>
fstp   %st(0)
mov    0x28(%rsp),%rdi
call   1070 <atof@plt>
fstpt  0x10(%rsp)
mov    $0x1,%ebx
jmp    1300 <main+0x170>
fstpt  0x10(%rsp)
xor    %ebx,%ebx
mov    (%r15),%edx
lea    0x28(%rsp),%rdi
lea    0x30(%rsp),%rsi
call   10a0 <getline@plt>
cmp    $0xffffffff,%eax
je     1388 <main+0x1f8>
lea    0x28(%rsp),%r14
lea    0x30(%rsp),%rbp
fldt   0x10(%rsp)
fld    %st(0)
fstpt  0x44(%rsp)
fld    %st(0)
fstpt  0x10(%rsp)
fstpt  0x1c(%rsp)
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x28(%rsp),%rdi
call   1070 <atof@plt>
fldt   0x44(%rsp)
fxch   %st(1)
fucomi %st(1),%st
fxch   %st(1)
fcmovnbe %st(1),%st
fstpt  0x44(%rsp)
fldt   0x10(%rsp)
fucomi %st(1),%st
fcmovnbe %st(1),%st
fstpt  0x10(%rsp)
fldt   0x1c(%rsp)
faddp  %st,%st(1)
fstpt  0x1c(%rsp)
add    $0x1,%ebx
mov    (%r15),%edx
mov    %r14,%rdi
mov    %rbp,%rsi
call   10a0 <getline@plt>
cmp    $0xffffffff,%eax
jne    1340 <main+0x1b0>
jmp    139c <main+0x20c>
fldt   0x10(%rsp)
fld    %st(0)
fstpt  0x1c(%rsp)
fld    %st(0)
fstpt  0x10(%rsp)
fstpt  0x44(%rsp)
fldt   0x1c(%rsp)
fstpt  0x1c(%rsp)
fldt   0x44(%rsp)
fstpt  0x44(%rsp)
fldt   0x10(%rsp)
fstpt  0x10(%rsp)
mov    0x28(%rsp),%rdi
call   1030 <free@plt>
mov    0x60(%rsp),%r14
mov    0x50(%rsp),%rbp
lea    (%r14,%rbp,1),%r15d
mov    0x38(%rsp),%eax
add    %eax,%r15d
test   %eax,%eax
je     1402 <main+0x272>
cmp    $0x2,%r15d
lea    0xd28(%rip),%rax
lea    0xd20(%rip),%rsi
cmovge %rax,%rsi
fldt   0x1c(%rsp)
fstpt  (%rsp)
lea    0xd08(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
test   %ebp,%ebp
je     142c <main+0x29c>
cmp    $0x2,%r15d
lea    0xd09(%rip),%rax
lea    0xcf1(%rip),%rsi
cmovge %rax,%rsi
lea    0xcf1(%rip),%rdi
mov    %ebx,%edx
xor    %eax,%eax
call   1090 <printf@plt>
test   %r14d,%r14d
je     1464 <main+0x2d4>
cmp    $0x2,%r15d
lea    0xce8(%rip),%rax
lea    0xcc6(%rip),%rsi
cmovge %rax,%rsi
mov    %ebx,0x5c(%rsp)
fldt   0x1c(%rsp)
fidivl 0x5c(%rsp)
fstpt  (%rsp)
lea    0xca6(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
cmpl   $0x0,0x3c(%rsp)
je     1496 <main+0x306>
cmp    $0x2,%r15d
lea    0xcb8(%rip),%rax
lea    0xc8c(%rip),%rsi
cmovge %rax,%rsi
fldt   0x44(%rsp)
fstpt  (%rsp)
lea    0xc74(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
cmpl   $0x0,0x40(%rsp)
je     14c8 <main+0x338>
cmp    $0x2,%r15d
lea    0xc90(%rip),%rax
lea    0xc5a(%rip),%rsi
cmovge %rax,%rsi
fldt   0x10(%rsp)
fstpt  (%rsp)
lea    0xc42(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
call   1050 <abort@plt>
lea    0xc66(%rip),%rdi
call   1060 <puts@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xc65(%rip),%rdi
call   1060 <puts@plt>
lea    0xc62(%rip),%rdi
call   1060 <puts@plt>
lea    0xc69(%rip),%rdi
call   1060 <puts@plt>
lea    0xc77(%rip),%rdi
call   1060 <puts@plt>
lea    0xc7a(%rip),%rdi
call   1060 <puts@plt>
lea    0xc81(%rip),%rdi
call   1060 <puts@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
jmp    1556 <main+0x3c6>
lea    0xbf1(%rip),%rdi
call   1060 <puts@plt>
mov    0x2a7b(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
%struct.option = type { i8*, i8, i32*, i32 }
@main.long_options = internal global [9 x %struct.option] [%struct.option { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8 -128, i32* null, i32 97 }, %struct.option { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i32 0, i32 0), i8 -128, i32* null, i32 110 }, %struct.option { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8 -128, i32* null, i32 110 }, %struct.option { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8 -128, i32* null, i32 115 }, %struct.option { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i32 0, i32 0), i8 -128, i32* null, i32 77 }, %struct.option { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8 -128, i32* null, i32 109 }, %struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i32 0, i32 0), i8 -128, i32* null, i32 200 }, %struct.option { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i32 0, i32 0), i8 -128, i32* null, i32 201 }, %struct.option zeroinitializer]
@.str = [4 x i8] c"avg\00"
@.str.1 = [6 x i8] c"count\00"
@.str.2 = [4 x i8] c"num\00"
@.str.3 = [4 x i8] c"sum\00"
@.str.4 = [4 x i8] c"max\00"
@.str.5 = [4 x i8] c"min\00"
@.str.6 = [5 x i8] c"help\00"
@.str.7 = [8 x i8] c"version\00"
@.str.8 = [8 x i8] c"achMmns\00"
@.str.9 = [22 x i8] c"usage: stats [-acns]\0A\00"
@.str.10 = [2 x i8] c"\0A\00"
@.str.11 = [10 x i8] c"Options:\0A\00"
@.str.12 = [20 x i8] c"\09-a\09\09Show average.\0A\00"
@.str.13 = [27 x i8] c"\09-c, -n Show item count.\0A\00"
@.str.14 = [16 x i8] c"\09-s\09\09Show sum.\0A\00"
@.str.15 = [20 x i8] c"\09-M\09\09Show maximum.\0A\00"
@.str.16 = [20 x i8] c"\09-m\09\09Show minimum.\0A\00"
@EXIT_SUCCESS = global i32 0
@.str.17 = [12 x i8] c"stats v0.1\0A\00"
@stdin = global i32 0
@.str.18 = [7 x i8] c"%s%LG\0A\00"
@.str.19 = [10 x i8] c"sum....: \00"
@.str.20 = [1 x i8] zeroinitializer
@.str.21 = [6 x i8] c"%s%d\0A\00"
@.str.22 = [10 x i8] c"num....: \00"
@.str.23 = [10 x i8] c"avg....: \00"
@.str.24 = [10 x i8] c"max....: \00"
@.str.25 = [10 x i8] c"min....: \00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca x86_fp80
%16 = alloca i32
%17 = alloca i64
%18 = alloca i8*
%19 = alloca x86_fp80
%20 = alloca x86_fp80
%21 = alloca x86_fp80
%22 = alloca x86_fp80
%23 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %12
br label %24
24: ; preds = %2, %45
store i32 0, i32* %14
%25 = load i32, i32* %4
%26 = load i8**, i8*** %5
%27 = call i32 @getopt_long(i32 %25, i8** %26, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), %struct.option* getelementptr inbounds ([9 x %struct.option], [9 x %struct.option]* @main.long_options, i64 0, i64 0), i32* %14)
store i32 %27, i32* %13
%28 = load i32, i32* %13
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %31
30: ; preds = %24
br label %46
31: ; preds = %24
%32 = load i32, i32* %13
switch i32 %32, label %43 [
i32 0, label %33
i32 97, label %34
i32 99, label %35
i32 110, label %36
i32 115, label %37
i32 77, label %38
i32 109, label %39
i32 200, label %40
i32 201, label %41
i32 63, label %42
]
33: ; preds = %31
br label %45
34: ; preds = %31
store i32 1, i32* %7
br label %45
35: ; preds = %31
store i32 1, i32* %8
br label %45
36: ; preds = %31
store i32 1, i32* %8
br label %45
37: ; preds = %31
store i32 1, i32* %6
br label %45
38: ; preds = %31
store i32 1, i32* %11
br label %45
39: ; preds = %31
store i32 1, i32* %12
br label %45
40: ; preds = %31
store i32 1, i32* %9
br label %45
41: ; preds = %31
store i32 1, i32* %10
br label %45
42: ; preds = %31
br label %45
43: ; preds = %31
%44 = call i32 (...) @abort()
unreachable
45: ; preds = %42, %41, %40, %39, %38, %37, %36, %35, %34, %33
br label %24
46: ; preds = %30
%47 = load i32, i32* %9
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %61
49: ; preds = %46
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0))
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0))
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0))
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0))
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0))
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0))
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0))
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%59 = load i32, i32* @EXIT_SUCCESS
%60 = call i32 @exit(i32 %59)
unreachable
61: ; preds = %46
%62 = load i32, i32* %10
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %68
64: ; preds = %61
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0))
%66 = load i32, i32* @EXIT_SUCCESS
%67 = call i32 @exit(i32 %66)
unreachable
68: ; preds = %61
store x86_fp80 0xK00000000000000000000, x86_fp80* %15
store i32 0, i32* %16
store i64 0, i64* %17
store i8* null, i8** %18
store x86_fp80 0xK00000000000000000000, x86_fp80* %19
store x86_fp80 0xK00000000000000000000, x86_fp80* %20
%69 = load i32, i32* @stdin
%70 = call i32 @getline(i8** %18, i64* %17, i32 %69)
%71 = icmp ne i32 %70, -1
br i1 %71, label %72, label %78
72: ; preds = %68
%73 = load i8*, i8** %18
%74 = call x86_fp80 @atof(i8* %73)
store x86_fp80 %74, x86_fp80* %21
%75 = load x86_fp80, x86_fp80* %21
store x86_fp80 %75, x86_fp80* %19
%76 = load x86_fp80, x86_fp80* %21
store x86_fp80 %76, x86_fp80* %20
%77 = load x86_fp80, x86_fp80* %21
store x86_fp80 %77, x86_fp80* %15
store i32 1, i32* %16
br label %78
78: ; preds = %72, %68
br label %79
79: ; preds = %97, %78
%80 = load i32, i32* @stdin
%81 = call i32 @getline(i8** %18, i64* %17, i32 %80)
%82 = icmp ne i32 %81, -1
br i1 %82, label %83, label %103
83: ; preds = %79
%84 = load i8*, i8** %18
%85 = call x86_fp80 @atof(i8* %84)
store x86_fp80 %85, x86_fp80* %22
%86 = load x86_fp80, x86_fp80* %22
%87 = load x86_fp80, x86_fp80* %19
%88 = fcmp ogt x86_fp80 %86, %87
br i1 %88, label %89, label %91
89: ; preds = %83
%90 = load x86_fp80, x86_fp80* %22
store x86_fp80 %90, x86_fp80* %19
br label %91
91: ; preds = %89, %83
%92 = load x86_fp80, x86_fp80* %22
%93 = load x86_fp80, x86_fp80* %20
%94 = fcmp olt x86_fp80 %92, %93
br i1 %94, label %95, label %97
95: ; preds = %91
%96 = load x86_fp80, x86_fp80* %22
store x86_fp80 %96, x86_fp80* %20
br label %97
97: ; preds = %95, %91
%98 = load x86_fp80, x86_fp80* %15
%99 = load x86_fp80, x86_fp80* %22
%100 = fadd x86_fp80 %98, %99
store x86_fp80 %100, x86_fp80* %15
%101 = load i32, i32* %16
%102 = add nsw i32 %101, 1
store i32 %102, i32* %16
br label %79
103: ; preds = %79
%104 = load i8*, i8** %18
%105 = call i32 @free(i8* %104)
%106 = load i32, i32* %6
%107 = load i32, i32* %8
%108 = add nsw i32 %106, %107
%109 = load i32, i32* %7
%110 = add nsw i32 %108, %109
store i32 %110, i32* %23
%111 = load i32, i32* %6
%112 = icmp ne i32 %111, 0
br i1 %112, label %113, label %120
113: ; preds = %103
%114 = load i32, i32* %23
%115 = icmp sgt i32 %114, 1
%116 = zext i1 %115 to i64
%117 = select i1 %115, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.20, i64 0, i64 0)
%118 = load x86_fp80, x86_fp80* %15
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0), i8* %117, x86_fp80 %118)
br label %120
120: ; preds = %113, %103
%121 = load i32, i32* %8
%122 = icmp ne i32 %121, 0
br i1 %122, label %123, label %130
123: ; preds = %120
%124 = load i32, i32* %23
%125 = icmp sgt i32 %124, 1
%126 = zext i1 %125 to i64
%127 = select i1 %125, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.20, i64 0, i64 0)
%128 = load i32, i32* %16
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0), i8* %127, i32 %128)
br label %130
130: ; preds = %123, %120
%131 = load i32, i32* %7
%132 = icmp ne i32 %131, 0
br i1 %132, label %133, label %143
133: ; preds = %130
%134 = load i32, i32* %23
%135 = icmp sgt i32 %134, 1
%136 = zext i1 %135 to i64
%137 = select i1 %135, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.20, i64 0, i64 0)
%138 = load x86_fp80, x86_fp80* %15
%139 = load i32, i32* %16
%140 = sitofp i32 %139 to x86_fp80
%141 = fdiv x86_fp80 %138, %140
%142 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0), i8* %137, x86_fp80 %141)
br label %143
143: ; preds = %133, %130
%144 = load i32, i32* %11
%145 = icmp ne i32 %144, 0
br i1 %145, label %146, label %153
146: ; preds = %143
%147 = load i32, i32* %23
%148 = icmp sgt i32 %147, 1
%149 = zext i1 %148 to i64
%150 = select i1 %148, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.20, i64 0, i64 0)
%151 = load x86_fp80, x86_fp80* %19
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0), i8* %150, x86_fp80 %151)
br label %153
153: ; preds = %146, %143
%154 = load i32, i32* %12
%155 = icmp ne i32 %154, 0
br i1 %155, label %156, label %163
156: ; preds = %153
%157 = load i32, i32* %23
%158 = icmp sgt i32 %157, 1
%159 = zext i1 %158 to i64
%160 = select i1 %158, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.20, i64 0, i64 0)
%161 = load x86_fp80, x86_fp80* %20
%162 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0), i8* %160, x86_fp80 %161)
br label %163
163: ; preds = %156, %153
%164 = load i32, i32* %3
ret i32 %164
}

LLVM IR (-O2):
%struct.option = type { i8*, i8, i32*, i32 }
@main.long_options = internal global [9 x %struct.option] [%struct.option { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8 -128, i32* null, i32 97 }, %struct.option { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i32 0, i32 0), i8 -128, i32* null, i32 110 }, %struct.option { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8 -128, i32* null, i32 110 }, %struct.option { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8 -128, i32* null, i32 115 }, %struct.option { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i32 0, i32 0), i8 -128, i32* null, i32 77 }, %struct.option { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8 -128, i32* null, i32 109 }, %struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i32 0, i32 0), i8 -128, i32* null, i32 200 }, %struct.option { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i32 0, i32 0), i8 -128, i32* null, i32 201 }, %struct.option zeroinitializer]
@.str = [4 x i8] c"avg\00"
@.str.1 = [6 x i8] c"count\00"
@.str.2 = [4 x i8] c"num\00"
@.str.3 = [4 x i8] c"sum\00"
@.str.4 = [4 x i8] c"max\00"
@.str.5 = [4 x i8] c"min\00"
@.str.6 = [5 x i8] c"help\00"
@.str.7 = [8 x i8] c"version\00"
@.str.8 = [8 x i8] c"achMmns\00"
@EXIT_SUCCESS = global i32 0
@stdin = global i32 0
@.str.18 = [7 x i8] c"%s%LG\0A\00"
@.str.19 = [10 x i8] c"sum....: \00"
@.str.20 = [1 x i8] zeroinitializer
@.str.21 = [6 x i8] c"%s%d\0A\00"
@.str.22 = [10 x i8] c"num....: \00"
@.str.23 = [10 x i8] c"avg....: \00"
@.str.24 = [10 x i8] c"max....: \00"
@.str.25 = [10 x i8] c"min....: \00"
@str = [11 x i8] c"stats v0.1\00"
@str.26 = [21 x i8] c"usage: stats [-acns]\00"
@str.27 = [9 x i8] c"Options:\00"
@str.28 = [19 x i8] c"\09-a\09\09Show average.\00"
@str.29 = [26 x i8] c"\09-c, -n Show item count.\00"
@str.30 = [15 x i8] c"\09-s\09\09Show sum.\00"
@str.31 = [19 x i8] c"\09-M\09\09Show maximum.\00"
@str.32 = [19 x i8] c"\09-m\09\09Show minimum.\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i64
%5 = alloca i8*
%6 = bitcast i32* %3 to i8*
br label %7
7: ; preds = %26, %2
%8 = phi i32 [ 0, %2 ], [ %27, %26 ]
%9 = phi i32 [ 0, %2 ], [ %28, %26 ]
%10 = phi i32 [ 0, %2 ], [ %29, %26 ]
%11 = phi i32 [ 0, %2 ], [ %30, %26 ]
%12 = phi i32 [ 0, %2 ], [ %31, %26 ]
%13 = phi i32 [ 0, %2 ], [ %32, %26 ]
%14 = phi i32 [ 0, %2 ], [ %33, %26 ]
store i32 0, i32* %3
%15 = call i32 @getopt_long(i32 %0, i8** %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), %struct.option* getelementptr inbounds ([9 x %struct.option], [9 x %struct.option]* @main.long_options, i64 0, i64 0), i32* %3)
switch i32 %15, label %24 [
i32 -1, label %34
i32 0, label %26
i32 97, label %16
i32 99, label %17
i32 110, label %18
i32 115, label %19
i32 77, label %20
i32 109, label %21
i32 200, label %22
i32 201, label %23
i32 63, label %26
]
16: ; preds = %7
br label %26
17: ; preds = %7
br label %26
18: ; preds = %7
br label %26
19: ; preds = %7
br label %26
20: ; preds = %7
br label %26
21: ; preds = %7
br label %26
22: ; preds = %7
br label %26
23: ; preds = %7
br label %26
24: ; preds = %7
%25 = call i32 (...) @abort()
unreachable
26: ; preds = %16, %17, %18, %19, %20, %21, %22, %23, %7, %7
%27 = phi i32 [ %8, %23 ], [ %8, %22 ], [ 1, %21 ], [ %8, %20 ], [ %8, %19 ], [ %8, %18 ], [ %8, %17 ], [ %8, %16 ], [ %8, %7 ], [ %8, %7 ]
%28 = phi i32 [ %9, %23 ], [ %9, %22 ], [ %9, %21 ], [ 1, %20 ], [ %9, %19 ], [ %9, %18 ], [ %9, %17 ], [ %9, %16 ], [ %9, %7 ], [ %9, %7 ]
%29 = phi i32 [ 1, %23 ], [ %10, %22 ], [ %10, %21 ], [ %10, %20 ], [ %10, %19 ], [ %10, %18 ], [ %10, %17 ], [ %10, %16 ], [ %10, %7 ], [ %10, %7 ]
%30 = phi i32 [ %11, %23 ], [ 1, %22 ], [ %11, %21 ], [ %11, %20 ], [ %11, %19 ], [ %11, %18 ], [ %11, %17 ], [ %11, %16 ], [ %11, %7 ], [ %11, %7 ]
%31 = phi i32 [ %12, %23 ], [ %12, %22 ], [ %12, %21 ], [ %12, %20 ], [ %12, %19 ], [ 1, %18 ], [ 1, %17 ], [ %12, %16 ], [ %12, %7 ], [ %12, %7 ]
%32 = phi i32 [ %13, %23 ], [ %13, %22 ], [ %13, %21 ], [ %13, %20 ], [ %13, %19 ], [ %13, %18 ], [ %13, %17 ], [ 1, %16 ], [ %13, %7 ], [ %13, %7 ]
%33 = phi i32 [ %14, %23 ], [ %14, %22 ], [ %14, %21 ], [ %14, %20 ], [ 1, %19 ], [ %14, %18 ], [ %14, %17 ], [ %14, %16 ], [ %14, %7 ], [ %14, %7 ]
br label %7
34: ; preds = %7
%35 = icmp eq i32 %11, 0
br i1 %35, label %48, label %36
36: ; preds = %34
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.26, i64 0, i64 0))
%38 = call i32 @putchar(i32 10)
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.27, i64 0, i64 0))
%40 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.28, i64 0, i64 0))
%41 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.29, i64 0, i64 0))
%42 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.30, i64 0, i64 0))
%43 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.31, i64 0, i64 0))
%44 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.32, i64 0, i64 0))
%45 = call i32 @putchar(i32 10)
%46 = load i32, i32* @EXIT_SUCCESS
%47 = call i32 @exit(i32 %46)
unreachable
48: ; preds = %34
%49 = icmp eq i32 %10, 0
br i1 %49, label %54, label %50
50: ; preds = %48
%51 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%52 = load i32, i32* @EXIT_SUCCESS
%53 = call i32 @exit(i32 %52)
unreachable
54: ; preds = %48
%55 = bitcast i64* %4 to i8*
store i64 0, i64* %4
%56 = bitcast i8** %5 to i8*
store i8* null, i8** %5
%57 = load i32, i32* @stdin
%58 = call i32 @getline(i8** %5, i64* %4, i32 %57)
%59 = icmp eq i32 %58, -1
br i1 %59, label %63, label %60
60: ; preds = %54
%61 = load i8*, i8** %5
%62 = call x86_fp80 @atof(i8* %61)
br label %63
63: ; preds = %60, %54
%64 = phi i32 [ 1, %60 ], [ 0, %54 ]
%65 = phi x86_fp80 [ %62, %60 ], [ 0xK00000000000000000000, %54 ]
%66 = load i32, i32* @stdin
%67 = call i32 @getline(i8** %5, i64* %4, i32 %66)
%68 = icmp eq i32 %67, -1
br i1 %68, label %85, label %69
69: ; preds = %63, %69
%70 = phi x86_fp80 [ %79, %69 ], [ %65, %63 ]
%71 = phi x86_fp80 [ %77, %69 ], [ %65, %63 ]
%72 = phi i32 [ %81, %69 ], [ %64, %63 ]
%73 = phi x86_fp80 [ %80, %69 ], [ %65, %63 ]
%74 = load i8*, i8** %5
%75 = call x86_fp80 @atof(i8* %74)
%76 = fcmp ogt x86_fp80 %75, %71
%77 = select i1 %76, x86_fp80 %75, x86_fp80 %71
%78 = fcmp olt x86_fp80 %75, %70
%79 = select i1 %78, x86_fp80 %75, x86_fp80 %70
%80 = fadd x86_fp80 %73, %75
%81 = add nuw nsw i32 %72, 1
%82 = load i32, i32* @stdin
%83 = call i32 @getline(i8** %5, i64* %4, i32 %82)
%84 = icmp eq i32 %83, -1
br i1 %84, label %85, label %69
85: ; preds = %69, %63
%86 = phi x86_fp80 [ %65, %63 ], [ %80, %69 ]
%87 = phi i32 [ %64, %63 ], [ %81, %69 ]
%88 = phi x86_fp80 [ %65, %63 ], [ %77, %69 ]
%89 = phi x86_fp80 [ %65, %63 ], [ %79, %69 ]
%90 = load i8*, i8** %5
%91 = call i32 @free(i8* %90)
%92 = add i32 %13, %12
%93 = add i32 %92, %14
%94 = icmp eq i32 %14, 0
br i1 %94, label %99, label %95
95: ; preds = %85
%96 = icmp sgt i32 %93, 1
%97 = select i1 %96, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.20, i64 0, i64 0)
%98 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0), i8* %97, x86_fp80 %86)
br label %99
99: ; preds = %95, %85
%100 = icmp eq i32 %12, 0
br i1 %100, label %105, label %101
101: ; preds = %99
%102 = icmp sgt i32 %93, 1
%103 = select i1 %102, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.20, i64 0, i64 0)
%104 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0), i8* %103, i32 %87)
br label %105
105: ; preds = %101, %99
%106 = icmp eq i32 %13, 0
br i1 %106, label %113, label %107
107: ; preds = %105
%108 = icmp sgt i32 %93, 1
%109 = select i1 %108, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.20, i64 0, i64 0)
%110 = sitofp i32 %87 to x86_fp80
%111 = fdiv x86_fp80 %86, %110
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0), i8* %109, x86_fp80 %111)
br label %113
113: ; preds = %107, %105
%114 = icmp eq i32 %9, 0
br i1 %114, label %119, label %115
115: ; preds = %113
%116 = icmp sgt i32 %93, 1
%117 = select i1 %116, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.20, i64 0, i64 0)
%118 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0), i8* %117, x86_fp80 %88)
br label %119
119: ; preds = %115, %113
%120 = icmp eq i32 %8, 0
br i1 %120, label %125, label %121
121: ; preds = %119
%122 = icmp sgt i32 %93, 1
%123 = select i1 %122, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.20, i64 0, i64 0)
%124 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0), i8* %123, x86_fp80 %89)
br label %125
125: ; preds = %121, %119
ret i32 0
}