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

/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  int numbers[] = {
      123, 456, 78, 9, 10,
  };
  for (int i = 0; i < sizeof(numbers) / sizeof(numbers[0]); i++)
    printf("%3d\n", numbers[i]);
  char ch1 = 'c';
  char ch2 = 'i';
  char ch3 = 'a';
  char ch4 = 'o';
  char ch5 = '\0';
  char string[] = {ch1, ch2, ch3, ch4, ch5};
  printf("%s\n", string);
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeda(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xed7(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xed5(%rip),%eax
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x24(%rbp)
movslq -0x24(%rbp),%rax
cmp    $0x5,%rax
jae    1177 <main+0x67>
movslq -0x24(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%esi
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1145 <main+0x35>
movb   $0x63,-0x25(%rbp)
movb   $0x69,-0x26(%rbp)
movb   $0x61,-0x27(%rbp)
movb   $0x6f,-0x28(%rbp)
movb   $0x0,-0x29(%rbp)
mov    -0x25(%rbp),%al
mov    %al,-0x2e(%rbp)
mov    -0x26(%rbp),%al
mov    %al,-0x2d(%rbp)
mov    -0x27(%rbp),%al
mov    %al,-0x2c(%rbp)
mov    -0x28(%rbp),%al
mov    %al,-0x2b(%rbp)
mov    -0x29(%rbp),%al
mov    %al,-0x2a(%rbp)
lea    -0x2e(%rbp),%rsi
lea    0xe65(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e1e(%rip),%rax
mov    (%rax),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rbx
mov    %rbx,%rdi
mov    $0x7b,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x1c8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x4e,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x6f616963,0xb(%rsp)
6f
movb   $0x0,0xf(%rsp)
lea    0xb(%rsp),%rdi
call   1030 <puts@plt>
mov    0x2e4b(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.numbers = [5 x i32] [i32 123, i32 456, i32 78, i32 9, i32 10]
@.str = [5 x i8] c"%3d\0A\00"
@.str.1 = [4 x i8] c"%s\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x i32]
%3 = alloca i32
%4 = alloca i8
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = alloca [5 x i8]
store i32 0, i32* %1
%10 = bitcast [5 x i32]* %2 to i8*
store i32 0, i32* %3
br label %11
11: ; preds = %21, %0
%12 = load i32, i32* %3
%13 = sext i32 %12 to i64
%14 = icmp ult i64 %13, 5
br i1 %14, label %15, label %24
15: ; preds = %11
%16 = load i32, i32* %3
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %17
%19 = load i32, i32* %18
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %19)
br label %21
21: ; preds = %15
%22 = load i32, i32* %3
%23 = add nsw i32 %22, 1
store i32 %23, i32* %3
br label %11
24: ; preds = %11
store i8 99, i8* %4
store i8 105, i8* %5
store i8 97, i8* %6
store i8 111, i8* %7
store i8 0, i8* %8
%25 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%26 = load i8, i8* %4
store i8 %26, i8* %25
%27 = getelementptr inbounds i8, i8* %25, i64 1
%28 = load i8, i8* %5
store i8 %28, i8* %27
%29 = getelementptr inbounds i8, i8* %27, i64 1
%30 = load i8, i8* %6
store i8 %30, i8* %29
%31 = getelementptr inbounds i8, i8* %29, i64 1
%32 = load i8, i8* %7
store i8 %32, i8* %31
%33 = getelementptr inbounds i8, i8* %31, i64 1
%34 = load i8, i8* %8
store i8 %34, i8* %33
%35 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %35)
%37 = load i32, i32* @EXIT_SUCCESS
ret i32 %37
}

LLVM IR (-O2):
@.str = [5 x i8] c"%3d\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca [5 x i8]
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 123)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 456)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 78)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 9)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 10)
%7 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 0
store i8 99, i8* %7
%8 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 1
store i8 105, i8* %8
%9 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 2
store i8 97, i8* %9
%10 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 3
store i8 111, i8* %10
%11 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 4
store i8 0, i8* %11
%12 = call i32 @puts(i8* %7)
%13 = load i32, i32* @EXIT_SUCCESS
ret i32 %13
}