#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 myFunction3(int const *, int const *);
float myFunction4();
int /*<<< orphan*/ myFunction6();
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  const int a = 8, b[5] = {1, 2, 3, 4, 5}, c[6] = {7, 8};
  int d, g[8], h[5] = {}, i[2];
  float e, dd;
  const char f;
  const int *aPtr = &a;
  printf("aaa \n");
  printf("test %c, %f \n", '1', 1.0);
  printf("test %c, %5f \n", '2', 23.948984);
  printf("test %c, %i, %7f \n", '3', 528439789, 353332.53523);
  printf("test %37d, %c, %i, %5f \n", 1257, '4', 4, 4.9);
  printf("test %37d, %c, %i, %5f, %7s \n", 342347, '5', 4534, 4535.7,
         "oiejfoijfjeoairjeoi");
  e = myFunction4();
  printf("%i\n", myFunction3(b, c));
  printf("%i\n", myFunction3(h, c));
  printf("%i\n", myFunction3(g, c));
  printf("%i\n", myFunction3(i, c));
  myFunction6();
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x8,-0x8(%rbp)
mov    0xec0(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xebd(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xebb(%rip),%eax
mov    %eax,-0x10(%rbp)
mov    0xec1(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xebe(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xebb(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    -0x90(%rbp),%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1040 <memset@plt>
lea    -0x8(%rbp),%rax
mov    %rax,-0xb0(%rbp)
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe92(%rip),%rdi
mov    $0x31,%esi
movsd  0xe37(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe85(%rip),%rdi
mov    $0x32,%esi
movsd  0xe14(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe79(%rip),%rdi
mov    $0x33,%esi
mov    $0x1f7f59ed,%edx
movsd  0xdec(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe6c(%rip),%rdi
mov    $0x4e9,%esi
mov    $0x34,%edx
mov    $0x4,%ecx
movsd  0xdbf(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe60(%rip),%rdi
mov    $0x5394b,%esi
mov    $0x35,%edx
mov    $0x11b6,%ecx
movsd  0xd92(%rip),%xmm0
lea    0xe60(%rip),%r8
mov    $0x1,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <myFunction4@plt>
movss  %xmm0,-0x9c(%rbp)
ff
lea    -0x20(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1050 <myFunction3@plt>
mov    %eax,%esi
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x90(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1050 <myFunction3@plt>
mov    %eax,%esi
lea    0xe28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x70(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1050 <myFunction3@plt>
mov    %eax,%esi
lea    0xe0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x98(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1050 <myFunction3@plt>
mov    %eax,%esi
lea    0xdeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1070 <myFunction6@plt>
mov    $0x1,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x88,%rsp
mov    0xee0(%rip),%eax
mov    %eax,0x30(%rsp)
movaps 0xec5(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
mov    0xee9(%rip),%rax
mov    %rax,0x50(%rsp)
movaps 0xecd(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movl   $0x0,0x10(%rsp)
lea    0xf49(%rip),%rdi
call   1030 <puts@plt>
lea    0xebe(%rip),%rdi
movsd  0xe4e(%rip),%xmm0
mov    $0x31,%esi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xeb1(%rip),%rdi
movsd  0xe3b(%rip),%xmm0
mov    $0x32,%esi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xea5(%rip),%rdi
movsd  0xe28(%rip),%xmm0
mov    $0x33,%esi
mov    $0x1f7f59ed,%edx
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe98(%rip),%rdi
movsd  0xe10(%rip),%xmm0
mov    $0x4e9,%esi
mov    $0x34,%edx
mov    $0x4,%ecx
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe8c(%rip),%rdi
lea    0xea3(%rip),%r8
movsd  0xdec(%rip),%xmm0
mov    $0x5394b,%esi
mov    $0x35,%edx
mov    $0x11b6,%ecx
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
call   1060 <myFunction4@plt>
lea    0x20(%rsp),%rdi
lea    0x40(%rsp),%r14
mov    %r14,%rsi
call   1050 <myFunction3@plt>
lea    0xe79(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rsp,%rdi
mov    %r14,%rsi
call   1050 <myFunction3@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x60(%rsp),%rdi
mov    %r14,%rsi
call   1050 <myFunction3@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x58(%rsp),%rdi
mov    %r14,%rsi
call   1050 <myFunction3@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <myFunction6@plt>
mov    $0x1,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.b = [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5]
@__const.main.c = [6 x i32] [i32 7, i32 8, i32 0, i32 0, i32 0, i32 0]
@.str = [6 x i8] c"aaa \0A\00"
@.str.1 = [14 x i8] c"test %c, %f \0A\00"
@.str.2 = [15 x i8] c"test %c, %5f \0A\00"
@.str.3 = [19 x i8] c"test %c, %i, %7f \0A\00"
@.str.4 = [25 x i8] c"test %37d, %c, %i, %5f \0A\00"
@.str.5 = [30 x i8] c"test %37d, %c, %i, %5f, %7s \0A\00"
@.str.6 = [20 x i8] c"oiejfoijfjeoairjeoi\00"
@.str.7 = [4 x i8] c"%i\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [5 x i32]
%4 = alloca [6 x i32]
%5 = alloca i32
%6 = alloca [8 x i32]
%7 = alloca [5 x i32]
%8 = alloca [2 x i32]
%9 = alloca float
%10 = alloca float
%11 = alloca i8
%12 = alloca i32*
store i32 0, i32* %1
store i32 8, i32* %2
%13 = bitcast [5 x i32]* %3 to i8*
%14 = bitcast [6 x i32]* %4 to i8*
%15 = bitcast [5 x i32]* %7 to i8*
store i32* %2, i32** %12
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 49, double 1.000000e+00)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 50, double 0x4037F2F09D8C6D61)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i32 51, i32 528439789, double 0x411590D224135547)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 1257, i32 52, i32 4, double 4.900000e+00)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 342347, i32 53, i32 4534, double 4.535700e+03, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%22 = call float (...) @myFunction4()
store float %22, float* %9
%23 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 0
%24 = getelementptr inbounds [6 x i32], [6 x i32]* %4, i64 0, i64 0
%25 = call i32 @myFunction3(i32* %23, i32* %24)
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %25)
%27 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 0
%28 = getelementptr inbounds [6 x i32], [6 x i32]* %4, i64 0, i64 0
%29 = call i32 @myFunction3(i32* %27, i32* %28)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %29)
%31 = getelementptr inbounds [8 x i32], [8 x i32]* %6, i64 0, i64 0
%32 = getelementptr inbounds [6 x i32], [6 x i32]* %4, i64 0, i64 0
%33 = call i32 @myFunction3(i32* %31, i32* %32)
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %33)
%35 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 0
%36 = getelementptr inbounds [6 x i32], [6 x i32]* %4, i64 0, i64 0
%37 = call i32 @myFunction3(i32* %35, i32* %36)
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %37)
%39 = call i32 (...) @myFunction6()
ret i32 1
}

LLVM IR (-O2):
@__const.main.b = [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5]
@__const.main.c = [6 x i32] [i32 7, i32 8, i32 0, i32 0, i32 0, i32 0]
@.str.1 = [14 x i8] c"test %c, %f \0A\00"
@.str.2 = [15 x i8] c"test %c, %5f \0A\00"
@.str.3 = [19 x i8] c"test %c, %i, %7f \0A\00"
@.str.4 = [25 x i8] c"test %37d, %c, %i, %5f \0A\00"
@.str.5 = [30 x i8] c"test %37d, %c, %i, %5f, %7s \0A\00"
@.str.6 = [20 x i8] c"oiejfoijfjeoairjeoi\00"
@.str.7 = [4 x i8] c"%i\0A\00"
@str = [5 x i8] c"aaa \00"
define i32 @main() {
%1 = alloca [5 x i32]
%2 = alloca [6 x i32]
%3 = alloca [8 x i32]
%4 = alloca [5 x i32]
%5 = alloca [2 x i32]
%6 = bitcast [5 x i32]* %1 to i8*
%7 = bitcast [6 x i32]* %2 to i8*
%8 = bitcast [8 x i32]* %3 to i8*
%9 = bitcast [5 x i32]* %4 to i8*
%10 = bitcast [2 x i32]* %5 to i8*
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 49, double 1.000000e+00)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 50, double 0x4037F2F09D8C6D61)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i32 51, i32 528439789, double 0x411590D224135547)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 1257, i32 52, i32 4, double 4.900000e+00)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 342347, i32 53, i32 4534, double 4.535700e+03, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%17 = tail call float (...) @myFunction4()
%18 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%19 = getelementptr inbounds [6 x i32], [6 x i32]* %2, i64 0, i64 0
%20 = call i32 @myFunction3(i32* %18, i32* %19)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %20)
%22 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 0
%23 = call i32 @myFunction3(i32* %22, i32* %19)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %23)
%25 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%26 = call i32 @myFunction3(i32* %25, i32* %19)
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %26)
%28 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
%29 = call i32 @myFunction3(i32* %28, i32* %19)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %29)
%31 = call i32 (...) @myFunction6()
ret i32 1
}