#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*/ fclose(int /*<<< orphan*/ *);
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*/ t_rev(double *, long, long);
int /*<<< orphan*/ whatido(int, char **, char *, char *);
int main(int argc, char *argv[]) {
  double *y = NULL;
  char file[512];
  long col, delay, n, nmax, nexcl, ifi;
  FILE *fpin = stdin;
  whatido(argc, argv, "time reversal asymmetry", argv[0]);
  nmax = lcan(argc, argv, 'l', 10000000);
  nexcl = lcan(argc, argv, 'x', 0);
  col = lcan(argc, argv, 'c', 0);
  delay = lcan(argc, argv, 'd', 1);
  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 <= delay) {
      fprintf(stderr, "delay too large or time series too short for file %s\n",
              file);
      free(y);
      return 5;
    };
    printf("%lf %s\n", t_rev(y, n, delay), file);
    fclose(fpin);
  }
  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    0x2dd0(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x258(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
lea    0xdc9(%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,-0x240(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0x78,%edx
xor    %ecx,%ecx
call   1050 <lcan@plt>
mov    %rax,-0x248(%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)
movq   $0x1,-0x250(%rbp)
mov    -0x250(%rbp),%rax
mov    %rax,-0x260(%rbp)
mov    $0x0,%al
call   1110 <nstrings@plt>
mov    %rax,%rcx
mov    -0x260(%rbp),%rax
cmp    %rcx,%rax
jg     152b <main+0x33b>
lea    -0x220(%rbp),%rax
mov    %rax,-0x268(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x250(%rbp),%rdx
call   1080 <nthstring@plt>
mov    -0x268(%rbp),%rdi
mov    %eax,%esi
mov    -0x228(%rbp),%rdx
call   1100 <getfile@plt>
mov    %rax,-0x228(%rbp)
movsbl -0x220(%rbp),%eax
cmp    $0x2d,%eax
je     1392 <main+0x1a2>
lea    -0x220(%rbp),%rdi
lea    0xce0(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x258(%rbp)
cmpq   $0x0,-0x258(%rbp)
jne    137a <main+0x18a>
mov    0x2c77(%rip),%rax
mov    (%rax),%edi
lea    -0x220(%rbp),%rdx
lea    0xcb1(%rip),%rsi
call   10c0 <fprintf@plt>
movl   $0x5,-0x4(%rbp)
jmp    153b <main+0x34b>
lea    -0x220(%rbp),%rdi
mov    -0x228(%rbp),%rsi
call   1040 <putcol@plt>
jmp    13a3 <main+0x1b3>
mov    0x2c4f(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x258(%rbp)
movq   $0x0,-0x238(%rbp)
mov    -0x238(%rbp),%rax
cmp    -0x248(%rbp),%rax
jge    1406 <main+0x216>
mov    -0x258(%rbp),%rdi
call   10f0 <readdum@plt>
mov    0x2c0b(%rip),%rcx
cmp    (%rcx),%rax
jne    13ea <main+0x1fa>
movl   $0x4,-0x4(%rbp)
jmp    153b <main+0x34b>
jmp    13ef <main+0x1ff>
mov    -0x238(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x238(%rbp)
jmp    13ae <main+0x1be>
movq   $0x0,-0x238(%rbp)
mov    -0x238(%rbp),%rax
cmp    -0x240(%rbp),%rax
jge    1497 <main+0x2a7>
mov    -0x18(%rbp),%rdi
mov    -0x238(%rbp),%rsi
add    $0x1,%rsi
shl    $0x3,%rsi
call   10d0 <realloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x258(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x238(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rsi
mov    -0x228(%rbp),%rdx
call   1060 <readval@plt>
mov    0x2b73(%rip),%rcx
cmp    (%rcx),%rax
jne    147b <main+0x28b>
jmp    1497 <main+0x2a7>
jmp    1480 <main+0x290>
mov    -0x238(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x238(%rbp)
jmp    1411 <main+0x221>
mov    -0x238(%rbp),%rax
cmp    -0x230(%rbp),%rax
jg     14dc <main+0x2ec>
mov    0x2b1e(%rip),%rax
mov    (%rax),%edi
lea    -0x220(%rbp),%rdx
lea    0xb6d(%rip),%rsi
call   10c0 <fprintf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
movl   $0x5,-0x4(%rbp)
jmp    153b <main+0x34b>
mov    -0x18(%rbp),%rdi
mov    -0x238(%rbp),%rsi
mov    -0x230(%rbp),%rdx
call   10b0 <t_rev@plt>
mov    %eax,%esi
lea    -0x220(%rbp),%rdx
lea    0xb62(%rip),%rdi
call   1090 <printf@plt>
mov    -0x258(%rbp),%rdi
call   1070 <fclose@plt>
mov    -0x250(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x250(%rbp)
jmp    12b5 <main+0xc5>
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,%rbp
mov    %edi,%r15d
mov    (%rsi),%rcx
lea    0xdef(%rip),%rdx
call   10a0 <whatido@plt>
mov    %r15d,%edi
mov    %rbp,%rsi
mov    $0x6c,%edx
mov    $0x989680,%ecx
call   1050 <lcan@plt>
mov    %rax,%r13
mov    %r15d,%edi
mov    %rbp,%rsi
mov    $0x78,%edx
xor    %ecx,%ecx
call   1050 <lcan@plt>
mov    %rax,0x18(%rsp)
mov    %r15d,%edi
mov    %rbp,%rsi
mov    $0x63,%edx
xor    %ecx,%ecx
call   1050 <lcan@plt>
mov    %rax,%rbx
mov    %r15d,0xc(%rsp)
mov    %r15d,%edi
mov    %rbp,0x20(%rsp)
mov    %rbp,%rsi
mov    $0x64,%edx
mov    $0x1,%ecx
call   1050 <lcan@plt>
mov    %rax,0x10(%rsp)
xor    %eax,%eax
call   1110 <nstrings@plt>
test   %rax,%rax
jle    13fa <main+0x20a>
xor    %eax,%eax
test   %r13,%r13
cmovle %rax,%r13
mov    $0x1,%r12d
lea    0x30(%rsp),%rbp
xor    %r14d,%r14d
mov    0xc(%rsp),%edi
mov    0x20(%rsp),%rsi
mov    %r12,%rdx
call   1080 <nthstring@plt>
mov    %rbp,%rdi
mov    %eax,%esi
mov    %rbx,%rdx
call   1100 <getfile@plt>
mov    %rax,%rbx
cmpb   $0x2d,0x30(%rsp)
mov    %r12,0x28(%rsp)
jne    12e0 <main+0xf0>
mov    0x2d0f(%rip),%rax
mov    (%rax),%r15
jmp    1306 <main+0x116>
xchg   %ax,%ax
mov    %rbp,%rdi
lea    0xd2e(%rip),%rsi
call   10e0 <fopen@plt>
test   %rax,%rax
je     1442 <main+0x252>
mov    %rax,%r15
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1040 <putcol@plt>
mov    0x18(%rsp),%rax
mov    %rax,%rbp
test   %rax,%rax
jle    133e <main+0x14e>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r15,%rdi
call   10f0 <readdum@plt>
mov    0x2cb1(%rip),%rcx
cmp    (%rcx),%rax
je     13f3 <main+0x203>
add    $0xffffffffffffffff,%rbp
jne    1320 <main+0x130>
mov    $0x1,%ebp
mov    $0x8,%r12d
nopl   0x0(%rax)
mov    %r13,%rax
add    %rbp,%rax
cmp    $0x1,%rax
je     13a0 <main+0x1b0>
mov    %r14,%rdi
mov    %r12,%rsi
call   10d0 <realloc@plt>
mov    %rax,%r14
lea    (%rax,%r12,1),%rsi
add    $0xfffffffffffffff8,%rsi
mov    %r15,%rdi
mov    %rbx,%rdx
call   1060 <readval@plt>
add    $0xffffffffffffffff,%rbp
add    $0x8,%r12
mov    0x2c54(%rip),%rcx
cmp    (%rcx),%rax
jne    1350 <main+0x160>
neg    %rbp
jmp    13a3 <main+0x1b3>
cs nopw 0x0(%rax,%rax,1)
mov    %r13,%rbp
mov    0x10(%rsp),%rdx
cmp    %rdx,%rbp
jle    1419 <main+0x229>
mov    %r14,%rdi
mov    %rbp,%rsi
call   10b0 <t_rev@plt>
lea    0xca6(%rip),%rdi
mov    %eax,%esi
lea    0x30(%rsp),%rdx
call   1090 <printf@plt>
mov    %r15,%rdi
call   1070 <fclose@plt>
mov    0x28(%rsp),%rbp
lea    0x1(%rbp),%r12
xor    %eax,%eax
call   1110 <nstrings@plt>
cmp    %rax,%rbp
lea    0x30(%rsp),%rbp
jl     12a5 <main+0xb5>
jmp    13fd <main+0x20d>
mov    $0x4,%eax
jmp    1407 <main+0x217>
xor    %r14d,%r14d
mov    %r14,%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    0x2bb0(%rip),%rax
mov    (%rax),%edi
lea    0xc06(%rip),%rsi
lea    0x30(%rsp),%rdx
call   10c0 <fprintf@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    $0x5,%eax
jmp    1407 <main+0x217>
mov    0x2b87(%rip),%rax
mov    (%rax),%edi
lea    0xbc8(%rip),%rsi
lea    0x30(%rsp),%rdx
call   10c0 <fprintf@plt>
mov    $0x5,%eax
jmp    1407 <main+0x217>

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

LLVM IR (-O2):
@stdin = global i32* null
@.str = [24 x i8] c"time reversal asymmetry\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 ([24 x i8], [24 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 = call i64 (...) @nstrings()
%12 = icmp slt i64 %11, 1
br i1 %12, label %75, label %13
13: ; preds = %2
%14 = icmp sgt i64 %8, 0
%15 = call i64 @llvm.smax.i64(i64 %7, i64 0)
br label %16
16: ; preds = %13, %68
%17 = phi i64 [ 1, %13 ], [ %72, %68 ]
%18 = phi double* [ null, %13 ], [ %62, %68 ]
%19 = phi i64 [ %9, %13 ], [ %21, %68 ]
%20 = call i32 @nthstring(i32 %0, i8** %1, i64 %17)
%21 = call i64 @getfile(i8* %4, i32 %20, i64 %19)
%22 = load i8, i8* %4
%23 = icmp eq i8 %22, 45
br i1 %23, label %32, label %24
24: ; preds = %16
%25 = call i32* @fopen(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%26 = icmp eq i32* %25, null
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load i32, i32* @stderr
%29 = call i32 @fprintf(i32 %28, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i8* %4)
br label %78
30: ; preds = %24
%31 = call i32 @putcol(i8* %4, i64 %21)
br label %34
32: ; preds = %16
%33 = load i32*, i32** @stdin
br label %34
34: ; preds = %32, %30
%35 = phi i32* [ %25, %30 ], [ %33, %32 ]
br i1 %14, label %39, label %36
36: ; preds = %37, %34
br label %45
37: ; preds = %39
%38 = icmp eq i64 %44, %8
br i1 %38, label %36, label %39
39: ; preds = %34, %37
%40 = phi i64 [ %44, %37 ], [ 0, %34 ]
%41 = call i64 @readdum(i32* %35)
%42 = load i64, i64* @EOF
%43 = icmp eq i64 %41, %42
%44 = add nuw nsw i64 %40, 1
br i1 %43, label %78, label %37
45: ; preds = %36, %49
%46 = phi i64 [ %50, %49 ], [ 0, %36 ]
%47 = phi double* [ %53, %49 ], [ %18, %36 ]
%48 = icmp eq i64 %46, %15
br i1 %48, label %60, label %49
49: ; preds = %45
%50 = add nuw i64 %46, 1
%51 = shl i64 %50, 3
%52 = call i64 @realloc(double* %47, i64 %51)
%53 = inttoptr i64 %52 to double*
%54 = getelementptr inbounds double, double* %53, i64 %46
%55 = call i64 @readval(i32* %35, double* %54, i64 %21)
%56 = load i64, i64* @EOF
%57 = icmp eq i64 %55, %56
br i1 %57, label %58, label %45
58: ; preds = %49
%59 = inttoptr i64 %52 to double*
br label %60
60: ; preds = %45, %58
%61 = phi i64 [ %46, %58 ], [ %15, %45 ]
%62 = phi double* [ %59, %58 ], [ %47, %45 ]
%63 = icmp sgt i64 %61, %10
br i1 %63, label %68, label %64
64: ; preds = %60
%65 = load i32, i32* @stderr
%66 = call i32 @fprintf(i32 %65, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.3, i64 0, i64 0), i8* %4)
%67 = call i32 @free(double* %62)
br label %78
68: ; preds = %60
%69 = call i32 @t_rev(double* %62, i64 %61, i64 %10)
%70 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i32 %69, i8* %4)
%71 = call i32 @fclose(i32* %35)
%72 = add nuw nsw i64 %17, 1
%73 = call i64 (...) @nstrings()
%74 = icmp slt i64 %17, %73
br i1 %74, label %16, label %75
75: ; preds = %68, %2
%76 = phi double* [ null, %2 ], [ %62, %68 ]
%77 = call i32 @free(double* %76)
br label %78
78: ; preds = %39, %75, %64, %27
%79 = phi i32 [ 5, %27 ], [ 5, %64 ], [ 0, %75 ], [ 4, %39 ]
ret i32 %79
}