#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*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  int numbers[4] = {0};
  char name[5] = {'a'};
  printf("numbers: %d %d %d %d.\n", numbers[0], numbers[1], numbers[2],
         numbers[3]);
  printf("name each: %c %c %c %c %c.\n", name[0], name[1], name[2], name[3],
         name[4]);
  printf("name: %s.\n", name);
  numbers[0] = 1;
  numbers[1] = 2;
  numbers[2] = 3;
  numbers[3] = 4;
  name[0] = 'O';
  name[1] = 'm';
  name[2] = 'e';
  name[3] = 'r';
  name[4] = '\0';
  printf("numbers: %d %d %d %d.\n", numbers[0], numbers[1], numbers[2],
         numbers[3]);
  printf("name each: %c %c %c %c %c.\n", name[0], name[1], name[2], name[3],
         name[4]);
  printf("name: %s.\n", name);
  char *another = "Omer";
  printf("another: %s.\n", another);
  printf("another each: %c %c %c %c %c.\n", another[0], another[1], another[2],
         another[3], another[4]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x20(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1040 <memset@plt>
mov    0xeb4(%rip),%eax
mov    %eax,-0x25(%rbp)
mov    0xeaf(%rip),%al
mov    %al,-0x21(%rbp)
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x25(%rbp),%esi
movsbl -0x24(%rbp),%edx
movsbl -0x23(%rbp),%ecx
movsbl -0x22(%rbp),%r8d
movsbl -0x21(%rbp),%r9d
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x25(%rbp),%rsi
lea    0xe96(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x20(%rbp)
movl   $0x2,-0x1c(%rbp)
movl   $0x3,-0x18(%rbp)
movl   $0x4,-0x14(%rbp)
movb   $0x4f,-0x25(%rbp)
movb   $0x6d,-0x24(%rbp)
movb   $0x65,-0x23(%rbp)
movb   $0x72,-0x22(%rbp)
movb   $0x0,-0x21(%rbp)
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
lea    0xe18(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x25(%rbp),%esi
movsbl -0x24(%rbp),%edx
movsbl -0x23(%rbp),%ecx
movsbl -0x22(%rbp),%r8d
movsbl -0x21(%rbp),%r9d
lea    0xe0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x25(%rbp),%rsi
lea    0xe15(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe12(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rsi
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rax
movsbl (%rax),%esi
mov    -0x30(%rbp),%rax
movsbl 0x1(%rax),%edx
mov    -0x30(%rbp),%rax
movsbl 0x2(%rax),%ecx
mov    -0x30(%rbp),%rax
movsbl 0x3(%rax),%r8d
mov    -0x30(%rbp),%rax
movsbl 0x4(%rax),%r9d
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
movb   $0x0,0x4(%rsp)
movl   $0x61,(%rsp)
lea    0xeda(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed7(%rip),%r14
mov    %r14,%rdi
mov    $0x61,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed3(%rip),%r15
mov    %rsp,%r12
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
movl   $0x72656d4f,(%rsp)
movb   $0x0,0x4(%rsp)
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x4,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
movsbl (%rsp),%esi
movsbl 0x1(%rsp),%edx
movsbl 0x2(%rsp),%ecx
movsbl 0x3(%rsp),%r8d
movsbl 0x4(%rsp),%r9d
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe70(%rip),%rdi
lea    0xe64(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe69(%rip),%rdi
mov    $0x4f,%esi
mov    $0x6d,%edx
mov    $0x65,%ecx
mov    $0x72,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.name = [5 x i8] c"a\00\00\00\00"
@.str = [23 x i8] c"numbers: %d %d %d %d.\0A\00"
@.str.1 = [28 x i8] c"name each: %c %c %c %c %c.\0A\00"
@.str.2 = [11 x i8] c"name: %s.\0A\00"
@.str.3 = [5 x i8] c"Omer\00"
@.str.4 = [14 x i8] c"another: %s.\0A\00"
@.str.5 = [31 x i8] c"another each: %c %c %c %c %c.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [4 x i32]
%7 = alloca [5 x i8]
%8 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = bitcast [4 x i32]* %6 to i8*
%10 = bitcast [5 x i8]* %7 to i8*
%11 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%12 = load i32, i32* %11
%13 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 1
%14 = load i32, i32* %13
%15 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 2
%16 = load i32, i32* %15
%17 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 3
%18 = load i32, i32* %17
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %12, i32 %14, i32 %16, i32 %18)
%20 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 0
%21 = load i8, i8* %20
%22 = sext i8 %21 to i32
%23 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 1
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 2
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
%29 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 3
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 4
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 %22, i32 %25, i32 %28, i32 %31, i32 %34)
%36 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 0
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %36)
%38 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
store i32 1, i32* %38
%39 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 1
store i32 2, i32* %39
%40 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 2
store i32 3, i32* %40
%41 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 3
store i32 4, i32* %41
%42 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 0
store i8 79, i8* %42
%43 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 1
store i8 109, i8* %43
%44 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 2
store i8 101, i8* %44
%45 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 3
store i8 114, i8* %45
%46 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 4
store i8 0, i8* %46
%47 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%48 = load i32, i32* %47
%49 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 1
%50 = load i32, i32* %49
%51 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 2
%52 = load i32, i32* %51
%53 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 3
%54 = load i32, i32* %53
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %48, i32 %50, i32 %52, i32 %54)
%56 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 0
%57 = load i8, i8* %56
%58 = sext i8 %57 to i32
%59 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 1
%60 = load i8, i8* %59
%61 = sext i8 %60 to i32
%62 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 2
%63 = load i8, i8* %62
%64 = sext i8 %63 to i32
%65 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 3
%66 = load i8, i8* %65
%67 = sext i8 %66 to i32
%68 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 4
%69 = load i8, i8* %68
%70 = sext i8 %69 to i32
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 %58, i32 %61, i32 %64, i32 %67, i32 %70)
%72 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 0
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %72)
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8** %8
%74 = load i8*, i8** %8
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* %74)
%76 = load i8*, i8** %8
%77 = getelementptr inbounds i8, i8* %76, i64 0
%78 = load i8, i8* %77
%79 = sext i8 %78 to i32
%80 = load i8*, i8** %8
%81 = getelementptr inbounds i8, i8* %80, i64 1
%82 = load i8, i8* %81
%83 = sext i8 %82 to i32
%84 = load i8*, i8** %8
%85 = getelementptr inbounds i8, i8* %84, i64 2
%86 = load i8, i8* %85
%87 = sext i8 %86 to i32
%88 = load i8*, i8** %8
%89 = getelementptr inbounds i8, i8* %88, i64 3
%90 = load i8, i8* %89
%91 = sext i8 %90 to i32
%92 = load i8*, i8** %8
%93 = getelementptr inbounds i8, i8* %92, i64 4
%94 = load i8, i8* %93
%95 = sext i8 %94 to i32
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i32 %79, i32 %83, i32 %87, i32 %91, i32 %95)
ret i32 0
}

LLVM IR (-O2):
@__const.main.name = [5 x i8] c"a\00\00\00\00"
@.str = [23 x i8] c"numbers: %d %d %d %d.\0A\00"
@.str.1 = [28 x i8] c"name each: %c %c %c %c %c.\0A\00"
@.str.2 = [11 x i8] c"name: %s.\0A\00"
@.str.3 = [5 x i8] c"Omer\00"
@.str.4 = [14 x i8] c"another: %s.\0A\00"
@.str.5 = [31 x i8] c"another each: %c %c %c %c %c.\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [5 x i8]
%4 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 0, i32 0, i32 0, i32 0)
%6 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 1
%7 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 2
%8 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 3
%9 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 4
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 97, i32 0, i32 0, i32 0, i32 0)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %4)
store i8 79, i8* %4
store i8 109, i8* %6
store i8 101, i8* %7
store i8 114, i8* %8
store i8 0, i8* %9
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 1, i32 2, i32 3, i32 4)
%13 = load i8, i8* %4
%14 = sext i8 %13 to i32
%15 = load i8, i8* %6
%16 = sext i8 %15 to i32
%17 = load i8, i8* %7
%18 = sext i8 %17 to i32
%19 = load i8, i8* %8
%20 = sext i8 %19 to i32
%21 = load i8, i8* %9
%22 = sext i8 %21 to i32
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 %14, i32 %16, i32 %18, i32 %20, i32 %22)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %4)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i32 79, i32 109, i32 101, i32 114, i32 0)
ret i32 0
}