#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 */
size_t binomial_coefficient(size_t, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int getopt(int, char **, char *);
int /*<<< orphan*/ isprint(float);
int /*<<< orphan*/ k_combination2(unsigned long, unsigned long *,
                                  unsigned long *);
char *optarg;
float optopt;
int /*<<< orphan*/ parse_sequences(char *, char ***, size_t **, size_t *);
int /*<<< orphan*/ printf(char *, unsigned long, ...);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  unsigned long i = 0;
  size_t seq_count = 10;
  size_t limit = 0;
  char **sequences = NULL;
  size_t *sizes = NULL;
  char *filename = NULL;
  int c = 0;
  int distribution = 0;
  while ((c = getopt(argc, argv, "f:d")) != -1) {
    switch (c) {
    case 'd':
      distribution = 1;
      break;
    case 'f':
      filename = optarg;
      break;
    case '?':
      if (optopt == 'f' || optopt == 'n') {
        fprintf(stderr, "Option -%c requires an argument.\n", optopt);
      } else if (isprint(optopt)) {
        fprintf(stderr, "Unknown option `-%c'.\n", optopt);
      } else {
        fprintf(stderr, "Unknown option character `\\x%x'.\n", optopt);
      }
      exit(1);
    default:
      fprintf(stderr, "default case in getopt\n");
      exit(1);
    }
  }
  if (filename) {
    parse_sequences(filename, &sequences, &sizes, &seq_count);
  } else {
    fprintf(stderr, "missing filename\n");
    exit(1);
  }
  if (distribution) {
    for (i = 0; i < seq_count; ++i) {
      printf("%lu\n", (unsigned long)sizes[i]);
    }
  } else {
    limit = binomial_coefficient(seq_count, 2);
    printf("%lu choose 2 is %lu\n", (unsigned long)seq_count,
           (unsigned long)limit);
    {
      unsigned long a = 0;
      unsigned long b = 1;
      unsigned long work = 0;
      unsigned long columns = 0;
      for (i = 0; i < limit; ++i) {
        k_combination2(i, &a, &b);
        work += sizes[a] * sizes[b];
        columns += sizes[b];
      }
      printf("work=%lu\n", work);
      printf("columns=%lu\n", columns);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0xa,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
movq   $0x0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe26(%rip),%rdx
call   1090 <getopt@plt>
mov    %eax,-0x44(%rbp)
cmp    $0xffffffff,%eax
je     135b <main+0x1db>
mov    -0x44(%rbp),%eax
mov    %eax,-0x6c(%rbp)
sub    $0x3f,%eax
je     1248 <main+0xc8>
jmp    1207 <main+0x87>
mov    -0x6c(%rbp),%eax
sub    $0x64,%eax
je     1229 <main+0xa9>
jmp    1218 <main+0x98>
mov    -0x6c(%rbp),%eax
sub    $0x66,%eax
je     1235 <main+0xb5>
jmp    1335 <main+0x1b5>
movl   $0x1,-0x48(%rbp)
jmp    1356 <main+0x1d6>
mov    0x2dbc(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x40(%rbp)
jmp    1356 <main+0x1d6>
mov    0x2d91(%rip),%rax
movss  (%rax),%xmm0
movss  0xda5(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    126f <main+0xef>
jp     126f <main+0xef>
jmp    1291 <main+0x111>
mov    0x2d6a(%rip),%rax
movss  (%rax),%xmm0
movss  0xd82(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    12bc <main+0x13c>
jp     12bc <main+0x13c>
mov    0x2d38(%rip),%rax
mov    (%rax),%edi
mov    0x2d3f(%rip),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd5c(%rip),%rsi
mov    $0x1,%al
call   1060 <fprintf@plt>
jmp    132b <main+0x1ab>
mov    0x2d1d(%rip),%rax
movss  (%rax),%xmm0
call   1080 <isprint@plt>
cmp    $0x0,%eax
je     1300 <main+0x180>
mov    0x2cf4(%rip),%rax
mov    (%rax),%edi
mov    0x2cfb(%rip),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd3a(%rip),%rsi
mov    $0x1,%al
call   1060 <fprintf@plt>
jmp    1326 <main+0x1a6>
mov    0x2cc9(%rip),%rax
mov    (%rax),%edi
mov    0x2cd0(%rip),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd26(%rip),%rsi
mov    $0x1,%al
call   1060 <fprintf@plt>
jmp    132b <main+0x1ab>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    0x2c94(%rip),%rax
mov    (%rax),%edi
lea    0xd22(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
jmp    11d4 <main+0x54>
cmpq   $0x0,-0x40(%rbp)
je     1380 <main+0x200>
mov    -0x40(%rbp),%rdi
lea    -0x30(%rbp),%rsi
lea    -0x38(%rbp),%rdx
lea    -0x20(%rbp),%rcx
call   1050 <parse_sequences@plt>
jmp    13a1 <main+0x221>
mov    0x2c49(%rip),%rax
mov    (%rax),%edi
lea    0xcef(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
cmpl   $0x0,-0x48(%rbp)
je     13f1 <main+0x271>
movq   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmp    -0x20(%rbp),%rax
jae    13ec <main+0x26c>
mov    -0x38(%rbp),%rax
mov    -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xccd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    13b3 <main+0x233>
jmp    14ca <main+0x34a>
mov    -0x20(%rbp),%rdi
mov    $0x2,%esi
call   1040 <binomial_coefficient@plt>
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xc7f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movq   $0x0,-0x50(%rbp)
movq   $0x1,-0x58(%rbp)
movq   $0x0,-0x60(%rbp)
movq   $0x0,-0x68(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmp    -0x28(%rbp),%rax
jae    14a6 <main+0x326>
mov    -0x18(%rbp),%rdi
lea    -0x50(%rbp),%rsi
lea    -0x58(%rbp),%rdx
call   1070 <k_combination2@plt>
mov    -0x38(%rbp),%rax
mov    -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x38(%rbp),%rcx
mov    -0x58(%rbp),%rdx
imul   (%rcx,%rdx,8),%rax
add    -0x60(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x38(%rbp),%rax
mov    -0x58(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
add    -0x68(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1441 <main+0x2c1>
mov    -0x60(%rbp),%rsi
lea    0xbf5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x68(%rbp),%rsi
lea    0xbed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%r12
mov    %edi,%ebp
movq   $0xa,(%rsp)
movq   $0x0,0x20(%rsp)
movq   $0x0,0x8(%rsp)
xor    %r14d,%r14d
lea    0xe51(%rip),%r15
mov    0x2e3a(%rip),%r13
xor    %ebx,%ebx
mov    %ebx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %ecx,%ebx
mov    %ebp,%edi
mov    %r12,%rsi
mov    %r15,%rdx
call   1090 <getopt@plt>
mov    $0x1,%ecx
cmp    $0x64,%eax
je     11d0 <main+0x50>
cmp    $0xffffffff,%eax
je     11fd <main+0x7d>
cmp    $0x66,%eax
jne    131b <main+0x19b>
mov    0x0(%r13),%r14
jmp    11c0 <main+0x40>
test   %r14,%r14
je     13a4 <main+0x224>
lea    0x20(%rsp),%rsi
lea    0x8(%rsp),%rdx
mov    %rsp,%rcx
mov    %r14,%rdi
call   1050 <parse_sequences@plt>
mov    (%rsp),%rdi
test   %ebx,%ebx
je     1262 <main+0xe2>
test   %rdi,%rdi
je     130a <main+0x18a>
lea    0xe6e(%rip),%rbx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x8(%rsp),%rax
mov    (%rax,%rbp,8),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x1,%rbp
cmp    (%rsp),%rbp
jb     1240 <main+0xc0>
jmp    130a <main+0x18a>
mov    $0x2,%esi
call   1040 <binomial_coefficient@plt>
mov    %rax,%r14
mov    (%rsp),%rsi
lea    0xe17(%rip),%rdi
xor    %r15d,%r15d
mov    %rax,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
movq   $0x0,0x18(%rsp)
movq   $0x1,0x10(%rsp)
xor    %ebx,%ebx
test   %r14,%r14
je     12e8 <main+0x168>
lea    0x18(%rsp),%r12
lea    0x10(%rsp),%r13
xor    %r15d,%r15d
xor    %ebp,%ebp
nop
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
call   1070 <k_combination2@plt>
mov    0x8(%rsp),%rax
mov    0x18(%rsp),%rcx
mov    0x10(%rsp),%rdx
mov    (%rax,%rdx,8),%rdx
mov    (%rax,%rcx,8),%rax
imul   %rdx,%rax
add    %rax,%r15
add    %rdx,%rbx
add    $0x1,%rbp
cmp    %rbp,%r14
jne    12b0 <main+0x130>
lea    0xdb7(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xdb0(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
cmp    $0x3f,%eax
jne    1383 <main+0x203>
mov    0x2cb9(%rip),%rbx
movss  (%rbx),%xmm0
ucomiss 0xcce(%rip),%xmm0
lea    0xcd3(%rip),%rsi
jne    133d <main+0x1bd>
jnp    1365 <main+0x1e5>
ucomiss 0xcc0(%rip),%xmm0
jne    1348 <main+0x1c8>
jnp    1365 <main+0x1e5>
call   1080 <isprint@plt>
test   %eax,%eax
movss  (%rbx),%xmm0
lea    0xceb(%rip),%rax
lea    0xccd(%rip),%rsi
cmove  %rax,%rsi
mov    0x2c64(%rip),%rax
mov    (%rax),%edi
cvtss2sd %xmm0,%xmm0
mov    $0x1,%al
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    0x2c46(%rip),%rax
mov    (%rax),%edi
lea    0xcd4(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    0x2c25(%rip),%rax
mov    (%rax),%edi
lea    0xccb(%rip),%rsi
jmp    1393 <main+0x213>

LLVM IR (-O0):
@.str = [4 x i8] c"f:d\00"
@optarg = global i8* null
@optopt = global float 0.000000e+00
@stderr = global i32 0
@.str.1 = [34 x i8] c"Option -%c requires an argument.\0A\00"
@.str.2 = [23 x i8] c"Unknown option `-%c'.\0A\00"
@.str.3 = [34 x i8] c"Unknown option character `\\x%x'.\0A\00"
@.str.4 = [24 x i8] c"default case in getopt\0A\00"
@.str.5 = [18 x i8] c"missing filename\0A\00"
@.str.6 = [5 x i8] c"%lu\0A\00"
@.str.7 = [21 x i8] c"%lu choose 2 is %lu\0A\00"
@.str.8 = [10 x i8] c"work=%lu\0A\00"
@.str.9 = [13 x i8] c"columns=%lu\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i8**
%10 = alloca i64*
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i64
%15 = alloca i64
%16 = alloca i64
%17 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 0, i64* %6
store i64 10, i64* %7
store i64 0, i64* %8
store i8** null, i8*** %9
store i64* null, i64** %10
store i8* null, i8** %11
store i32 0, i32* %12
store i32 0, i32* %13
br label %18
18: ; preds = %60, %2
%19 = load i32, i32* %4
%20 = load i8**, i8*** %5
%21 = call i32 @getopt(i32 %19, i8** %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
store i32 %21, i32* %12
%22 = icmp ne i32 %21, -1
br i1 %22, label %23, label %61
23: ; preds = %18
%24 = load i32, i32* %12
switch i32 %24, label %56 [
i32 100, label %25
i32 102, label %26
i32 63, label %28
]
25: ; preds = %23
store i32 1, i32* %13
br label %60
26: ; preds = %23
%27 = load i8*, i8** @optarg
store i8* %27, i8** %11
br label %60
28: ; preds = %23
%29 = load float, float* @optopt
%30 = fcmp oeq float %29, 1.020000e+02
br i1 %30, label %34, label %31
31: ; preds = %28
%32 = load float, float* @optopt
%33 = fcmp oeq float %32, 1.100000e+02
br i1 %33, label %34, label %39
34: ; preds = %31, %28
%35 = load i32, i32* @stderr
%36 = load float, float* @optopt
%37 = fpext float %36 to double
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), double %37)
br label %54
39: ; preds = %31
%40 = load float, float* @optopt
%41 = call i32 @isprint(float %40)
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %48
43: ; preds = %39
%44 = load i32, i32* @stderr
%45 = load float, float* @optopt
%46 = fpext float %45 to double
%47 = call i32 (i32, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double %46)
br label %53
48: ; preds = %39
%49 = load i32, i32* @stderr
%50 = load float, float* @optopt
%51 = fpext float %50 to double
%52 = call i32 (i32, i8*, ...) @fprintf(i32 %49, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), double %51)
br label %53
53: ; preds = %48, %43
br label %54
54: ; preds = %53, %34
%55 = call i32 @exit(i32 1)
unreachable
56: ; preds = %23
%57 = load i32, i32* @stderr
%58 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%59 = call i32 @exit(i32 1)
unreachable
60: ; preds = %26, %25
br label %18
61: ; preds = %18
%62 = load i8*, i8** %11
%63 = icmp ne i8* %62, null
br i1 %63, label %64, label %67
64: ; preds = %61
%65 = load i8*, i8** %11
%66 = call i32 @parse_sequences(i8* %65, i8*** %9, i64** %10, i64* %7)
br label %71
67: ; preds = %61
%68 = load i32, i32* @stderr
%69 = call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%70 = call i32 @exit(i32 1)
unreachable
71: ; preds = %64
%72 = load i32, i32* %13
%73 = icmp ne i32 %72, 0
br i1 %73, label %74, label %89
74: ; preds = %71
store i64 0, i64* %6
br label %75
75: ; preds = %85, %74
%76 = load i64, i64* %6
%77 = load i64, i64* %7
%78 = icmp ult i64 %76, %77
br i1 %78, label %79, label %88
79: ; preds = %75
%80 = load i64*, i64** %10
%81 = load i64, i64* %6
%82 = getelementptr inbounds i64, i64* %80, i64 %81
%83 = load i64, i64* %82
%84 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i64 %83)
br label %85
85: ; preds = %79
%86 = load i64, i64* %6
%87 = add i64 %86, 1
store i64 %87, i64* %6
br label %75
88: ; preds = %75
br label %127
89: ; preds = %71
%90 = load i64, i64* %7
%91 = call i64 @binomial_coefficient(i64 %90, i32 2)
store i64 %91, i64* %8
%92 = load i64, i64* %7
%93 = load i64, i64* %8
%94 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i64 %92, i64 %93)
store i64 0, i64* %14
store i64 1, i64* %15
store i64 0, i64* %16
store i64 0, i64* %17
store i64 0, i64* %6
br label %95
95: ; preds = %119, %89
%96 = load i64, i64* %6
%97 = load i64, i64* %8
%98 = icmp ult i64 %96, %97
br i1 %98, label %99, label %122
99: ; preds = %95
%100 = load i64, i64* %6
%101 = call i32 @k_combination2(i64 %100, i64* %14, i64* %15)
%102 = load i64*, i64** %10
%103 = load i64, i64* %14
%104 = getelementptr inbounds i64, i64* %102, i64 %103
%105 = load i64, i64* %104
%106 = load i64*, i64** %10
%107 = load i64, i64* %15
%108 = getelementptr inbounds i64, i64* %106, i64 %107
%109 = load i64, i64* %108
%110 = mul i64 %105, %109
%111 = load i64, i64* %16
%112 = add i64 %111, %110
store i64 %112, i64* %16
%113 = load i64*, i64** %10
%114 = load i64, i64* %15
%115 = getelementptr inbounds i64, i64* %113, i64 %114
%116 = load i64, i64* %115
%117 = load i64, i64* %17
%118 = add i64 %117, %116
store i64 %118, i64* %17
br label %119
119: ; preds = %99
%120 = load i64, i64* %6
%121 = add i64 %120, 1
store i64 %121, i64* %6
br label %95
122: ; preds = %95
%123 = load i64, i64* %16
%124 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i64 %123)
%125 = load i64, i64* %17
%126 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i64 %125)
br label %127
127: ; preds = %122, %88
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"f:d\00"
@optarg = global i8* null
@optopt = global float 0.000000e+00
@stderr = global i32 0
@.str.1 = [34 x i8] c"Option -%c requires an argument.\0A\00"
@.str.2 = [23 x i8] c"Unknown option `-%c'.\0A\00"
@.str.3 = [34 x i8] c"Unknown option character `\\x%x'.\0A\00"
@.str.4 = [24 x i8] c"default case in getopt\0A\00"
@.str.5 = [18 x i8] c"missing filename\0A\00"
@.str.6 = [5 x i8] c"%lu\0A\00"
@.str.7 = [21 x i8] c"%lu choose 2 is %lu\0A\00"
@.str.8 = [10 x i8] c"work=%lu\0A\00"
@.str.9 = [13 x i8] c"columns=%lu\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i64
%4 = alloca i8**
%5 = alloca i64*
%6 = alloca i64
%7 = alloca i64
%8 = bitcast i64* %3 to i8*
store i64 10, i64* %3
%9 = bitcast i8*** %4 to i8*
store i8** null, i8*** %4
%10 = bitcast i64** %5 to i8*
store i64* null, i64** %5
br label %11
11: ; preds = %17, %2
%12 = phi i8* [ %18, %17 ], [ null, %2 ]
%13 = phi i32 [ %15, %17 ], [ 0, %2 ]
br label %14
14: ; preds = %11, %14
%15 = phi i32 [ 1, %14 ], [ %13, %11 ]
%16 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
switch i32 %16, label %36 [
i32 -1, label %40
i32 100, label %14
i32 102, label %17
i32 63, label %19
]
17: ; preds = %14
%18 = load i8*, i8** @optarg
br label %11
19: ; preds = %14
%20 = load float, float* @optopt
%21 = fcmp oeq float %20, 1.020000e+02
%22 = fcmp oeq float %20, 1.100000e+02
%23 = or i1 %21, %22
br i1 %23, label %29, label %24
24: ; preds = %19
%25 = tail call i32 @isprint(float %20)
%26 = icmp eq i32 %25, 0
%27 = load float, float* @optopt
%28 = select i1 %26, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0)
br label %29
29: ; preds = %19, %24
%30 = phi float [ %27, %24 ], [ %20, %19 ]
%31 = phi i8* [ %28, %24 ], [ getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), %19 ]
%32 = load i32, i32* @stderr
%33 = fpext float %30 to double
%34 = tail call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* %31, double %33)
%35 = tail call i32 @exit(i32 1)
unreachable
36: ; preds = %14
%37 = load i32, i32* @stderr
%38 = tail call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%39 = tail call i32 @exit(i32 1)
unreachable
40: ; preds = %14
%41 = icmp eq i8* %12, null
br i1 %41, label %48, label %42
42: ; preds = %40
%43 = call i32 @parse_sequences(i8* %12, i8*** %4, i64** %5, i64* %3)
%44 = icmp eq i32 %15, 0
%45 = load i64, i64* %3
br i1 %44, label %61, label %46
46: ; preds = %42
%47 = icmp eq i64 %45, 0
br i1 %47, label %90, label %52
48: ; preds = %40
%49 = load i32, i32* @stderr
%50 = tail call i32 (i32, i8*, ...) @fprintf(i32 %49, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%51 = tail call i32 @exit(i32 1)
unreachable
52: ; preds = %46, %52
%53 = phi i64 [ %58, %52 ], [ 0, %46 ]
%54 = load i64*, i64** %5
%55 = getelementptr inbounds i64, i64* %54, i64 %53
%56 = load i64, i64* %55
%57 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i64 %56)
%58 = add nuw i64 %53, 1
%59 = load i64, i64* %3
%60 = icmp ult i64 %58, %59
br i1 %60, label %52, label %90
61: ; preds = %42
%62 = call i64 @binomial_coefficient(i64 %45, i32 2)
%63 = load i64, i64* %3
%64 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i64 %63, i64 %62)
%65 = bitcast i64* %6 to i8*
store i64 0, i64* %6
%66 = bitcast i64* %7 to i8*
store i64 1, i64* %7
%67 = icmp eq i64 %62, 0
br i1 %67, label %85, label %68
68: ; preds = %61, %68
%69 = phi i64 [ %82, %68 ], [ 0, %61 ]
%70 = phi i64 [ %81, %68 ], [ 0, %61 ]
%71 = phi i64 [ %83, %68 ], [ 0, %61 ]
%72 = call i32 @k_combination2(i64 %71, i64* %6, i64* %7)
%73 = load i64*, i64** %5
%74 = load i64, i64* %6
%75 = getelementptr inbounds i64, i64* %73, i64 %74
%76 = load i64, i64* %75
%77 = load i64, i64* %7
%78 = getelementptr inbounds i64, i64* %73, i64 %77
%79 = load i64, i64* %78
%80 = mul i64 %79, %76
%81 = add i64 %80, %70
%82 = add i64 %79, %69
%83 = add nuw i64 %71, 1
%84 = icmp eq i64 %83, %62
br i1 %84, label %85, label %68
85: ; preds = %68, %61
%86 = phi i64 [ 0, %61 ], [ %81, %68 ]
%87 = phi i64 [ 0, %61 ], [ %82, %68 ]
%88 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i64 %86)
%89 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i64 %87)
br label %90
90: ; preds = %52, %46, %85
ret i32 0
}