#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ EOF;
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ free(double *);
long getfile(char *, int /*<<< orphan*/, long);
long lcan(int, char **, char, int);
long nstrings();
int /*<<< orphan*/ nthstring(int, char **, long);
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/, char *);
int /*<<< orphan*/ putcol(char *, long);
scalar_t__ readdum(int /*<<< orphan*/ *);
scalar_t__ readval(int /*<<< orphan*/ *, double *, long);
scalar_t__ realloc(double *, size_t);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ *stdin;
int /*<<< orphan*/ third_auto(double *, long, long, long);
int /*<<< orphan*/ whatido(int, char **, char *, char *);
int main(int argc, char *argv[]) {
  double *y = NULL;
  char file[512];
  long col, delay1, delay2, ifi, n, nmax, nexcl;
  FILE *fpin = stdin;
  whatido(argc, argv, "three point autocorrelation", argv[0]);
  nmax = lcan(argc, argv, 'l', 10000000);
  nexcl = lcan(argc, argv, 'x', 0);
  col = lcan(argc, argv, 'c', 0);
  delay1 = lcan(argc, argv, 'd', 1);
  delay2 = lcan(argc, argv, 'D', 2 * delay1);
  for (ifi = 1; ifi <= nstrings(); ifi++) {
    col = getfile(file, nthstring(argc, argv, ifi), col);
    if (file[0] != '-') {
      fpin = fopen(file, "r");
      if (fpin == NULL) {
        fprintf(stderr, "cannot open file %s\n", file);
        return 5;
      }
      putcol(file, col);
    } else
      fpin = stdin;
    for (n = 0; n < nexcl; n++)
      if (readdum(fpin) == EOF)
        return 4;
    for (n = 0; n < nmax; n++) {
      y = (double *)realloc(y, (size_t)((n + 1) * sizeof(double)));
      if (readval(fpin, y + n, col) == EOF)
        break;
    }
    if ((n <= delay1) || (n <= delay2)) {
      fprintf(stderr, "delay too large or time series too short for file %s\n",
              file);
      free(y);
      return 5;
    };
    printf("%lf %s\n", third_auto(y, n, delay1, delay2), file);
  }
  free(y);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x270,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
mov    0x2de0(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x260(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
lea    0xdd9(%rip),%rdx
call   10a0 <whatido@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0x6c,%edx
mov    $0x989680,%ecx
call   1050 <lcan@plt>
mov    %rax,-0x250(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0x78,%edx
xor    %ecx,%ecx
call   1050 <lcan@plt>
mov    %rax,-0x258(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0x63,%edx
xor    %ecx,%ecx
call   1050 <lcan@plt>
mov    %rax,-0x228(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0x64,%edx
mov    $0x1,%ecx
call   1050 <lcan@plt>
mov    %rax,-0x230(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x230(%rbp),%rax
shl    $0x1,%rax
mov    %eax,%ecx
mov    $0x44,%edx
call   1050 <lcan@plt>
mov    %rax,-0x238(%rbp)
movq   $0x1,-0x240(%rbp)
mov    -0x240(%rbp),%rax
mov    %rax,-0x268(%rbp)
mov    $0x0,%al
call   1100 <nstrings@plt>
mov    %rax,%rcx
mov    -0x268(%rbp),%rax
cmp    %rcx,%rax
jg     154f <main+0x36f>
lea    -0x220(%rbp),%rax
mov    %rax,-0x270(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x240(%rbp),%rdx
call   1080 <nthstring@plt>
mov    -0x270(%rbp),%rdi
mov    %eax,%esi
mov    -0x228(%rbp),%rdx
call   10f0 <getfile@plt>
mov    %rax,-0x228(%rbp)
movsbl -0x220(%rbp),%eax
cmp    $0x2d,%eax
je     13a7 <main+0x1c7>
lea    -0x220(%rbp),%rdi
lea    0xccf(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x260(%rbp)
cmpq   $0x0,-0x260(%rbp)
jne    138f <main+0x1af>
mov    0x2c62(%rip),%rax
mov    (%rax),%edi
lea    -0x220(%rbp),%rdx
lea    0xca0(%rip),%rsi
call   10b0 <fprintf@plt>
movl   $0x5,-0x4(%rbp)
jmp    155f <main+0x37f>
lea    -0x220(%rbp),%rdi
mov    -0x228(%rbp),%rsi
call   1040 <putcol@plt>
jmp    13b8 <main+0x1d8>
mov    0x2c3a(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x260(%rbp)
movq   $0x0,-0x248(%rbp)
mov    -0x248(%rbp),%rax
cmp    -0x258(%rbp),%rax
jge    141b <main+0x23b>
mov    -0x260(%rbp),%rdi
call   10e0 <readdum@plt>
mov    0x2bf6(%rip),%rcx
cmp    (%rcx),%rax
jne    13ff <main+0x21f>
movl   $0x4,-0x4(%rbp)
jmp    155f <main+0x37f>
jmp    1404 <main+0x224>
mov    -0x248(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x248(%rbp)
jmp    13c3 <main+0x1e3>
movq   $0x0,-0x248(%rbp)
mov    -0x248(%rbp),%rax
cmp    -0x250(%rbp),%rax
jge    14ac <main+0x2cc>
mov    -0x18(%rbp),%rdi
mov    -0x248(%rbp),%rsi
add    $0x1,%rsi
shl    $0x3,%rsi
call   10c0 <realloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x260(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x248(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rsi
mov    -0x228(%rbp),%rdx
call   1060 <readval@plt>
mov    0x2b5e(%rip),%rcx
cmp    (%rcx),%rax
jne    1490 <main+0x2b0>
jmp    14ac <main+0x2cc>
jmp    1495 <main+0x2b5>
mov    -0x248(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x248(%rbp)
jmp    1426 <main+0x246>
mov    -0x248(%rbp),%rax
cmp    -0x230(%rbp),%rax
jle    14d4 <main+0x2f4>
mov    -0x248(%rbp),%rax
cmp    -0x238(%rbp),%rax
jg     1505 <main+0x325>
mov    0x2af5(%rip),%rax
mov    (%rax),%edi
lea    -0x220(%rbp),%rdx
lea    0xb48(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
movl   $0x5,-0x4(%rbp)
jmp    155f <main+0x37f>
mov    -0x18(%rbp),%rdi
mov    -0x248(%rbp),%rsi
mov    -0x230(%rbp),%rdx
mov    -0x238(%rbp),%rcx
call   1070 <third_auto@plt>
mov    %eax,%esi
lea    -0x220(%rbp),%rdx
lea    0xb36(%rip),%rdi
call   1090 <printf@plt>
mov    -0x240(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x240(%rbp)
jmp    12ca <main+0xea>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x270,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x238,%rsp
mov    %rsi,%r14
mov    %edi,%ebp
mov    (%rsi),%rcx
lea    0xe00(%rip),%rdx
call   10a0 <whatido@plt>
mov    %ebp,%edi
mov    %r14,%rsi
mov    $0x6c,%edx
mov    $0x989680,%ecx
call   1050 <lcan@plt>
mov    %rax,%r13
mov    %ebp,%edi
mov    %r14,%rsi
mov    $0x78,%edx
xor    %ecx,%ecx
call   1050 <lcan@plt>
mov    %rax,0x20(%rsp)
mov    %ebp,%edi
mov    %r14,%rsi
mov    $0x63,%edx
xor    %ecx,%ecx
call   1050 <lcan@plt>
mov    %rax,%rbx
mov    %ebp,%edi
mov    %r14,%rsi
mov    $0x64,%edx
mov    $0x1,%ecx
call   1050 <lcan@plt>
mov    %rax,0x10(%rsp)
lea    (%rax,%rax,1),%ecx
mov    %ebp,0x4(%rsp)
mov    %ebp,%edi
mov    %r14,%rsi
mov    $0x44,%edx
call   1050 <lcan@plt>
mov    %rax,0x8(%rsp)
xor    %eax,%eax
call   1100 <nstrings@plt>
test   %rax,%rax
jle    13ff <main+0x21f>
xor    %eax,%eax
test   %r13,%r13
cmovle %rax,%r13
mov    $0x1,%ebp
lea    0x30(%rsp),%r15
xor    %r12d,%r12d
mov    %r14,0x18(%rsp)
mov    0x4(%rsp),%edi
mov    %r14,%rsi
mov    %rbp,%rdx
call   1080 <nthstring@plt>
mov    %r15,%rdi
mov    %eax,%esi
mov    %rbx,%rdx
call   10f0 <getfile@plt>
mov    %rax,%rbx
cmpb   $0x2d,0x30(%rsp)
mov    %rbp,0x28(%rsp)
jne    12e0 <main+0x100>
mov    0x2d11(%rip),%rax
mov    (%rax),%r15
jmp    1306 <main+0x126>
nopl   0x0(%rax)
mov    %r15,%rdi
lea    0xd32(%rip),%rsi
call   10d0 <fopen@plt>
test   %rax,%rax
je     1447 <main+0x267>
mov    %r15,%rdi
mov    %rax,%r15
mov    %rbx,%rsi
call   1040 <putcol@plt>
mov    0x20(%rsp),%rax
mov    %rax,%rbp
test   %rax,%rax
jle    133e <main+0x15e>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r15,%rdi
call   10e0 <readdum@plt>
mov    0x2cb1(%rip),%rcx
cmp    (%rcx),%rax
je     13f8 <main+0x218>
add    $0xffffffffffffffff,%rbp
jne    1320 <main+0x140>
mov    $0x1,%ebp
mov    $0x8,%r14d
nopl   0x0(%rax)
mov    %r13,%rax
add    %rbp,%rax
cmp    $0x1,%rax
je     13a0 <main+0x1c0>
mov    %r12,%rdi
mov    %r14,%rsi
call   10c0 <realloc@plt>
mov    %rax,%r12
lea    (%rax,%r14,1),%rsi
add    $0xfffffffffffffff8,%rsi
mov    %r15,%rdi
mov    %rbx,%rdx
call   1060 <readval@plt>
add    $0xffffffffffffffff,%rbp
add    $0x8,%r14
mov    0x2c54(%rip),%rcx
cmp    (%rcx),%rax
jne    1350 <main+0x170>
neg    %rbp
jmp    13a3 <main+0x1c3>
cs nopw 0x0(%rax,%rax,1)
mov    %r13,%rbp
mov    0x10(%rsp),%rdx
mov    0x8(%rsp),%rcx
lea    0x30(%rsp),%r15
cmp    %rdx,%rbp
jle    141e <main+0x23e>
cmp    %rcx,%rbp
jle    141e <main+0x23e>
mov    %r12,%rdi
mov    %rbp,%rsi
call   1070 <third_auto@plt>
lea    0xc9b(%rip),%rdi
mov    %eax,%esi
mov    %r15,%rdx
call   1090 <printf@plt>
mov    0x28(%rsp),%r14
lea    0x1(%r14),%rbp
xor    %eax,%eax
call   1100 <nstrings@plt>
cmp    %rax,%r14
mov    0x18(%rsp),%r14
jl     12a5 <main+0xc5>
jmp    1402 <main+0x222>
mov    $0x4,%eax
jmp    140c <main+0x22c>
xor    %r12d,%r12d
mov    %r12,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x238,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2bab(%rip),%rax
mov    (%rax),%edi
lea    0xc05(%rip),%rsi
lea    0x30(%rsp),%rdx
call   10b0 <fprintf@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    $0x5,%eax
jmp    140c <main+0x22c>
mov    0x2b82(%rip),%rax
mov    (%rax),%edi
lea    0xbc7(%rip),%rsi
lea    0x30(%rsp),%rdx
call   10b0 <fprintf@plt>
mov    $0x5,%eax
jmp    140c <main+0x22c>

LLVM IR (-O0):
@stdin = global i32* null
@.str = [28 x i8] c"three point autocorrelation\00"
@.str.1 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.2 = [21 x i8] c"cannot open file %s\0A\00"
@EOF = global i64 0
@.str.3 = [54 x i8] c"delay too large or time series too short for file %s\0A\00"
@.str.4 = [8 x i8] c"%lf %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca double*
%7 = alloca [512 x i8]
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
%15 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store double* null, double** %6
%16 = load i32*, i32** @stdin
store i32* %16, i32** %15
%17 = load i32, i32* %4
%18 = load i8**, i8*** %5
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 0
%21 = load i8*, i8** %20
%22 = call i32 @whatido(i32 %17, i8** %18, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %21)
%23 = load i32, i32* %4
%24 = load i8**, i8*** %5
%25 = call i64 @lcan(i32 %23, i8** %24, i8 signext 108, i32 10000000)
store i64 %25, i64* %13
%26 = load i32, i32* %4
%27 = load i8**, i8*** %5
%28 = call i64 @lcan(i32 %26, i8** %27, i8 signext 120, i32 0)
store i64 %28, i64* %14
%29 = load i32, i32* %4
%30 = load i8**, i8*** %5
%31 = call i64 @lcan(i32 %29, i8** %30, i8 signext 99, i32 0)
store i64 %31, i64* %8
%32 = load i32, i32* %4
%33 = load i8**, i8*** %5
%34 = call i64 @lcan(i32 %32, i8** %33, i8 signext 100, i32 1)
store i64 %34, i64* %9
%35 = load i32, i32* %4
%36 = load i8**, i8*** %5
%37 = load i64, i64* %9
%38 = mul nsw i64 2, %37
%39 = trunc i64 %38 to i32
%40 = call i64 @lcan(i32 %35, i8** %36, i8 signext 68, i32 %39)
store i64 %40, i64* %10
store i64 1, i64* %11
br label %41
41: ; preds = %134, %2
%42 = load i64, i64* %11
%43 = call i64 (...) @nstrings()
%44 = icmp sle i64 %42, %43
br i1 %44, label %45, label %137
45: ; preds = %41
%46 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%47 = load i32, i32* %4
%48 = load i8**, i8*** %5
%49 = load i64, i64* %11
%50 = call i32 @nthstring(i32 %47, i8** %48, i64 %49)
%51 = load i64, i64* %8
%52 = call i64 @getfile(i8* %46, i32 %50, i64 %51)
store i64 %52, i64* %8
%53 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%54 = load i8, i8* %53
%55 = sext i8 %54 to i32
%56 = icmp ne i32 %55, 45
br i1 %56, label %57, label %70
57: ; preds = %45
%58 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%59 = call i32* @fopen(i8* %58, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %59, i32** %15
%60 = load i32*, i32** %15
%61 = icmp eq i32* %60, null
br i1 %61, label %62, label %66
62: ; preds = %57
%63 = load i32, i32* @stderr
%64 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%65 = call i32 @fprintf(i32 %63, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i8* %64)
store i32 5, i32* %3
br label %140
66: ; preds = %57
%67 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%68 = load i64, i64* %8
%69 = call i32 @putcol(i8* %67, i64 %68)
br label %72
70: ; preds = %45
%71 = load i32*, i32** @stdin
store i32* %71, i32** %15
br label %72
72: ; preds = %70, %66
store i64 0, i64* %12
br label %73
73: ; preds = %84, %72
%74 = load i64, i64* %12
%75 = load i64, i64* %14
%76 = icmp slt i64 %74, %75
br i1 %76, label %77, label %87
77: ; preds = %73
%78 = load i32*, i32** %15
%79 = call i64 @readdum(i32* %78)
%80 = load i64, i64* @EOF
%81 = icmp eq i64 %79, %80
br i1 %81, label %82, label %83
82: ; preds = %77
store i32 4, i32* %3
br label %140
83: ; preds = %77
br label %84
84: ; preds = %83
%85 = load i64, i64* %12
%86 = add nsw i64 %85, 1
store i64 %86, i64* %12
br label %73
87: ; preds = %73
store i64 0, i64* %12
br label %88
88: ; preds = %109, %87
%89 = load i64, i64* %12
%90 = load i64, i64* %13
%91 = icmp slt i64 %89, %90
br i1 %91, label %92, label %112
92: ; preds = %88
%93 = load double*, double** %6
%94 = load i64, i64* %12
%95 = add nsw i64 %94, 1
%96 = mul i64 %95, 8
%97 = call i64 @realloc(double* %93, i64 %96)
%98 = inttoptr i64 %97 to double*
store double* %98, double** %6
%99 = load i32*, i32** %15
%100 = load double*, double** %6
%101 = load i64, i64* %12
%102 = getelementptr inbounds double, double* %100, i64 %101
%103 = load i64, i64* %8
%104 = call i64 @readval(i32* %99, double* %102, i64 %103)
%105 = load i64, i64* @EOF
%106 = icmp eq i64 %104, %105
br i1 %106, label %107, label %108
107: ; preds = %92
br label %112
108: ; preds = %92
br label %109
109: ; preds = %108
%110 = load i64, i64* %12
%111 = add nsw i64 %110, 1
store i64 %111, i64* %12
br label %88
112: ; preds = %107, %88
%113 = load i64, i64* %12
%114 = load i64, i64* %9
%115 = icmp sle i64 %113, %114
br i1 %115, label %120, label %116
116: ; preds = %112
%117 = load i64, i64* %12
%118 = load i64, i64* %10
%119 = icmp sle i64 %117, %118
br i1 %119, label %120, label %126
120: ; preds = %116, %112
%121 = load i32, i32* @stderr
%122 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%123 = call i32 @fprintf(i32 %121, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.3, i64 0, i64 0), i8* %122)
%124 = load double*, double** %6
%125 = call i32 @free(double* %124)
store i32 5, i32* %3
br label %140
126: ; preds = %116
%127 = load double*, double** %6
%128 = load i64, i64* %12
%129 = load i64, i64* %9
%130 = load i64, i64* %10
%131 = call i32 @third_auto(double* %127, i64 %128, i64 %129, i64 %130)
%132 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%133 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i32 %131, i8* %132)
br label %134
134: ; preds = %126
%135 = load i64, i64* %11
%136 = add nsw i64 %135, 1
store i64 %136, i64* %11
br label %41
137: ; preds = %41
%138 = load double*, double** %6
%139 = call i32 @free(double* %138)
store i32 0, i32* %3
br label %140
140: ; preds = %137, %120, %82, %62
%141 = load i32, i32* %3
ret i32 %141
}

LLVM IR (-O2):
@stdin = global i32* null
@.str = [28 x i8] c"three point autocorrelation\00"
@.str.1 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.2 = [21 x i8] c"cannot open file %s\0A\00"
@EOF = global i64 0
@.str.3 = [54 x i8] c"delay too large or time series too short for file %s\0A\00"
@.str.4 = [8 x i8] c"%lf %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca [512 x i8]
%4 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%5 = load i8*, i8** %1
%6 = tail call i32 @whatido(i32 %0, i8** %1, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = tail call i64 @lcan(i32 %0, i8** %1, i8 signext 108, i32 10000000)
%8 = tail call i64 @lcan(i32 %0, i8** %1, i8 signext 120, i32 0)
%9 = tail call i64 @lcan(i32 %0, i8** %1, i8 signext 99, i32 0)
%10 = tail call i64 @lcan(i32 %0, i8** %1, i8 signext 100, i32 1)
%11 = trunc i64 %10 to i32
%12 = shl i32 %11, 1
%13 = tail call i64 @lcan(i32 %0, i8** %1, i8 signext 68, i32 %12)
%14 = call i64 (...) @nstrings()
%15 = icmp slt i64 %14, 1
br i1 %15, label %79, label %16
16: ; preds = %2
%17 = icmp sgt i64 %8, 0
%18 = call i64 @llvm.smax.i64(i64 %7, i64 0)
br label %19
19: ; preds = %16, %73
%20 = phi double* [ null, %16 ], [ %65, %73 ]
%21 = phi i64 [ 1, %16 ], [ %76, %73 ]
%22 = phi i64 [ %9, %16 ], [ %24, %73 ]
%23 = call i32 @nthstring(i32 %0, i8** %1, i64 %21)
%24 = call i64 @getfile(i8* %4, i32 %23, i64 %22)
%25 = load i8, i8* %4
%26 = icmp eq i8 %25, 45
br i1 %26, label %35, label %27
27: ; preds = %19
%28 = call i32* @fopen(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%29 = icmp eq i32* %28, null
br i1 %29, label %30, label %33
30: ; preds = %27
%31 = load i32, i32* @stderr
%32 = call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i8* %4)
br label %82
33: ; preds = %27
%34 = call i32 @putcol(i8* %4, i64 %24)
br label %37
35: ; preds = %19
%36 = load i32*, i32** @stdin
br label %37
37: ; preds = %35, %33
%38 = phi i32* [ %28, %33 ], [ %36, %35 ]
br i1 %17, label %42, label %39
39: ; preds = %40, %37
br label %48
40: ; preds = %42
%41 = icmp eq i64 %47, %8
br i1 %41, label %39, label %42
42: ; preds = %37, %40
%43 = phi i64 [ %47, %40 ], [ 0, %37 ]
%44 = call i64 @readdum(i32* %38)
%45 = load i64, i64* @EOF
%46 = icmp eq i64 %44, %45
%47 = add nuw nsw i64 %43, 1
br i1 %46, label %82, label %40
48: ; preds = %39, %52
%49 = phi i64 [ %53, %52 ], [ 0, %39 ]
%50 = phi double* [ %56, %52 ], [ %20, %39 ]
%51 = icmp eq i64 %49, %18
br i1 %51, label %63, label %52
52: ; preds = %48
%53 = add nuw i64 %49, 1
%54 = shl i64 %53, 3
%55 = call i64 @realloc(double* %50, i64 %54)
%56 = inttoptr i64 %55 to double*
%57 = getelementptr inbounds double, double* %56, i64 %49
%58 = call i64 @readval(i32* %38, double* %57, i64 %24)
%59 = load i64, i64* @EOF
%60 = icmp eq i64 %58, %59
br i1 %60, label %61, label %48
61: ; preds = %52
%62 = inttoptr i64 %55 to double*
br label %63
63: ; preds = %48, %61
%64 = phi i64 [ %49, %61 ], [ %18, %48 ]
%65 = phi double* [ %62, %61 ], [ %50, %48 ]
%66 = icmp sgt i64 %64, %10
%67 = icmp sgt i64 %64, %13
%68 = select i1 %66, i1 %67, i1 false
br i1 %68, label %73, label %69
69: ; preds = %63
%70 = load i32, i32* @stderr
%71 = call i32 @fprintf(i32 %70, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.3, i64 0, i64 0), i8* %4)
%72 = call i32 @free(double* %65)
br label %82
73: ; preds = %63
%74 = call i32 @third_auto(double* %65, i64 %64, i64 %10, i64 %13)
%75 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i32 %74, i8* %4)
%76 = add nuw nsw i64 %21, 1
%77 = call i64 (...) @nstrings()
%78 = icmp slt i64 %21, %77
br i1 %78, label %19, label %79
79: ; preds = %73, %2
%80 = phi double* [ null, %2 ], [ %65, %73 ]
%81 = call i32 @free(double* %80)
br label %82
82: ; preds = %42, %79, %69, %30
%83 = phi i32 [ 5, %30 ], [ 5, %69 ], [ 0, %79 ], [ 4, %42 ]
ret i32 %83
}