#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 /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
char fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, ...);
char *malloc(int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, unsigned int, ...);
unsigned int timer_ad();
int main() {
  FILE *pFile, *pFile2;
  int i = 0;
  int j = 0;
  int counter = 0;
  char *c = malloc(1024);
  int a[8], time_arr[8];
  unsigned int b, rv[2], z;
  unsigned int start_ad, time_hex;
  char *time_byte = malloc(1024);
  start_ad = timer_ad();
  pFile = fopen(
      "/afs/kip.uni-heidelberg.de/user/tnonne/s2pp-source/dump_c_matrix.mem",
      "r");
  pFile2 = fopen("temp_dump.mem", "w");
  if (pFile == NULL)
    perror("Error opening file");
  else {
    while (!feof(pFile)) {
      i++;
      fscanf(pFile, "%s", c);
      if ((c[0] == '/') && (c[1] == '/')) {
        while (fgetc(pFile) != '\n')
          ;
        i--;
      }
      if (i > 0) {
        if (c[0] == 'x' && c[1] == 'x') {
          fprintf(pFile2, "00 ");
        } else {
          fprintf(pFile2, "%s ", c);
        }
        if (i % 4 == 0)
          fprintf(pFile2, "\n");
      }
    }
    fclose(pFile);
    fclose(pFile2);
  }
  pFile = fopen("temp_dump.mem", "r");
  while (j < (start_ad + 8)) {
    j++;
    fscanf(pFile, "%x", &time_hex);
    if (j > start_ad) {
      time_arr[counter] = time_hex;
      counter++;
    }
  }
  fclose(pFile);
  rv[0] = (time_arr[0] << 24) | (time_arr[1] << 16) | (time_arr[2] << 8) |
          time_arr[3];
  rv[1] = (time_arr[4] << 24) | (time_arr[5] << 16) | (time_arr[6] << 8) |
          time_arr[7];
  if (rv[0] > 0) {
    printf("%d %d\n", rv[0], rv[1]);
  } else {
    printf("%d\n", rv[1]);
  }
  free(time_byte);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    $0x400,%edi
call   10b0 <malloc@plt>
mov    %rax,-0x30(%rbp)
mov    $0x400,%edi
call   10b0 <malloc@plt>
mov    %rax,-0x90(%rbp)
mov    $0x0,%al
call   1040 <timer_ad@plt>
mov    %eax,-0x84(%rbp)
lea    0xdf6(%rip),%rdi
lea    0xe34(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x10(%rbp)
lea    0xe26(%rip),%rdi
lea    0xe2d(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    124d <main+0x9d>
lea    0xe14(%rip),%rdi
call   10d0 <perror@plt>
jmp    1372 <main+0x1c2>
jmp    1252 <main+0xa2>
mov    -0x10(%rbp),%rdi
call   10a0 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1270 <main+0xc0>
jmp    1360 <main+0x1b0>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x30(%rbp),%rdx
lea    0xde2(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2f,%eax
jne    12d8 <main+0x128>
mov    -0x30(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x2f,%eax
jne    12d8 <main+0x128>
jmp    12b5 <main+0x105>
mov    -0x10(%rbp),%rdi
call   1080 <fgetc@plt>
movsbl %al,%eax
cmp    $0xa,%eax
je     12cf <main+0x11f>
jmp    12b5 <main+0x105>
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jle    135b <main+0x1ab>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x78,%eax
jne    131a <main+0x16a>
mov    -0x30(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x78,%eax
jne    131a <main+0x16a>
mov    -0x18(%rbp),%rdi
lea    0xd5f(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
jmp    1330 <main+0x180>
mov    -0x18(%rbp),%rdi
mov    -0x30(%rbp),%rdx
lea    0xd48(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x1c(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1356 <main+0x1a6>
mov    -0x18(%rbp),%rdi
lea    0xd2e(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
jmp    135b <main+0x1ab>
jmp    1252 <main+0xa2>
mov    -0x10(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
lea    0xcce(%rip),%rdi
lea    0xcc5(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%eax
mov    -0x84(%rbp),%ecx
add    $0x8,%ecx
cmp    %ecx,%eax
jae    13ea <main+0x23a>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xcc4(%rip),%rsi
lea    -0x88(%rbp),%rdx
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x20(%rbp),%eax
cmp    -0x84(%rbp),%eax
jbe    13e5 <main+0x235>
mov    -0x88(%rbp),%ecx
movslq -0x24(%rbp),%rax
mov    %ecx,-0x70(%rbp,%rax,4)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1389 <main+0x1d9>
mov    -0x10(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x70(%rbp),%eax
shl    $0x18,%eax
mov    -0x6c(%rbp),%ecx
shl    $0x10,%ecx
or     %ecx,%eax
mov    -0x68(%rbp),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
or     -0x64(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x60(%rbp),%eax
shl    $0x18,%eax
mov    -0x5c(%rbp),%ecx
shl    $0x10,%ecx
or     %ecx,%eax
mov    -0x58(%rbp),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
or     -0x54(%rbp),%eax
mov    %eax,-0x78(%rbp)
cmpl   $0x0,-0x7c(%rbp)
jbe    144e <main+0x29e>
mov    -0x7c(%rbp),%esi
mov    -0x78(%rbp),%edx
lea    0xc36(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    145f <main+0x2af>
mov    -0x78(%rbp),%esi
lea    0xc23(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x90(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    $0x400,%edi
call   10c0 <malloc@plt>
mov    %rax,%r15
mov    $0x400,%edi
call   10c0 <malloc@plt>
mov    %rax,0x30(%rsp)
xor    %eax,%eax
call   1040 <timer_ad@plt>
mov    %eax,0x8(%rsp)
lea    0xdf4(%rip),%rdi
lea    0xe32(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,%rbp
lea    0xe25(%rip),%rdi
lea    0xe2c(%rip),%rsi
call   10d0 <fopen@plt>
test   %rbp,%rbp
je     1440 <main+0x270>
mov    %rax,%r12
mov    %rbp,%rdi
call   10b0 <feof@plt>
test   %eax,%eax
je     1365 <main+0x195>
mov    %rbp,%rdi
call   1050 <fclose@plt>
mov    %r12,%rdi
call   1050 <fclose@plt>
lea    0xde6(%rip),%rdi
lea    0xddd(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,%r12
mov    0x8(%rsp),%ebx
add    $0x8,%ebx
je     12fe <main+0x12e>
lea    0xc(%rsp),%r13
xor    %r15d,%r15d
xor    %ebp,%ebp
jmp    1295 <main+0xc5>
nopl   0x0(%rax)
cmp    %r15d,%ebx
je     12c7 <main+0xf7>
mov    %r15d,%r14d
lea    0x1(%r14),%r15d
mov    %r12,%rdi
lea    0xdcf(%rip),%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1070 <fscanf@plt>
cmp    0x8(%rsp),%r14d
jb     1290 <main+0xc0>
mov    0xc(%rsp),%eax
movslq %ebp,%rbp
mov    %eax,0x10(%rsp,%rbp,4)
add    $0x1,%ebp
jmp    1290 <main+0xc0>
mov    0x10(%rsp),%ecx
mov    0x14(%rsp),%eax
mov    0x18(%rsp),%ebp
mov    0x1c(%rsp),%r15d
mov    0x20(%rsp),%esi
mov    0x24(%rsp),%edi
mov    0x28(%rsp),%r14d
mov    0x2c(%rsp),%edx
shl    $0x18,%ecx
shl    $0x10,%eax
shl    $0x8,%ebp
shl    $0x18,%esi
shl    $0x10,%edi
shl    $0x8,%r14d
jmp    130b <main+0x13b>
xor    %r14d,%r14d
xor    %edi,%edi
xor    %esi,%esi
xor    %ebp,%ebp
xor    %eax,%eax
xor    %ecx,%ecx
or     %edi,%edx
or     %esi,%r14d
or     %edx,%r14d
or     %ecx,%ebp
or     %eax,%ebp
mov    %r12,%rdi
call   1050 <fclose@plt>
or     %r15d,%ebp
je     1339 <main+0x169>
lea    0xd4d(%rip),%rdi
mov    %ebp,%esi
mov    %r14d,%edx
xor    %eax,%eax
call   1060 <printf@plt>
jmp    134a <main+0x17a>
lea    0xd3b(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x30(%rsp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcfe(%rip),%r13
xor    %r14d,%r14d
jmp    1390 <main+0x1c0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbp,%rdi
call   10b0 <feof@plt>
test   %eax,%eax
jne    124a <main+0x7a>
mov    %r14d,%ebx
lea    0x1(%rbx),%r14d
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1070 <fscanf@plt>
cmpb   $0x2f,(%r15)
jne    13cf <main+0x1ff>
cmpb   $0x2f,0x1(%r15)
jne    13cf <main+0x1ff>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbp,%rdi
call   1080 <fgetc@plt>
cmp    $0xa,%al
jne    13c0 <main+0x1f0>
mov    %ebx,%r14d
test   %r14d,%r14d
jle    1380 <main+0x1b0>
cmpb   $0x78,(%r15)
jne    1410 <main+0x240>
cmpb   $0x78,0x1(%r15)
jne    1410 <main+0x240>
mov    $0x3,%esi
mov    $0x1,%edx
lea    0xc7b(%rip),%rdi
mov    %r12,%rcx
call   10f0 <fwrite@plt>
test   $0x3,%r14b
jne    1380 <main+0x1b0>
jmp    142e <main+0x25e>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r12,%rdi
lea    0xc57(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   10a0 <fprintf@plt>
test   $0x3,%r14b
jne    1380 <main+0x1b0>
mov    $0xa,%edi
mov    %r12,%rsi
call   1090 <fputc@plt>
jmp    1380 <main+0x1b0>
lea    0xc10(%rip),%rdi
call   10e0 <perror@plt>
jmp    125a <main+0x8a>

LLVM IR (-O0):
@.str = [69 x i8] c"/afs/kip.uni-heidelberg.de/user/tnonne/s2pp-source/dump_c_matrix.mem\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [14 x i8] c"temp_dump.mem\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [19 x i8] c"Error opening file\00"
@.str.5 = [3 x i8] c"%s\00"
@.str.6 = [4 x i8] c"00 \00"
@.str.7 = [4 x i8] c"%s \00"
@.str.8 = [2 x i8] c"\0A\00"
@.str.9 = [3 x i8] c"%x\00"
@.str.10 = [7 x i8] c"%d %d\0A\00"
@.str.11 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca [8 x i32]
%9 = alloca [8 x i32]
%10 = alloca i32
%11 = alloca [2 x i32]
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i8*
store i32 0, i32* %1
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
%16 = call i8* @malloc(i32 1024)
store i8* %16, i8** %7
%17 = call i8* @malloc(i32 1024)
store i8* %17, i8** %15
%18 = call i32 (...) @timer_ad()
store i32 %18, i32* %13
%19 = call i32* @fopen(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %19, i32** %2
%20 = call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %20, i32** %3
%21 = load i32*, i32** %2
%22 = icmp eq i32* %21, null
br i1 %22, label %23, label %25
23: ; preds = %0
%24 = call i32 @perror(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
br label %94
25: ; preds = %0
br label %26
26: ; preds = %88, %25
%27 = load i32*, i32** %2
%28 = call i32 @feof(i32* %27)
%29 = icmp ne i32 %28, 0
%30 = xor i1 %29, true
br i1 %30, label %31, label %89
31: ; preds = %26
%32 = load i32, i32* %4
%33 = add nsw i32 %32, 1
store i32 %33, i32* %4
%34 = load i32*, i32** %2
%35 = load i8*, i8** %7
%36 = call i32 (i32*, i8*, ...) @fscanf(i32* %34, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %35)
%37 = load i8*, i8** %7
%38 = getelementptr inbounds i8, i8* %37, i64 0
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 47
br i1 %41, label %42, label %58
42: ; preds = %31
%43 = load i8*, i8** %7
%44 = getelementptr inbounds i8, i8* %43, i64 1
%45 = load i8, i8* %44
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 47
br i1 %47, label %48, label %58
48: ; preds = %42
br label %49
49: ; preds = %54, %48
%50 = load i32*, i32** %2
%51 = call signext i8 @fgetc(i32* %50)
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 10
br i1 %53, label %54, label %55
54: ; preds = %49
br label %49
55: ; preds = %49
%56 = load i32, i32* %4
%57 = add nsw i32 %56, -1
store i32 %57, i32* %4
br label %58
58: ; preds = %55, %42, %31
%59 = load i32, i32* %4
%60 = icmp sgt i32 %59, 0
br i1 %60, label %61, label %88
61: ; preds = %58
%62 = load i8*, i8** %7
%63 = getelementptr inbounds i8, i8* %62, i64 0
%64 = load i8, i8* %63
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 120
br i1 %66, label %67, label %76
67: ; preds = %61
%68 = load i8*, i8** %7
%69 = getelementptr inbounds i8, i8* %68, i64 1
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 120
br i1 %72, label %73, label %76
73: ; preds = %67
%74 = load i32*, i32** %3
%75 = call i32 (i32*, i8*, ...) @fprintf(i32* %74, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %80
76: ; preds = %67, %61
%77 = load i32*, i32** %3
%78 = load i8*, i8** %7
%79 = call i32 (i32*, i8*, ...) @fprintf(i32* %77, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %78)
br label %80
80: ; preds = %76, %73
%81 = load i32, i32* %4
%82 = srem i32 %81, 4
%83 = icmp eq i32 %82, 0
br i1 %83, label %84, label %87
84: ; preds = %80
%85 = load i32*, i32** %3
%86 = call i32 (i32*, i8*, ...) @fprintf(i32* %85, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %87
87: ; preds = %84, %80
br label %88
88: ; preds = %87, %58
br label %26
89: ; preds = %26
%90 = load i32*, i32** %2
%91 = call i32 @fclose(i32* %90)
%92 = load i32*, i32** %3
%93 = call i32 @fclose(i32* %92)
br label %94
94: ; preds = %89, %23
%95 = call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %95, i32** %2
br label %96
96: ; preds = %116, %94
%97 = load i32, i32* %5
%98 = load i32, i32* %13
%99 = add i32 %98, 8
%100 = icmp ult i32 %97, %99
br i1 %100, label %101, label %117
101: ; preds = %96
%102 = load i32, i32* %5
%103 = add nsw i32 %102, 1
store i32 %103, i32* %5
%104 = load i32*, i32** %2
%105 = call i32 (i32*, i8*, ...) @fscanf(i32* %104, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32* %14)
%106 = load i32, i32* %5
%107 = load i32, i32* %13
%108 = icmp ugt i32 %106, %107
br i1 %108, label %109, label %116
109: ; preds = %101
%110 = load i32, i32* %14
%111 = load i32, i32* %6
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [8 x i32], [8 x i32]* %9, i64 0, i64 %112
store i32 %110, i32* %113
%114 = load i32, i32* %6
%115 = add nsw i32 %114, 1
store i32 %115, i32* %6
br label %116
116: ; preds = %109, %101
br label %96
117: ; preds = %96
%118 = load i32*, i32** %2
%119 = call i32 @fclose(i32* %118)
%120 = getelementptr inbounds [8 x i32], [8 x i32]* %9, i64 0, i64 0
%121 = load i32, i32* %120
%122 = shl i32 %121, 24
%123 = getelementptr inbounds [8 x i32], [8 x i32]* %9, i64 0, i64 1
%124 = load i32, i32* %123
%125 = shl i32 %124, 16
%126 = or i32 %122, %125
%127 = getelementptr inbounds [8 x i32], [8 x i32]* %9, i64 0, i64 2
%128 = load i32, i32* %127
%129 = shl i32 %128, 8
%130 = or i32 %126, %129
%131 = getelementptr inbounds [8 x i32], [8 x i32]* %9, i64 0, i64 3
%132 = load i32, i32* %131
%133 = or i32 %130, %132
%134 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
store i32 %133, i32* %134
%135 = getelementptr inbounds [8 x i32], [8 x i32]* %9, i64 0, i64 4
%136 = load i32, i32* %135
%137 = shl i32 %136, 24
%138 = getelementptr inbounds [8 x i32], [8 x i32]* %9, i64 0, i64 5
%139 = load i32, i32* %138
%140 = shl i32 %139, 16
%141 = or i32 %137, %140
%142 = getelementptr inbounds [8 x i32], [8 x i32]* %9, i64 0, i64 6
%143 = load i32, i32* %142
%144 = shl i32 %143, 8
%145 = or i32 %141, %144
%146 = getelementptr inbounds [8 x i32], [8 x i32]* %9, i64 0, i64 7
%147 = load i32, i32* %146
%148 = or i32 %145, %147
%149 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 1
store i32 %148, i32* %149
%150 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%151 = load i32, i32* %150
%152 = icmp ugt i32 %151, 0
br i1 %152, label %153, label %159
153: ; preds = %117
%154 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%155 = load i32, i32* %154
%156 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 1
%157 = load i32, i32* %156
%158 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 %155, i32 %157)
br label %163
159: ; preds = %117
%160 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 1
%161 = load i32, i32* %160
%162 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 %161)
br label %163
163: ; preds = %159, %153
%164 = load i8*, i8** %15
%165 = call i32 @free(i8* %164)
ret i32 0
}

LLVM IR (-O2):
@.str = [69 x i8] c"/afs/kip.uni-heidelberg.de/user/tnonne/s2pp-source/dump_c_matrix.mem\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [14 x i8] c"temp_dump.mem\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [19 x i8] c"Error opening file\00"
@.str.5 = [3 x i8] c"%s\00"
@.str.6 = [4 x i8] c"00 \00"
@.str.7 = [4 x i8] c"%s \00"
@.str.9 = [3 x i8] c"%x\00"
@.str.10 = [7 x i8] c"%d %d\0A\00"
@.str.11 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca [8 x i32]
%2 = alloca i32
%3 = tail call dereferenceable_or_null(1024) i8* @malloc(i32 1024)
%4 = bitcast [8 x i32]* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = tail call dereferenceable_or_null(1024) i8* @malloc(i32 1024)
%7 = tail call i32 (...) @timer_ad()
%8 = tail call i32* @fopen(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%10 = icmp eq i32* %8, null
br i1 %10, label %16, label %11
11: ; preds = %0
%12 = tail call i32 @feof(i32* %8)
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %51
14: ; preds = %11
%15 = getelementptr inbounds i8, i8* %3, i64 1
br label %18
16: ; preds = %0
%17 = tail call i32 @perror(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
br label %54
18: ; preds = %14, %48
%19 = phi i32 [ 0, %14 ], [ %31, %48 ]
%20 = add nsw i32 %19, 1
%21 = tail call i32 (i32*, i8*, ...) @fscanf(i32* %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %3)
%22 = load i8, i8* %3
%23 = icmp eq i8 %22, 47
br i1 %23, label %24, label %30
24: ; preds = %18
%25 = load i8, i8* %15
%26 = icmp eq i8 %25, 47
br i1 %26, label %27, label %30
27: ; preds = %24, %27
%28 = tail call signext i8 @fgetc(i32* %8)
%29 = icmp eq i8 %28, 10
br i1 %29, label %30, label %27
30: ; preds = %27, %24, %18
%31 = phi i32 [ %20, %24 ], [ %20, %18 ], [ %19, %27 ]
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %48
33: ; preds = %30
%34 = load i8, i8* %3
%35 = icmp eq i8 %34, 120
br i1 %35, label %36, label %41
36: ; preds = %33
%37 = load i8, i8* %15
%38 = icmp eq i8 %37, 120
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i64 3, i64 1, i32* %9)
br label %43
41: ; preds = %36, %33
%42 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %3)
br label %43
43: ; preds = %41, %39
%44 = and i32 %31, 3
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = tail call i32 @fputc(i32 10, i32* %9)
br label %48
48: ; preds = %43, %46, %30
%49 = tail call i32 @feof(i32* %8)
%50 = icmp eq i32 %49, 0
br i1 %50, label %18, label %51
51: ; preds = %48, %11
%52 = tail call i32 @fclose(i32* %8)
%53 = tail call i32 @fclose(i32* %9)
br label %54
54: ; preds = %51, %16
%55 = tail call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%56 = add i32 %7, 8
%57 = icmp eq i32 %56, 0
br i1 %57, label %95, label %58
58: ; preds = %54, %69
%59 = phi i32 [ %61, %69 ], [ 0, %54 ]
%60 = phi i32 [ %70, %69 ], [ 0, %54 ]
%61 = add nuw i32 %59, 1
%62 = call i32 (i32*, i8*, ...) @fscanf(i32* %55, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32* %2)
%63 = icmp ult i32 %59, %7
br i1 %63, label %69, label %64
64: ; preds = %58
%65 = load i32, i32* %2
%66 = sext i32 %60 to i64
%67 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %66
store i32 %65, i32* %67
%68 = add nsw i32 %60, 1
br label %69
69: ; preds = %64, %58
%70 = phi i32 [ %68, %64 ], [ %60, %58 ]
%71 = icmp eq i32 %61, %56
br i1 %71, label %72, label %58
72: ; preds = %69
%73 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 0
%74 = load i32, i32* %73
%75 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 1
%76 = load i32, i32* %75
%77 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 2
%78 = load i32, i32* %77
%79 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 3
%80 = load i32, i32* %79
%81 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 4
%82 = load i32, i32* %81
%83 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 5
%84 = load i32, i32* %83
%85 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 6
%86 = load i32, i32* %85
%87 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 7
%88 = load i32, i32* %87
%89 = shl i32 %74, 24
%90 = shl i32 %76, 16
%91 = shl i32 %78, 8
%92 = shl i32 %82, 24
%93 = shl i32 %84, 16
%94 = shl i32 %86, 8
br label %95
95: ; preds = %72, %54
%96 = phi i32 [ %88, %72 ], [ undef, %54 ]
%97 = phi i32 [ %94, %72 ], [ 0, %54 ]
%98 = phi i32 [ %93, %72 ], [ 0, %54 ]
%99 = phi i32 [ %92, %72 ], [ 0, %54 ]
%100 = phi i32 [ %80, %72 ], [ undef, %54 ]
%101 = phi i32 [ %91, %72 ], [ 0, %54 ]
%102 = phi i32 [ %90, %72 ], [ 0, %54 ]
%103 = phi i32 [ %89, %72 ], [ 0, %54 ]
%104 = call i32 @fclose(i32* %55)
%105 = or i32 %102, %103
%106 = or i32 %105, %101
%107 = or i32 %106, %100
%108 = or i32 %98, %99
%109 = or i32 %108, %97
%110 = or i32 %109, %96
%111 = icmp eq i32 %107, 0
br i1 %111, label %114, label %112
112: ; preds = %95
%113 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 %107, i32 %110)
br label %116
114: ; preds = %95
%115 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 %110)
br label %116
116: ; preds = %114, %112
%117 = call i32 @free(i8* %6)
ret i32 0
}