#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;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ setbuf(int /*<<< orphan*/, int /*<<< orphan*/ *);
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ system(char *);
int main(void) {
  setbuf(stdout, NULL);
  system("cls");
  double einkommen_miete[5][2];
  einkommen_miete[0][0] = 4200.0;
  einkommen_miete[0][1] = 1200.0;
  einkommen_miete[1][0] = 900.0;
  einkommen_miete[1][1] = 340.0;
  einkommen_miete[2][0] = 1800.0;
  einkommen_miete[2][1] = 600.0;
  einkommen_miete[3][0] = 3600.0;
  einkommen_miete[3][1] = 1100.0;
  einkommen_miete[4][0] = 2700.0;
  einkommen_miete[4][1] = 800.0;
  einkommen_miete[5][0] = 5900.0;
  einkommen_miete[5][1] = 1300.0;
  printf("\n\n");
  for (int i = 0; i < 6; i++) {
    for (int j = 0; j < 2; j++) {
      printf("\t\t%d %d --> %.2lf\n", i, j, einkommen_miete[i][j]);
    }
  }
  printf("%.2lf", einkommen_miete[5][0]);
  printf("\n\n");
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e9a(%rip),%rax
mov    (%rax),%edi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <setbuf@plt>
lea    0xf08(%rip),%rdi
call   1040 <system@plt>
movsd  0xef3(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xede(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xec9(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xeb4(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xe9f(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xe8a(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe75(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe60(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe4b(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe36(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xe21(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xe0c(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
lea    0xe64(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x64(%rbp)
cmpl   $0x6,-0x64(%rbp)
jge    1276 <main+0x146>
movl   $0x0,-0x68(%rbp)
cmpl   $0x2,-0x68(%rbp)
jge    1263 <main+0x133>
mov    -0x64(%rbp),%esi
mov    -0x68(%rbp),%edx
movslq -0x64(%rbp),%rcx
lea    -0x60(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xe19(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    121f <main+0xef>
jmp    1268 <main+0x138>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    120e <main+0xde>
movsd  -0x10(%rbp),%xmm0
lea    0xdf8(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xdd4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2d3a(%rip),%rax
mov    (%rax),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    0x2e95(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   1040 <setbuf@plt>
lea    0xefd(%rip),%rdi
call   1050 <system@plt>
lea    0xf06(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xee6(%rip),%rbx
movsd  0xe82(%rip),%xmm0
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe74(%rip),%xmm0
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1,%edx
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe63(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %edx,%edx
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe52(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe3e(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %edx,%edx
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe2d(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe19(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %edx,%edx
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe08(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xdf4(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %edx,%edx
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xde3(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    $0x1,%al
call   1060 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %edx,%edx
mov    $0x1,%al
call   1060 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xdca(%rip),%rdi
movsd  0xda3(%rip),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    0x2d15(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [4 x i8] c"cls\00"
@.str.1 = [3 x i8] c"\0A\0A\00"
@.str.2 = [19 x i8] c"\09\09%d %d --> %.2lf\0A\00"
@.str.3 = [6 x i8] c"%.2lf\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x [2 x double]]
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = load i32, i32* @stdout
%6 = call i32 @setbuf(i32 %5, i32* null)
%7 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%8 = getelementptr inbounds [5 x [2 x double]], [5 x [2 x double]]* %2, i64 0, i64 0
%9 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 0
store double 4.200000e+03, double* %9
%10 = getelementptr inbounds [5 x [2 x double]], [5 x [2 x double]]* %2, i64 0, i64 0
%11 = getelementptr inbounds [2 x double], [2 x double]* %10, i64 0, i64 1
store double 1.200000e+03, double* %11
%12 = getelementptr inbounds [5 x [2 x double]], [5 x [2 x double]]* %2, i64 0, i64 1
%13 = getelementptr inbounds [2 x double], [2 x double]* %12, i64 0, i64 0
store double 9.000000e+02, double* %13
%14 = getelementptr inbounds [5 x [2 x double]], [5 x [2 x double]]* %2, i64 0, i64 1
%15 = getelementptr inbounds [2 x double], [2 x double]* %14, i64 0, i64 1
store double 3.400000e+02, double* %15
%16 = getelementptr inbounds [5 x [2 x double]], [5 x [2 x double]]* %2, i64 0, i64 2
%17 = getelementptr inbounds [2 x double], [2 x double]* %16, i64 0, i64 0
store double 1.800000e+03, double* %17
%18 = getelementptr inbounds [5 x [2 x double]], [5 x [2 x double]]* %2, i64 0, i64 2
%19 = getelementptr inbounds [2 x double], [2 x double]* %18, i64 0, i64 1
store double 6.000000e+02, double* %19
%20 = getelementptr inbounds [5 x [2 x double]], [5 x [2 x double]]* %2, i64 0, i64 3
%21 = getelementptr inbounds [2 x double], [2 x double]* %20, i64 0, i64 0
store double 3.600000e+03, double* %21
%22 = getelementptr inbounds [5 x [2 x double]], [5 x [2 x double]]* %2, i64 0, i64 3
%23 = getelementptr inbounds [2 x double], [2 x double]* %22, i64 0, i64 1
store double 1.100000e+03, double* %23
%24 = getelementptr inbounds [5 x [2 x double]], [5 x [2 x double]]* %2, i64 0, i64 4
%25 = getelementptr inbounds [2 x double], [2 x double]* %24, i64 0, i64 0
store double 2.700000e+03, double* %25
%26 = getelementptr inbounds [5 x [2 x double]], [5 x [2 x double]]* %2, i64 0, i64 4
%27 = getelementptr inbounds [2 x double], [2 x double]* %26, i64 0, i64 1
store double 8.000000e+02, double* %27
%28 = getelementptr inbounds [5 x [2 x double]], [5 x [2 x double]]* %2, i64 0, i64 5
%29 = getelementptr inbounds [2 x double], [2 x double]* %28, i64 0, i64 0
store double 5.900000e+03, double* %29
%30 = getelementptr inbounds [5 x [2 x double]], [5 x [2 x double]]* %2, i64 0, i64 5
%31 = getelementptr inbounds [2 x double], [2 x double]* %30, i64 0, i64 1
store double 1.300000e+03, double* %31
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %3
br label %33
33: ; preds = %55, %0
%34 = load i32, i32* %3
%35 = icmp slt i32 %34, 6
br i1 %35, label %36, label %58
36: ; preds = %33
store i32 0, i32* %4
br label %37
37: ; preds = %51, %36
%38 = load i32, i32* %4
%39 = icmp slt i32 %38, 2
br i1 %39, label %40, label %54
40: ; preds = %37
%41 = load i32, i32* %3
%42 = load i32, i32* %4
%43 = load i32, i32* %3
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [5 x [2 x double]], [5 x [2 x double]]* %2, i64 0, i64 %44
%46 = load i32, i32* %4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [2 x double], [2 x double]* %45, i64 0, i64 %47
%49 = load double, double* %48
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %41, i32 %42, double %49)
br label %51
51: ; preds = %40
%52 = load i32, i32* %4
%53 = add nsw i32 %52, 1
store i32 %53, i32* %4
br label %37
54: ; preds = %37
br label %55
55: ; preds = %54
%56 = load i32, i32* %3
%57 = add nsw i32 %56, 1
store i32 %57, i32* %3
br label %33
58: ; preds = %33
%59 = getelementptr inbounds [5 x [2 x double]], [5 x [2 x double]]* %2, i64 0, i64 5
%60 = getelementptr inbounds [2 x double], [2 x double]* %59, i64 0, i64 0
%61 = load double, double* %60
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), double %61)
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%64 = load i32, i32* @EXIT_SUCCESS
ret i32 %64
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [4 x i8] c"cls\00"
@.str.2 = [19 x i8] c"\09\09%d %d --> %.2lf\0A\00"
@.str.3 = [6 x i8] c"%.2lf\00"
@EXIT_SUCCESS = global i32 0
@str.4 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @setbuf(i32 %1, i32* null)
%3 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.4, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 0, double 4.200000e+03)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 1, double 1.200000e+03)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 0, double 9.000000e+02)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 1, double 3.400000e+02)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 2, i32 0, double 1.800000e+03)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 2, i32 1, double 6.000000e+02)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 3, i32 0, double 3.600000e+03)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 3, i32 1, double 1.100000e+03)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 4, i32 0, double 2.700000e+03)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 4, i32 1, double 8.000000e+02)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 5, i32 0, double poison)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 5, i32 1, double poison)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), double 5.900000e+03)
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.4, i64 0, i64 0))
%19 = load i32, i32* @EXIT_SUCCESS
ret i32 %19
}