#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 */
int EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ LC_NUMERIC;
int /*<<< orphan*/ doubleToLaTeX(char *, double);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *, ...);
int /*<<< orphan*/ setlocale(int /*<<< orphan*/, char *);
int /*<<< orphan*/ sscanf(char *, char *, char *, long *, long *, double *,
                          double *, double *, double *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ *stdout;
int main(int argc, char **argv) {
  char line[8192];
  FILE *in1, *in2;
  FILE *out = stdout;
  if (argc != 3) {
    fprintf(stderr, "Usage: %s cuda.txt tbb.txt\n", argv[0]);
    return EXIT_FAILURE;
  }
  in1 = fopen(argv[1], "r");
  in2 = fopen(argv[2], "r");
  if (in1 == NULL || in2 == NULL) {
    fprintf(stderr, "Unable to open either '%s' or '%s'!\n", argv[1], argv[2]);
    return EXIT_FAILURE;
  }
  setlocale(LC_NUMERIC, "en_US.utf-8");
  while (!feof(in1) || !feof(in2)) {
    char name[8192];
    long nrVertices, nrEdges;
    char time1Str[8192], time2Str[8192];
    double mod1 = -1.0, mod1Dev = 0.0, time1 = -1.0, time1Dev = -1.0;
    double mod2 = -1.0, mod2Dev = 0.0, time2 = -1.0, time2Dev = -1.0;
    if (fgets(line, 8192, in1) != NULL) {
      sscanf(line, "%s %ld %ld %lf %lf %lf %lf", name, &nrVertices, &nrEdges,
             &mod1, &mod1Dev, &time1, &time1Dev);
    }
    if (fgets(line, 8192, in2) != NULL) {
      sscanf(line, "%s %ld %ld %lf %lf %lf %lf", name, &nrVertices, &nrEdges,
             &mod2, &mod2Dev, &time2, &time2Dev);
    }
    doubleToLaTeX(time1Str, time1);
    doubleToLaTeX(time2Str, time2);
    fprintf(out, "\\texttt{%s} & %'ld & %'ld & %.2f & %s & %.2f & %s \\\\\n",
            name, nrVertices, nrEdges, mod1, time1Str, mod2, time2Str);
  }
  fclose(in1);
  fclose(in2);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80a0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e28(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x2028(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     11e4 <main+0x64>
mov    0x2e1d(%rip),%rax
movslq (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe3c(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2df6(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    14cb <main+0x34b>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe31(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x2018(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe16(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x2020(%rbp)
cmpq   $0x0,-0x2018(%rbp)
je     1236 <main+0xb6>
cmpq   $0x0,-0x2020(%rbp)
jne    126f <main+0xef>
mov    0x2d9b(%rip),%rax
movslq (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rcx
lea    0xdcf(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2d6b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    14cb <main+0x34b>
mov    0x2d72(%rip),%rax
mov    (%rax),%edi
lea    0xdcc(%rip),%rsi
call   1090 <setlocale@plt>
mov    -0x2018(%rbp),%rdi
call   1070 <feof@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0x8081(%rbp)
je     12bd <main+0x13d>
mov    -0x2020(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x8081(%rbp)
mov    -0x8081(%rbp),%al
test   $0x1,%al
jne    12d0 <main+0x150>
jmp    14a7 <main+0x327>
movsd  0xd28(%rip),%xmm0
movsd  %xmm0,-0x8048(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8050(%rbp)
ff
movsd  0xd0d(%rip),%xmm0
movsd  %xmm0,-0x8058(%rbp)
ff
movsd  0xcfd(%rip),%xmm0
movsd  %xmm0,-0x8060(%rbp)
ff
movsd  0xced(%rip),%xmm0
movsd  %xmm0,-0x8068(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8070(%rbp)
ff
movsd  0xcd2(%rip),%xmm0
movsd  %xmm0,-0x8078(%rbp)
ff
movsd  0xcc2(%rip),%xmm0
movsd  %xmm0,-0x8080(%rbp)
ff
lea    -0x2010(%rbp),%rdi
mov    -0x2018(%rbp),%rdx
mov    $0x2000,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
je     13ba <main+0x23a>
lea    -0x2010(%rbp),%rdi
lea    -0x4030(%rbp),%rdx
lea    0xcda(%rip),%rsi
lea    -0x4038(%rbp),%rcx
lea    -0x4040(%rbp),%r8
lea    -0x8048(%rbp),%r9
lea    -0x8050(%rbp),%r11
lea    -0x8058(%rbp),%r10
lea    -0x8060(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1080 <sscanf@plt>
lea    -0x2010(%rbp),%rdi
mov    -0x2020(%rbp),%rdx
mov    $0x2000,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
je     142e <main+0x2ae>
lea    -0x2010(%rbp),%rdi
lea    -0x4030(%rbp),%rdx
lea    0xc66(%rip),%rsi
lea    -0x4038(%rbp),%rcx
lea    -0x4040(%rbp),%r8
lea    -0x8068(%rbp),%r9
lea    -0x8070(%rbp),%r11
lea    -0x8078(%rbp),%r10
lea    -0x8080(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1080 <sscanf@plt>
lea    -0x6040(%rbp),%rdi
movsd  -0x8058(%rbp),%xmm0
ff
call   1040 <doubleToLaTeX@plt>
lea    -0x8040(%rbp),%rdi
movsd  -0x8078(%rbp),%xmm0
ff
call   1040 <doubleToLaTeX@plt>
mov    -0x2028(%rbp),%rdi
lea    -0x4030(%rbp),%rdx
mov    -0x4038(%rbp),%rcx
mov    -0x4040(%rbp),%r8
movsd  -0x8048(%rbp),%xmm0
ff
lea    -0x6040(%rbp),%r9
movsd  -0x8068(%rbp),%xmm1
ff
lea    -0x8040(%rbp),%rax
lea    0xbdb(%rip),%rsi
mov    %rax,(%rsp)
mov    $0x2,%al
call   1060 <fprintf@plt>
jmp    1284 <main+0x104>
mov    -0x2018(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x2020(%rbp),%rdi
call   1030 <fclose@plt>
mov    0x2afa(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x8068,%rsp
mov    %rsi,%rbx
cmp    $0x3,%edi
jne    1385 <main+0x205>
mov    0x2e24(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x38(%rsp)
mov    0x8(%rbx),%rdi
lea    0xe65(%rip),%r14
mov    %r14,%rsi
call   10a0 <fopen@plt>
mov    %rax,%r13
mov    0x10(%rbx),%rdi
mov    %r14,%rsi
call   10a0 <fopen@plt>
test   %r13,%r13
je     13a9 <main+0x229>
mov    %rax,%r15
test   %rax,%rax
je     13a9 <main+0x229>
mov    0x2dfe(%rip),%rax
mov    (%rax),%edi
lea    0xe50(%rip),%rsi
call   1090 <setlocale@plt>
lea    0x6060(%rsp),%r14
jmp    127b <main+0xfb>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  0x18(%rsp),%xmm0
lea    0x2060(%rsp),%rbp
mov    %rbp,%rdi
call   1040 <doubleToLaTeX@plt>
movsd  0x8(%rsp),%xmm0
mov    %r14,%r15
lea    0x60(%rsp),%r14
mov    %r14,%rdi
call   1040 <doubleToLaTeX@plt>
mov    0x30(%rsp),%rcx
mov    0x28(%rsp),%r8
movsd  0x20(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
sub    $0x8,%rsp
mov    0x40(%rsp),%rdi
lea    0xe08(%rip),%rsi
mov    %rbx,%rdx
mov    %rbp,%r9
mov    $0x2,%al
push   %r14
mov    %r15,%r14
call   1060 <fprintf@plt>
add    $0x10,%rsp
mov    %r12,%r15
mov    %r13,%rdi
call   1070 <feof@plt>
test   %eax,%eax
je     1297 <main+0x117>
mov    %r15,%rdi
call   1070 <feof@plt>
test   %eax,%eax
jne    13d2 <main+0x252>
movabs $0xbff0000000000000,%rax
mov    %rax,0x20(%rsp)
movq   $0x0,0x58(%rsp)
mov    %rax,0x18(%rsp)
mov    %rax,0x50(%rsp)
mov    %rax,0x10(%rsp)
movq   $0x0,0x48(%rsp)
mov    %rax,0x8(%rsp)
mov    %rax,0x40(%rsp)
mov    %r14,%rdi
mov    $0x2000,%esi
mov    %r13,%rdx
call   1050 <fgets@plt>
test   %rax,%rax
lea    0x4060(%rsp),%rbx
je     1329 <main+0x1a9>
sub    $0x8,%rsp
mov    %r14,%rdi
lea    0xd53(%rip),%rsi
mov    %rbx,%rdx
lea    0x38(%rsp),%rcx
lea    0x30(%rsp),%r8
lea    0x28(%rsp),%r9
lea    0x58(%rsp),%rax
push   %rax
lea    0x28(%rsp),%rax
push   %rax
lea    0x70(%rsp),%rax
push   %rax
call   1080 <sscanf@plt>
add    $0x20,%rsp
mov    %r14,%rdi
mov    $0x2000,%esi
mov    %r15,%r12
mov    %r15,%rdx
call   1050 <fgets@plt>
test   %rax,%rax
je     1210 <main+0x90>
sub    $0x8,%rsp
mov    %r14,%rdi
lea    0xcfc(%rip),%rsi
mov    %rbx,%rdx
lea    0x38(%rsp),%rcx
lea    0x30(%rsp),%r8
lea    0x18(%rsp),%r9
lea    0x48(%rsp),%rax
push   %rax
lea    0x18(%rsp),%rax
push   %rax
lea    0x60(%rsp),%rax
push   %rax
call   1080 <sscanf@plt>
add    $0x20,%rsp
jmp    1210 <main+0x90>
mov    0x2c4c(%rip),%rax
movslq (%rax),%rdi
mov    (%rbx),%rdx
lea    0xc67(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x2c29(%rip),%rax
jmp    13e9 <main+0x269>
mov    0x2c28(%rip),%rax
movslq (%rax),%rdi
mov    0x8(%rbx),%rdx
mov    0x10(%rbx),%rcx
lea    0xc5c(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x2c00(%rip),%rax
jmp    13e9 <main+0x269>
mov    %r13,%rdi
call   1030 <fclose@plt>
mov    %r15,%rdi
call   1030 <fclose@plt>
mov    0x2bd7(%rip),%rax
mov    (%rax),%eax
add    $0x8068,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdout = global i32* null
@stderr = global i32 0
@.str = [28 x i8] c"Usage: %s cuda.txt tbb.txt\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [37 x i8] c"Unable to open either '%s' or '%s'!\0A\00"
@LC_NUMERIC = global i32 0
@.str.3 = [12 x i8] c"en_US.utf-8\00"
@.str.4 = [27 x i8] c"%s %ld %ld %lf %lf %lf %lf\00"
@.str.5 = [54 x i8] c"\\texttt{%s} & %'ld & %'ld & %.2f & %s & %.2f & %s \\\\\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [8192 x i8]
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca [8192 x i8]
%11 = alloca i64
%12 = alloca i64
%13 = alloca [8192 x i8]
%14 = alloca [8192 x i8]
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%23 = load i32*, i32** @stdout
store i32* %23, i32** %9
%24 = load i32, i32* %4
%25 = icmp ne i32 %24, 3
br i1 %25, label %26, label %35
26: ; preds = %2
%27 = load i32, i32* @stderr
%28 = sext i32 %27 to i64
%29 = inttoptr i64 %28 to i32*
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 0
%32 = load i8*, i8** %31
%33 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %29, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %32)
%34 = load i32, i32* @EXIT_FAILURE
store i32 %34, i32* %3
br label %115
35: ; preds = %2
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 1
%38 = load i8*, i8** %37
%39 = call i32* @fopen(i8* %38, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %39, i32** %7
%40 = load i8**, i8*** %5
%41 = getelementptr inbounds i8*, i8** %40, i64 2
%42 = load i8*, i8** %41
%43 = call i32* @fopen(i8* %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %43, i32** %8
%44 = load i32*, i32** %7
%45 = icmp eq i32* %44, null
br i1 %45, label %49, label %46
46: ; preds = %35
%47 = load i32*, i32** %8
%48 = icmp eq i32* %47, null
br i1 %48, label %49, label %61
49: ; preds = %46, %35
%50 = load i32, i32* @stderr
%51 = sext i32 %50 to i64
%52 = inttoptr i64 %51 to i32*
%53 = load i8**, i8*** %5
%54 = getelementptr inbounds i8*, i8** %53, i64 1
%55 = load i8*, i8** %54
%56 = load i8**, i8*** %5
%57 = getelementptr inbounds i8*, i8** %56, i64 2
%58 = load i8*, i8** %57
%59 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %52, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i8* %55, i8* %58)
%60 = load i32, i32* @EXIT_FAILURE
store i32 %60, i32* %3
br label %115
61: ; preds = %46
%62 = load i32, i32* @LC_NUMERIC
%63 = call i32 @setlocale(i32 %62, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
br label %64
64: ; preds = %93, %61
%65 = load i32*, i32** %7
%66 = call i32 @feof(i32* %65)
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %73
68: ; preds = %64
%69 = load i32*, i32** %8
%70 = call i32 @feof(i32* %69)
%71 = icmp ne i32 %70, 0
%72 = xor i1 %71, true
br label %73
73: ; preds = %68, %64
%74 = phi i1 [ true, %64 ], [ %72, %68 ]
br i1 %74, label %75, label %109
75: ; preds = %73
store double -1.000000e+00, double* %15
store double 0.000000e+00, double* %16
store double -1.000000e+00, double* %17
store double -1.000000e+00, double* %18
store double -1.000000e+00, double* %19
store double 0.000000e+00, double* %20
store double -1.000000e+00, double* %21
store double -1.000000e+00, double* %22
%76 = getelementptr inbounds [8192 x i8], [8192 x i8]* %6, i64 0, i64 0
%77 = load i32*, i32** %7
%78 = call i32* @fgets(i8* %76, i32 8192, i32* %77)
%79 = icmp ne i32* %78, null
br i1 %79, label %80, label %84
80: ; preds = %75
%81 = getelementptr inbounds [8192 x i8], [8192 x i8]* %6, i64 0, i64 0
%82 = getelementptr inbounds [8192 x i8], [8192 x i8]* %10, i64 0, i64 0
%83 = call i32 @sscanf(i8* %81, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i8* %82, i64* %11, i64* %12, double* %15, double* %16, double* %17, double* %18)
br label %84
84: ; preds = %80, %75
%85 = getelementptr inbounds [8192 x i8], [8192 x i8]* %6, i64 0, i64 0
%86 = load i32*, i32** %8
%87 = call i32* @fgets(i8* %85, i32 8192, i32* %86)
%88 = icmp ne i32* %87, null
br i1 %88, label %89, label %93
89: ; preds = %84
%90 = getelementptr inbounds [8192 x i8], [8192 x i8]* %6, i64 0, i64 0
%91 = getelementptr inbounds [8192 x i8], [8192 x i8]* %10, i64 0, i64 0
%92 = call i32 @sscanf(i8* %90, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i8* %91, i64* %11, i64* %12, double* %19, double* %20, double* %21, double* %22)
br label %93
93: ; preds = %89, %84
%94 = getelementptr inbounds [8192 x i8], [8192 x i8]* %13, i64 0, i64 0
%95 = load double, double* %17
%96 = call i32 @doubleToLaTeX(i8* %94, double %95)
%97 = getelementptr inbounds [8192 x i8], [8192 x i8]* %14, i64 0, i64 0
%98 = load double, double* %21
%99 = call i32 @doubleToLaTeX(i8* %97, double %98)
%100 = load i32*, i32** %9
%101 = getelementptr inbounds [8192 x i8], [8192 x i8]* %10, i64 0, i64 0
%102 = load i64, i64* %11
%103 = load i64, i64* %12
%104 = load double, double* %15
%105 = getelementptr inbounds [8192 x i8], [8192 x i8]* %13, i64 0, i64 0
%106 = load double, double* %19
%107 = getelementptr inbounds [8192 x i8], [8192 x i8]* %14, i64 0, i64 0
%108 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %100, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.5, i64 0, i64 0), i8* %101, i64 %102, i64 %103, double %104, i8* %105, double %106, i8* %107)
br label %64
109: ; preds = %73
%110 = load i32*, i32** %7
%111 = call i32 @fclose(i32* %110)
%112 = load i32*, i32** %8
%113 = call i32 @fclose(i32* %112)
%114 = load i32, i32* @EXIT_SUCCESS
store i32 %114, i32* %3
br label %115
115: ; preds = %109, %49, %26
%116 = load i32, i32* %3
ret i32 %116
}

LLVM IR (-O2):
@stdout = global i32* null
@stderr = global i32 0
@.str = [28 x i8] c"Usage: %s cuda.txt tbb.txt\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [37 x i8] c"Unable to open either '%s' or '%s'!\0A\00"
@LC_NUMERIC = global i32 0
@.str.3 = [12 x i8] c"en_US.utf-8\00"
@.str.4 = [27 x i8] c"%s %ld %ld %lf %lf %lf %lf\00"
@.str.5 = [54 x i8] c"\\texttt{%s} & %'ld & %'ld & %.2f & %s & %.2f & %s \\\\\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [8192 x i8]
%4 = alloca [8192 x i8]
%5 = alloca i64
%6 = alloca i64
%7 = alloca [8192 x i8]
%8 = alloca [8192 x i8]
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = getelementptr inbounds [8192 x i8], [8192 x i8]* %3, i64 0, i64 0
%18 = load i32*, i32** @stdout
%19 = icmp eq i32 %0, 3
br i1 %19, label %26, label %20
20: ; preds = %2
%21 = load i32, i32* @stderr
%22 = sext i32 %21 to i64
%23 = inttoptr i64 %22 to i32*
%24 = load i8*, i8** %1
%25 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %23, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %24)
br label %88
26: ; preds = %2
%27 = getelementptr inbounds i8*, i8** %1, i64 1
%28 = load i8*, i8** %27
%29 = tail call i32* @fopen(i8* %28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%30 = getelementptr inbounds i8*, i8** %1, i64 2
%31 = load i8*, i8** %30
%32 = tail call i32* @fopen(i8* %31, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%33 = icmp eq i32* %29, null
%34 = icmp eq i32* %32, null
%35 = or i1 %33, %34
br i1 %35, label %36, label %43
36: ; preds = %26
%37 = load i32, i32* @stderr
%38 = sext i32 %37 to i64
%39 = inttoptr i64 %38 to i32*
%40 = load i8*, i8** %27
%41 = load i8*, i8** %30
%42 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %39, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i8* %40, i8* %41)
br label %88
43: ; preds = %26
%44 = load i32, i32* @LC_NUMERIC
%45 = tail call i32 @setlocale(i32 %44, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%46 = getelementptr inbounds [8192 x i8], [8192 x i8]* %4, i64 0, i64 0
%47 = bitcast i64* %5 to i8*
%48 = bitcast i64* %6 to i8*
%49 = getelementptr inbounds [8192 x i8], [8192 x i8]* %7, i64 0, i64 0
%50 = getelementptr inbounds [8192 x i8], [8192 x i8]* %8, i64 0, i64 0
%51 = bitcast double* %9 to i8*
%52 = bitcast double* %10 to i8*
%53 = bitcast double* %11 to i8*
%54 = bitcast double* %12 to i8*
%55 = bitcast double* %13 to i8*
%56 = bitcast double* %14 to i8*
%57 = bitcast double* %15 to i8*
%58 = bitcast double* %16 to i8*
br label %59
59: ; preds = %75, %43
%60 = call i32 @feof(i32* %29)
%61 = icmp eq i32 %60, 0
br i1 %61, label %65, label %62
62: ; preds = %59
%63 = call i32 @feof(i32* %32)
%64 = icmp eq i32 %63, 0
br i1 %64, label %65, label %85
65: ; preds = %59, %62
store double -1.000000e+00, double* %9
store double 0.000000e+00, double* %10
store double -1.000000e+00, double* %11
store double -1.000000e+00, double* %12
store double -1.000000e+00, double* %13
store double 0.000000e+00, double* %14
store double -1.000000e+00, double* %15
store double -1.000000e+00, double* %16
%66 = call i32* @fgets(i8* %17, i32 8192, i32* %29)
%67 = icmp eq i32* %66, null
br i1 %67, label %70, label %68
68: ; preds = %65
%69 = call i32 @sscanf(i8* %17, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i8* %46, i64* %5, i64* %6, double* %9, double* %10, double* %11, double* %12)
br label %70
70: ; preds = %68, %65
%71 = call i32* @fgets(i8* %17, i32 8192, i32* %32)
%72 = icmp eq i32* %71, null
br i1 %72, label %75, label %73
73: ; preds = %70
%74 = call i32 @sscanf(i8* %17, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i8* %46, i64* %5, i64* %6, double* %13, double* %14, double* %15, double* %16)
br label %75
75: ; preds = %73, %70
%76 = load double, double* %11
%77 = call i32 @doubleToLaTeX(i8* %49, double %76)
%78 = load double, double* %15
%79 = call i32 @doubleToLaTeX(i8* %50, double %78)
%80 = load i64, i64* %5
%81 = load i64, i64* %6
%82 = load double, double* %9
%83 = load double, double* %13
%84 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %18, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.5, i64 0, i64 0), i8* %46, i64 %80, i64 %81, double %82, i8* %49, double %83, i8* %50)
br label %59
85: ; preds = %62
%86 = call i32 @fclose(i32* %29)
%87 = call i32 @fclose(i32* %32)
br label %88
88: ; preds = %85, %36, %20
%89 = phi i32* [ @EXIT_FAILURE, %20 ], [ @EXIT_FAILURE, %36 ], [ @EXIT_SUCCESS, %85 ]
%90 = load i32, i32* %89
ret i32 %90
}