#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*/ c;

/* Variables and functions */
int /*<<< orphan*/ arrary(int *);
int /*<<< orphan*/ printf(char *, int, ...);
void main(void) {
  int a = 3, b = 5;
  int c[10] = {1, 2, 3, 4, 5};
  a = b = 7;
  printf("%d %d\r\n", a, b);
  a += b += 2;
  printf("%d %d\r\n", a, b);
  printf("%d\r\n", sizeof(c));
  arrary(c);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x3,-0x4(%rbp)
movl   $0x5,-0x8(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1040 <memset@plt>
movl   $0x1,-0x30(%rbp)
movl   $0x2,-0x2c(%rbp)
movl   $0x3,-0x28(%rbp)
movl   $0x4,-0x24(%rbp)
movl   $0x5,-0x20(%rbp)
movl   $0x7,-0x8(%rbp)
movl   $0x7,-0x4(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x8(%rbp)
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xe49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe3e(%rip),%rdi
mov    $0x28,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rdi
call   1050 <arrary@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movq   $0x0,0x20(%rsp)
movaps 0xec3(%rip),%xmm0
movaps %xmm0,(%rsp)
movl   $0x5,0x10(%rsp)
lea    0xec0(%rip),%rbx
mov    %rbx,%rdi
mov    $0x7,%esi
mov    $0x7,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
mov    $0x9,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe94(%rip),%rdi
mov    $0x28,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rsp,%rdi
call   1040 <arrary@plt>
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"%d %d\0D\0A\00"
@.str.1 = [5 x i8] c"%d\0D\0A\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [10 x i32]
store i32 3, i32* %1
store i32 5, i32* %2
%4 = bitcast [10 x i32]* %3 to i8*
%5 = bitcast i8* %4 to [10 x i32]*
%6 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i32 0, i32 0
store i32 1, i32* %6
%7 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i32 0, i32 1
store i32 2, i32* %7
%8 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i32 0, i32 2
store i32 3, i32* %8
%9 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i32 0, i32 3
store i32 4, i32* %9
%10 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i32 0, i32 4
store i32 5, i32* %10
store i32 7, i32* %2
store i32 7, i32* %1
%11 = load i32, i32* %1
%12 = load i32, i32* %2
%13 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %11, i32 %12)
%14 = load i32, i32* %2
%15 = add nsw i32 %14, 2
store i32 %15, i32* %2
%16 = load i32, i32* %1
%17 = add nsw i32 %16, %15
store i32 %17, i32* %1
%18 = load i32, i32* %1
%19 = load i32, i32* %2
%20 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %18, i32 %19)
%21 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 40)
%22 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 0
%23 = call i32 @arrary(i32* %22)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"%d %d\0D\0A\00"
@.str.1 = [5 x i8] c"%d\0D\0A\00"
define void @main() {
%1 = alloca [10 x i32]
%2 = bitcast [10 x i32]* %1 to i8*
%3 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
%4 = bitcast i32* %3 to i8*
%5 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%6 = bitcast [10 x i32]* %1 to <4 x i32>*
store <4 x i32> <i32 1, i32 2, i32 3, i32 4>, <4 x i32>* %6
%7 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
store i32 5, i32* %7
%8 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 7, i32 7)
%9 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 16, i32 9)
%10 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 40)
%11 = call i32 @arrary(i32* %5)
ret void
}