#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 /*<<< orphan*/ putchar(int);
void f1(void) {
  typedef int INT;
  typedef INT JNT;
  typedef JNT KNT;
  INT i = 'i';
  JNT j = 'j';
  KNT k = 'k';
  typedef int int_arr[3];
  int_arr foo_array;
  int_arr foo_array_arr[2];
  foo_array_arr[0][0] = 'a';
  foo_array_arr[0][1] = 'b';
  foo_array_arr[0][2] = 'c';
  foo_array_arr[1][0] = 'd';
  foo_array_arr[1][1] = 'e';
  foo_array_arr[1][2] = 'f';
  putchar(foo_array_arr[0][0]);
  putchar(foo_array_arr[0][1]);
  putchar(foo_array_arr[0][2]);
  putchar(foo_array_arr[1][0]);
  putchar(foo_array_arr[1][1]);
  putchar(foo_array_arr[1][2]);
  foo_array[0] = 'c';
  foo_array[1] = 'd';
  foo_array[2] = 'e';
  putchar('a');
  putchar(foo_array[0]);
  putchar(foo_array[1]);
  putchar(foo_array[2]);
  putchar(i);
  putchar(j);
  putchar(k);
}


x86 assembly (clang, -O0):
<f1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x69,-0x4(%rbp)
movl   $0x6a,-0x8(%rbp)
movl   $0x6b,-0xc(%rbp)
movl   $0x61,-0x30(%rbp)
movl   $0x62,-0x2c(%rbp)
movl   $0x63,-0x28(%rbp)
movl   $0x64,-0x24(%rbp)
movl   $0x65,-0x20(%rbp)
movl   $0x66,-0x1c(%rbp)
mov    -0x30(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x2c(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x28(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x24(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x20(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x1c(%rbp),%edi
call   1030 <putchar@plt>
movl   $0x63,-0x18(%rbp)
movl   $0x64,-0x14(%rbp)
movl   $0x65,-0x10(%rbp)
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    -0x18(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x14(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x10(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x4(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%edi
call   1030 <putchar@plt>
mov    -0xc(%rbp),%edi
call   1030 <putchar@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f1>:
push   %rax
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    $0x62,%edi
call   1030 <putchar@plt>
mov    $0x63,%edi
call   1030 <putchar@plt>
mov    $0x64,%edi
call   1030 <putchar@plt>
mov    $0x65,%edi
call   1030 <putchar@plt>
mov    $0x66,%edi
call   1030 <putchar@plt>
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    $0x63,%edi
call   1030 <putchar@plt>
mov    $0x64,%edi
call   1030 <putchar@plt>
mov    $0x65,%edi
call   1030 <putchar@plt>
mov    $0x69,%edi
call   1030 <putchar@plt>
mov    $0x6a,%edi
call   1030 <putchar@plt>
mov    $0x6b,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
define void @f1() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [3 x i32]
%5 = alloca [2 x [3 x i32]]
store i32 105, i32* %1
store i32 106, i32* %2
store i32 107, i32* %3
%6 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %5, i64 0, i64 0
%7 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
store i32 97, i32* %7
%8 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %5, i64 0, i64 0
%9 = getelementptr inbounds [3 x i32], [3 x i32]* %8, i64 0, i64 1
store i32 98, i32* %9
%10 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %5, i64 0, i64 0
%11 = getelementptr inbounds [3 x i32], [3 x i32]* %10, i64 0, i64 2
store i32 99, i32* %11
%12 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %5, i64 0, i64 1
%13 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 0
store i32 100, i32* %13
%14 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %5, i64 0, i64 1
%15 = getelementptr inbounds [3 x i32], [3 x i32]* %14, i64 0, i64 1
store i32 101, i32* %15
%16 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %5, i64 0, i64 1
%17 = getelementptr inbounds [3 x i32], [3 x i32]* %16, i64 0, i64 2
store i32 102, i32* %17
%18 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %5, i64 0, i64 0
%19 = getelementptr inbounds [3 x i32], [3 x i32]* %18, i64 0, i64 0
%20 = load i32, i32* %19
%21 = call i32 @putchar(i32 %20)
%22 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %5, i64 0, i64 0
%23 = getelementptr inbounds [3 x i32], [3 x i32]* %22, i64 0, i64 1
%24 = load i32, i32* %23
%25 = call i32 @putchar(i32 %24)
%26 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %5, i64 0, i64 0
%27 = getelementptr inbounds [3 x i32], [3 x i32]* %26, i64 0, i64 2
%28 = load i32, i32* %27
%29 = call i32 @putchar(i32 %28)
%30 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %5, i64 0, i64 1
%31 = getelementptr inbounds [3 x i32], [3 x i32]* %30, i64 0, i64 0
%32 = load i32, i32* %31
%33 = call i32 @putchar(i32 %32)
%34 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %5, i64 0, i64 1
%35 = getelementptr inbounds [3 x i32], [3 x i32]* %34, i64 0, i64 1
%36 = load i32, i32* %35
%37 = call i32 @putchar(i32 %36)
%38 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %5, i64 0, i64 1
%39 = getelementptr inbounds [3 x i32], [3 x i32]* %38, i64 0, i64 2
%40 = load i32, i32* %39
%41 = call i32 @putchar(i32 %40)
%42 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 0
store i32 99, i32* %42
%43 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 1
store i32 100, i32* %43
%44 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 2
store i32 101, i32* %44
%45 = call i32 @putchar(i32 97)
%46 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 0
%47 = load i32, i32* %46
%48 = call i32 @putchar(i32 %47)
%49 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 1
%50 = load i32, i32* %49
%51 = call i32 @putchar(i32 %50)
%52 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 2
%53 = load i32, i32* %52
%54 = call i32 @putchar(i32 %53)
%55 = load i32, i32* %1
%56 = call i32 @putchar(i32 %55)
%57 = load i32, i32* %2
%58 = call i32 @putchar(i32 %57)
%59 = load i32, i32* %3
%60 = call i32 @putchar(i32 %59)
ret void
}

LLVM IR (-O2):
define void @f1() {
%1 = tail call i32 @putchar(i32 97)
%2 = tail call i32 @putchar(i32 98)
%3 = tail call i32 @putchar(i32 99)
%4 = tail call i32 @putchar(i32 100)
%5 = tail call i32 @putchar(i32 101)
%6 = tail call i32 @putchar(i32 102)
%7 = tail call i32 @putchar(i32 97)
%8 = tail call i32 @putchar(i32 99)
%9 = tail call i32 @putchar(i32 100)
%10 = tail call i32 @putchar(i32 101)
%11 = tail call i32 @putchar(i32 105)
%12 = tail call i32 @putchar(i32 106)
%13 = tail call i32 @putchar(i32 107)
ret void
}