#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 */
int EXIT_SUCCESS;
scalar_t__ Inverse(float **, float **, int, int /*<<< orphan*/);
float atof(char *);
int atoi(char *);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
char *getenv(char *);
int /*<<< orphan*/ printMatrix10F(float **, int, int);
int /*<<< orphan*/ printMatrix5F(float **, int, int);
int /*<<< orphan*/ print_html_end();
int /*<<< orphan*/ print_html_header(char *);
int /*<<< orphan*/ print_time();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sscanf(char *, char *, int *);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ strlen(char *);
char *strtok(char *, char *);
int main(void) {
  print_html_header("Beleg IT2");
  printf("<div class=\"dokument\">\n");
  char *query;
  printf(
      "<p><a href=\"http://maltin.pisces.uberspace.de/it2/\">zurück</a></p>\n");
  char *lenStr = getenv("CONTENT_LENGTH");
  if (lenStr == NULL) {
    printf("<p1 id=\"error\">\nCONTENT_LENGTH == NULL\n</p1>\n");
    print_html_end();
    return -1;
  }
  int len = atoi(lenStr);
  char buf[len + 1];
  fgets(buf, len + 1, stdin);
  int dim;
  char str[strlen("dimension=") + 3];
  sscanf(buf, "dimension=%d", &dim);
  int elements = dim * dim;
  float matrix_in[dim][10];
  float matrix_out[dim][5];
  char *delim = "=&";
  char *token = strtok(buf, delim);
  token = strtok(NULL, delim);
  token = strtok(NULL, delim);
  int i, j;
  for (i = 0; i < dim; i++) {
    for (j = 0; j < dim; j++) {
      token = strtok(NULL, delim);
      matrix_in[i][j] = atof(token);
      token = strtok(NULL, delim);
    }
  }
  printf("<div class=\"output\">");
  printf("<div class=\"left\">Eingabematrix:\n");
  printMatrix10F(matrix_in, dim, dim);
  printf("</div>\n");
  printf("<div class=\"center\">\n");
  printf("<p id=\"img\"><a "
         "href=\"https://github.com/mstiehr-dev/invertMatrix\">=></a></p>\n");
  printf("</div>\n");
  printf("<div class=\"right\">Inverse Matrix:\n");
  if (Inverse(matrix_in, matrix_out, dim, 0) != 0) {
    printf("<h1 id=\"error\">Matrix ist singulaer - es existiert keine inverse "
           "Matrix</h1>\n");
    return 1;
  }
  printMatrix5F(matrix_out, dim, dim);
  printf("</div>\n");
  printf("</div>\n");
  printf("<div class=\"time_footer\">\n");
  print_time();
  printf("</div>\n");
  printf("</div>\n");
  print_html_end();
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe07(%rip),%rdi
call   1050 <print_html_header@plt>
lea    0xe05(%rip),%rdi
call   1080 <printf@plt>
lea    0xe11(%rip),%rdi
call   1080 <printf@plt>
lea    0xe4a(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1250 <main+0x70>
lea    0xe3e(%rip),%rdi
call   1080 <printf@plt>
mov    $0x0,%al
call   1090 <print_html_end@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1525 <main+0x345>
mov    -0x18(%rbp),%rdi
call   1100 <atoi@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %rsp,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,-0x90(%rbp)
mov    %rdi,%rsp
mov    %rax,-0x30(%rbp)
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
mov    0x2d53(%rip),%rax
mov    (%rax),%edx
call   10b0 <fgets@plt>
lea    0xe01(%rip),%rdi
call   1070 <strlen@plt>
mov    -0x90(%rbp),%rdi
add    $0x3,%eax
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,%rsp
mov    %rax,-0x40(%rbp)
lea    0xdde(%rip),%rsi
lea    -0x34(%rbp),%rdx
call   10c0 <sscanf@plt>
mov    -0x90(%rbp),%rdi
mov    -0x34(%rbp),%eax
imul   %eax,%eax
mov    %eax,-0x44(%rbp)
mov    -0x34(%rbp),%eax
lea    (%rax,%rax,4),%rcx
lea    0xf(,%rcx,8),%rdx
movabs $0x7ffffffff0,%rcx
and    %rcx,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x88(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x50(%rbp)
mov    -0x34(%rbp),%eax
lea    (%rax,%rax,4),%rcx
lea    0xf(,%rcx,4),%rdx
movabs $0x3ffffffff0,%rcx
and    %rcx,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x80(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x58(%rbp)
lea    0xd6e(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x68(%rbp)
mov    -0x60(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edi
call   10f0 <strtok@plt>
mov    %rax,-0x68(%rbp)
mov    -0x60(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edi
call   10f0 <strtok@plt>
mov    %rax,-0x68(%rbp)
movl   $0x0,-0x6c(%rbp)
mov    -0x6c(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    140e <main+0x22e>
movl   $0x0,-0x70(%rbp)
mov    -0x70(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    13fb <main+0x21b>
mov    -0x60(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edi
call   10f0 <strtok@plt>
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rdi
call   1060 <atof@plt>
mov    -0x88(%rbp),%rax
movslq -0x6c(%rbp),%rcx
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x70(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x60(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edi
call   10f0 <strtok@plt>
mov    %rax,-0x68(%rbp)
mov    -0x70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x70(%rbp)
jmp    139b <main+0x1bb>
jmp    1400 <main+0x220>
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    1388 <main+0x1a8>
lea    0xcaa(%rip),%rdi
call   1080 <printf@plt>
lea    0xcb3(%rip),%rdi
call   1080 <printf@plt>
mov    -0x88(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x34(%rbp),%edx
call   10d0 <printMatrix10F@plt>
lea    0xcb7(%rip),%rdi
call   1080 <printf@plt>
lea    0xcb3(%rip),%rdi
call   1080 <printf@plt>
lea    0xcbd(%rip),%rdi
call   1080 <printf@plt>
lea    0xc93(%rip),%rdi
call   1080 <printf@plt>
lea    0xcf3(%rip),%rdi
call   1080 <printf@plt>
mov    -0x88(%rbp),%rdi
mov    -0x80(%rbp),%rsi
mov    -0x34(%rbp),%edx
xor    %ecx,%ecx
call   10a0 <Inverse@plt>
cmp    $0x0,%rax
je     14b2 <main+0x2d2>
lea    0xcec(%rip),%rdi
call   1080 <printf@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x1,-0x74(%rbp)
jmp    151e <main+0x33e>
mov    -0x80(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x34(%rbp),%edx
call   1040 <printMatrix5F@plt>
lea    0xc2e(%rip),%rdi
call   1080 <printf@plt>
lea    0xc22(%rip),%rdi
call   1080 <printf@plt>
lea    0xcf4(%rip),%rdi
call   1080 <printf@plt>
mov    $0x0,%al
call   10e0 <print_time@plt>
lea    0xc03(%rip),%rdi
call   1080 <printf@plt>
lea    0xbf7(%rip),%rdi
call   1080 <printf@plt>
mov    $0x0,%al
call   1090 <print_html_end@plt>
mov    0x2ac6(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
movl   $0x1,-0x74(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xdf8(%rip),%rdi
call   1050 <print_html_header@plt>
lea    0xe35(%rip),%rdi
call   1060 <puts@plt>
lea    0xe40(%rip),%rdi
call   1060 <puts@plt>
lea    0xdde(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     13ed <main+0x1fd>
mov    %rax,%rdi
call   1110 <atoi@plt>
mov    %rsp,-0x40(%rbp)
lea    0x1(%rax),%esi
mov    %rsp,%rbx
lea    0xf(%rsi),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    0x2d87(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
call   10c0 <fgets@plt>
lea    0xda7(%rip),%rdi
call   1080 <strlen@plt>
lea    0xda6(%rip),%rsi
lea    -0x2c(%rbp),%rdx
mov    %rbx,%rdi
call   10d0 <sscanf@plt>
mov    -0x2c(%rbp),%eax
lea    (%rax,%rax,4),%rax
lea    0xf(,%rax,8),%rcx
movabs $0x7ffffffff0,%rdx
and    %rcx,%rdx
mov    %rsp,%r13
sub    %rdx,%r13
mov    %r13,%rsp
lea    0xf(,%rax,4),%rax
movabs $0x3ffffffff0,%rcx
and    %rax,%rcx
mov    %rsp,%rax
sub    %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    %rax,%rsp
lea    0xd59(%rip),%r12
mov    %rbx,%rdi
mov    %r12,%rsi
call   1100 <strtok@plt>
xor    %edi,%edi
mov    %r12,%rsi
call   1100 <strtok@plt>
xor    %edi,%edi
mov    %r12,%rsi
call   1100 <strtok@plt>
mov    -0x2c(%rbp),%eax
test   %eax,%eax
jle    1361 <main+0x171>
xor    %r12d,%r12d
lea    0xd29(%rip),%rbx
mov    %r13,%r15
jmp    1320 <main+0x130>
nopl   (%rax)
movslq %eax,%rcx
add    $0x1,%r12
add    $0x28,%r15
cmp    %rcx,%r12
jge    1361 <main+0x171>
test   %eax,%eax
jle    1310 <main+0x120>
xor    %r14d,%r14d
nopw   0x0(%rax,%rax,1)
xor    %edi,%edi
mov    %rbx,%rsi
call   1100 <strtok@plt>
mov    %rax,%rdi
call   1070 <atof@plt>
movss  %xmm0,(%r15,%r14,4)
xor    %edi,%edi
mov    %rbx,%rsi
call   1100 <strtok@plt>
add    $0x1,%r14
movslq -0x2c(%rbp),%rax
cmp    %rax,%r14
jl     1330 <main+0x140>
jmp    1310 <main+0x120>
lea    0xccc(%rip),%rdi
call   1090 <printf@plt>
lea    0xd30(%rip),%rdi
call   1060 <puts@plt>
mov    -0x2c(%rbp),%edx
mov    %r13,%rdi
mov    %edx,%esi
call   10e0 <printMatrix10F@plt>
lea    0xdd7(%rip),%rbx
mov    %rbx,%rdi
call   1060 <puts@plt>
lea    0xd29(%rip),%rdi
call   1060 <puts@plt>
lea    0xd32(%rip),%rdi
call   1060 <puts@plt>
mov    %rbx,%rdi
call   1060 <puts@plt>
lea    0xd6b(%rip),%rdi
call   1060 <puts@plt>
mov    -0x2c(%rbp),%edx
mov    %r13,%rdi
mov    -0x38(%rbp),%rbx
mov    %rbx,%rsi
xor    %ecx,%ecx
call   10b0 <Inverse@plt>
test   %rax,%rax
je     1407 <main+0x217>
lea    0xd8a(%rip),%rdi
call   1060 <puts@plt>
mov    $0x1,%eax
jmp    145e <main+0x26e>
lea    0xdc4(%rip),%rdi
call   1060 <puts@plt>
xor    %eax,%eax
call   10a0 <print_html_end@plt>
mov    $0xffffffff,%eax
jmp    1462 <main+0x272>
mov    -0x2c(%rbp),%edx
mov    %rbx,%rdi
mov    %edx,%esi
call   1040 <printMatrix5F@plt>
lea    0xd49(%rip),%rbx
mov    %rbx,%rdi
call   1060 <puts@plt>
mov    %rbx,%rdi
call   1060 <puts@plt>
lea    0xd18(%rip),%rdi
call   1060 <puts@plt>
xor    %eax,%eax
call   10f0 <print_time@plt>
mov    %rbx,%rdi
call   1060 <puts@plt>
mov    %rbx,%rdi
call   1060 <puts@plt>
xor    %eax,%eax
call   10a0 <print_html_end@plt>
mov    0x2b7c(%rip),%rax
mov    (%rax),%eax
mov    -0x40(%rbp),%rsp
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [10 x i8] c"Beleg IT2\00"
@.str.1 = [24 x i8] c"<div class=\22dokument\22>\0A\00"
@.str.2 = [69 x i8] c"<p><a href=\22http://maltin.pisces.uberspace.de/it2/\22>zur\C3\BCck</a></p>\0A\00"
@.str.3 = [15 x i8] c"CONTENT_LENGTH\00"
@.str.4 = [46 x i8] c"<p1 id=\22error\22>\0ACONTENT_LENGTH == NULL\0A</p1>\0A\00"
@stdin = global i32 0
@.str.5 = [11 x i8] c"dimension=\00"
@.str.6 = [13 x i8] c"dimension=%d\00"
@.str.7 = [3 x i8] c"=&\00"
@.str.8 = [21 x i8] c"<div class=\22output\22>\00"
@.str.9 = [34 x i8] c"<div class=\22left\22>Eingabematrix:\0A\00"
@.str.10 = [8 x i8] c"</div>\0A\00"
@.str.11 = [22 x i8] c"<div class=\22center\22>\0A\00"
@.str.12 = [78 x i8] c"<p id=\22img\22><a href=\22https://github.com/mstiehr-dev/invertMatrix\22>=></a></p>\0A\00"
@.str.13 = [36 x i8] c"<div class=\22right\22>Inverse Matrix:\0A\00"
@.str.14 = [78 x i8] c"<h1 id=\22error\22>Matrix ist singulaer - es existiert keine inverse Matrix</h1>\0A\00"
@.str.15 = [27 x i8] c"<div class=\22time_footer\22>\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i32
%8 = alloca i64
%9 = alloca i32
%10 = alloca i64
%11 = alloca i64
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32 0, i32* %1
%17 = call i32 @print_html_header(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.2, i64 0, i64 0))
%20 = call i8* @getenv(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
store i8* %20, i8** %3
%21 = load i8*, i8** %3
%22 = icmp eq i8* %21, null
br i1 %22, label %23, label %26
23: ; preds = %0
%24 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0))
%25 = call i32 (...) @print_html_end()
store i32 -1, i32* %1
br label %121
26: ; preds = %0
%27 = load i8*, i8** %3
%28 = call i32 @atoi(i8* %27)
store i32 %28, i32* %4
%29 = load i32, i32* %4
%30 = add nsw i32 %29, 1
%31 = zext i32 %30 to i64
%32 = call i8* @llvm.stacksave()
store i8* %32, i8** %5
%33 = alloca i8, i64 %31
store i64 %31, i64* %6
%34 = load i32, i32* %4
%35 = add nsw i32 %34, 1
%36 = load i32, i32* @stdin
%37 = call i32 @fgets(i8* %33, i32 %35, i32 %36)
%38 = call i32 @strlen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%39 = add nsw i32 %38, 3
%40 = zext i32 %39 to i64
%41 = alloca i8, i64 %40
store i64 %40, i64* %8
%42 = call i32 @sscanf(i8* %33, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32* %7)
%43 = load i32, i32* %7
%44 = load i32, i32* %7
%45 = mul nsw i32 %43, %44
store i32 %45, i32* %9
%46 = load i32, i32* %7
%47 = zext i32 %46 to i64
%48 = alloca [10 x float], i64 %47
store i64 %47, i64* %10
%49 = load i32, i32* %7
%50 = zext i32 %49 to i64
%51 = alloca [5 x float], i64 %50
store i64 %50, i64* %11
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8** %12
%52 = load i8*, i8** %12
%53 = call i8* @strtok(i8* %33, i8* %52)
store i8* %53, i8** %13
%54 = load i8*, i8** %12
%55 = call i8* @strtok(i8* null, i8* %54)
store i8* %55, i8** %13
%56 = load i8*, i8** %12
%57 = call i8* @strtok(i8* null, i8* %56)
store i8* %57, i8** %13
store i32 0, i32* %14
br label %58
58: ; preds = %84, %26
%59 = load i32, i32* %14
%60 = load i32, i32* %7
%61 = icmp slt i32 %59, %60
br i1 %61, label %62, label %87
62: ; preds = %58
store i32 0, i32* %15
br label %63
63: ; preds = %80, %62
%64 = load i32, i32* %15
%65 = load i32, i32* %7
%66 = icmp slt i32 %64, %65
br i1 %66, label %67, label %83
67: ; preds = %63
%68 = load i8*, i8** %12
%69 = call i8* @strtok(i8* null, i8* %68)
store i8* %69, i8** %13
%70 = load i8*, i8** %13
%71 = call float @atof(i8* %70)
%72 = load i32, i32* %14
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [10 x float], [10 x float]* %48, i64 %73
%75 = load i32, i32* %15
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [10 x float], [10 x float]* %74, i64 0, i64 %76
store float %71, float* %77
%78 = load i8*, i8** %12
%79 = call i8* @strtok(i8* null, i8* %78)
store i8* %79, i8** %13
br label %80
80: ; preds = %67
%81 = load i32, i32* %15
%82 = add nsw i32 %81, 1
store i32 %82, i32* %15
br label %63
83: ; preds = %63
br label %84
84: ; preds = %83
%85 = load i32, i32* %14
%86 = add nsw i32 %85, 1
store i32 %86, i32* %14
br label %58
87: ; preds = %58
%88 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0))
%89 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0))
%90 = bitcast [10 x float]* %48 to float**
%91 = load i32, i32* %7
%92 = load i32, i32* %7
%93 = call i32 @printMatrix10F(float** %90, i32 %91, i32 %92)
%94 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%95 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0))
%96 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.12, i64 0, i64 0))
%97 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%98 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0))
%99 = bitcast [10 x float]* %48 to float**
%100 = bitcast [5 x float]* %51 to float**
%101 = load i32, i32* %7
%102 = call i64 @Inverse(float** %99, float** %100, i32 %101, i32 0)
%103 = icmp ne i64 %102, 0
br i1 %103, label %104, label %106
104: ; preds = %87
%105 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.14, i64 0, i64 0))
store i32 1, i32* %1
store i32 1, i32* %16
br label %119
106: ; preds = %87
%107 = bitcast [5 x float]* %51 to float**
%108 = load i32, i32* %7
%109 = load i32, i32* %7
%110 = call i32 @printMatrix5F(float** %107, i32 %108, i32 %109)
%111 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%112 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%113 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.15, i64 0, i64 0))
%114 = call i32 (...) @print_time()
%115 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%116 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%117 = call i32 (...) @print_html_end()
%118 = load i32, i32* @EXIT_SUCCESS
store i32 %118, i32* %1
store i32 1, i32* %16
br label %119
119: ; preds = %106, %104
%120 = load i8*, i8** %5
br label %121
121: ; preds = %119, %23
%122 = load i32, i32* %1
ret i32 %122
}

LLVM IR (-O2):
@.str = [10 x i8] c"Beleg IT2\00"
@.str.3 = [15 x i8] c"CONTENT_LENGTH\00"
@stdin = global i32 0
@.str.5 = [11 x i8] c"dimension=\00"
@.str.6 = [13 x i8] c"dimension=%d\00"
@.str.7 = [3 x i8] c"=&\00"
@.str.8 = [21 x i8] c"<div class=\22output\22>\00"
@EXIT_SUCCESS = global i32 0
@str = [23 x i8] c"<div class=\22dokument\22>\00"
@str.16 = [68 x i8] c"<p><a href=\22http://maltin.pisces.uberspace.de/it2/\22>zur\C3\BCck</a></p>\00"
@str.17 = [33 x i8] c"<div class=\22left\22>Eingabematrix:\00"
@str.19 = [21 x i8] c"<div class=\22center\22>\00"
@str.20 = [77 x i8] c"<p id=\22img\22><a href=\22https://github.com/mstiehr-dev/invertMatrix\22>=></a></p>\00"
@str.22 = [35 x i8] c"<div class=\22right\22>Inverse Matrix:\00"
@str.25 = [26 x i8] c"<div class=\22time_footer\22>\00"
@str.27 = [7 x i8] c"</div>\00"
@str.28 = [77 x i8] c"<h1 id=\22error\22>Matrix ist singulaer - es existiert keine inverse Matrix</h1>\00"
@str.29 = [45 x i8] c"<p1 id=\22error\22>\0ACONTENT_LENGTH == NULL\0A</p1>\00"
define i32 @main() {
%1 = alloca i32
%2 = tail call i32 @print_html_header(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.16, i64 0, i64 0))
%5 = tail call i8* @getenv(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%6 = icmp eq i8* %5, null
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.29, i64 0, i64 0))
%9 = tail call i32 (...) @print_html_end()
br label %79
10: ; preds = %0
%11 = tail call i32 @atoi(i8* %5)
%12 = add nsw i32 %11, 1
%13 = zext i32 %12 to i64
%14 = tail call i8* @llvm.stacksave()
%15 = alloca i8, i64 %13
%16 = load i32, i32* @stdin
%17 = call i32 @fgets(i8* %15, i32 %12, i32 %16)
%18 = bitcast i32* %1 to i8*
%19 = call i32 @strlen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%20 = call i32 @sscanf(i8* %15, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32* %1)
%21 = load i32, i32* %1
%22 = zext i32 %21 to i64
%23 = alloca [10 x float], i64 %22
%24 = alloca [5 x float], i64 %22
%25 = call i8* @strtok(i8* %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%26 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%27 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%28 = load i32, i32* %1
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %49
30: ; preds = %10, %44
%31 = phi i32 [ %45, %44 ], [ %28, %10 ]
%32 = phi i64 [ %47, %44 ], [ 0, %10 ]
%33 = icmp sgt i32 %31, 0
br i1 %33, label %34, label %44
34: ; preds = %30, %34
%35 = phi i64 [ %40, %34 ], [ 0, %30 ]
%36 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%37 = call float @atof(i8* %36)
%38 = getelementptr inbounds [10 x float], [10 x float]* %23, i64 %32, i64 %35
store float %37, float* %38
%39 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%40 = add nuw nsw i64 %35, 1
%41 = load i32, i32* %1
%42 = sext i32 %41 to i64
%43 = icmp slt i64 %40, %42
br i1 %43, label %34, label %44
44: ; preds = %34, %30
%45 = phi i32 [ %31, %30 ], [ %41, %34 ]
%46 = sext i32 %45 to i64
%47 = add nuw nsw i64 %32, 1
%48 = icmp slt i64 %47, %46
br i1 %48, label %30, label %49
49: ; preds = %44, %10
%50 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0))
%51 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.17, i64 0, i64 0))
%52 = bitcast [10 x float]* %23 to float**
%53 = load i32, i32* %1
%54 = call i32 @printMatrix10F(float** %52, i32 %53, i32 %53)
%55 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.27, i64 0, i64 0))
%56 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.19, i64 0, i64 0))
%57 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.20, i64 0, i64 0))
%58 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.27, i64 0, i64 0))
%59 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.22, i64 0, i64 0))
%60 = bitcast [5 x float]* %24 to float**
%61 = load i32, i32* %1
%62 = call i64 @Inverse(float** %52, float** %60, i32 %61, i32 0)
%63 = icmp eq i64 %62, 0
br i1 %63, label %66, label %64
64: ; preds = %49
%65 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.28, i64 0, i64 0))
br label %77
66: ; preds = %49
%67 = load i32, i32* %1
%68 = call i32 @printMatrix5F(float** %60, i32 %67, i32 %67)
%69 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.27, i64 0, i64 0))
%70 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.27, i64 0, i64 0))
%71 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.25, i64 0, i64 0))
%72 = call i32 (...) @print_time()
%73 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.27, i64 0, i64 0))
%74 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.27, i64 0, i64 0))
%75 = call i32 (...) @print_html_end()
%76 = load i32, i32* @EXIT_SUCCESS
br label %77
77: ; preds = %66, %64
%78 = phi i32 [ 1, %64 ], [ %76, %66 ]
br label %79
79: ; preds = %77, %7
%80 = phi i32 [ -1, %7 ], [ %78, %77 ]
ret i32 %80
}