#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[4] = {'a', 'a', 'a', 'a'};
  char *name2 = "aaaa";
  printf("numbers: %d %d %d %d \n", numbers[0], numbers[1], numbers[2],
         numbers[3]);
  printf("name each: %c %c %c %c\n", name[0], name[1], name[2], name[3]);
  printf("name: %s\n", name);
  numbers[0] = 1;
  numbers[1] = 2;
  numbers[2] = 3;
  numbers[3] = 4;
  name[0] = 'Z';
  name[1] = 'e';
  name[2] = 'd';
  name[3] = '\0';
  printf("numbers: %d %d %d %d\n", numbers[0], numbers[1], numbers[2],
         numbers[3]);
  printf("name each: %c %c %c %c\n", name[0], name[1], name[2], name[3]);
  printf("name: %s\n", name);
  char *another = "Zed";
  printf("another: %s\n", another);
  printf("another each: %c %c %c %c\n", another[0], another[1], another[2],
         another[3]);
  printf("Assign characters into numbers and then print 1 char at a time\n");
  numbers[0] = name;
  printf("numers[0] = %d\n", numbers[0]);
  printf("numers[1] = %d\n", numbers[1]);
  printf("numers[2] = %d\n", numbers[2]);
  printf("numers[3] = %d\n", numbers[3]);
  printf("Assign numbers into name and then print 1 char at a time\n");
  name[0] = numbers;
  printf("name each: %c %c %c %c\n", name[0], name[1], name[2], name[3]);
  char four_bytes[4] = {'a', 'b', 'c', 'd'};
  int one_int = 3;
  int number_array[3] = {1, 2};
  printf("first int = %d\n", number_array[0]);
  printf("second int = %d\n", number_array[1]);
  printf("\nAssing char array to number_array[2]\n");
  number_array[2] = four_bytes;
  printf("third int = %d\n", number_array[2]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%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,-0x24(%rbp)
lea    0xeb2(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
lea    0xe9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x24(%rbp),%esi
movsbl -0x23(%rbp),%edx
movsbl -0x22(%rbp),%ecx
movsbl -0x21(%rbp),%r8d
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x24(%rbp),%rsi
lea    0xe9d(%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   $0x5a,-0x24(%rbp)
movb   $0x65,-0x23(%rbp)
movb   $0x64,-0x22(%rbp)
movb   $0x0,-0x21(%rbp)
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
lea    0xe60(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x24(%rbp),%esi
movsbl -0x23(%rbp),%edx
movsbl -0x22(%rbp),%ecx
movsbl -0x21(%rbp),%r8d
lea    0xe1f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x24(%rbp),%rsi
lea    0xe25(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe37(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rsi
lea    0xe2c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rax
movsbl (%rax),%esi
mov    -0x38(%rbp),%rax
movsbl 0x1(%rax),%edx
mov    -0x38(%rbp),%rax
movsbl 0x2(%rax),%ecx
mov    -0x38(%rbp),%rax
movsbl 0x3(%rax),%r8d
lea    0xe0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe18(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x24(%rbp),%rax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%esi
lea    0xe40(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%esi
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xe3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xe3d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x20(%rbp),%rax
mov    %al,-0x24(%rbp)
movsbl -0x24(%rbp),%esi
movsbl -0x23(%rbp),%edx
movsbl -0x22(%rbp),%ecx
movsbl -0x21(%rbp),%r8d
lea    0xd35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xd08(%rip),%eax
mov    %eax,-0x3c(%rbp)
movl   $0x3,-0x40(%rbp)
mov    0xe8f(%rip),%rax
mov    %rax,-0x4c(%rbp)
mov    0xe8d(%rip),%eax
mov    %eax,-0x44(%rbp)
mov    -0x4c(%rbp),%esi
lea    0xe1e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x48(%rbp),%esi
lea    0xe1d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x3c(%rbp),%rax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%esi
lea    0xe2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
movl   $0x61616161,0x8(%rsp)
61
lea    0xec8(%rip),%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec8(%rip),%r14
mov    %r14,%rdi
mov    $0x61,%esi
mov    $0x61,%edx
mov    $0x61,%ecx
mov    $0x61,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeba(%rip),%r15
lea    0x8(%rsp),%rbx
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
movabs $0x300000002,%rax
mov    %rax,0x14(%rsp)
movl   $0x4,0x1c(%rsp)
movl   $0x64655a,0x8(%rsp)
lea    0xe8c(%rip),%rdi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x4,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x8(%rsp),%esi
movsbl 0x9(%rsp),%edx
movsbl 0xa(%rsp),%ecx
movsbl 0xb(%rsp),%r8d
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe57(%rip),%rdi
lea    0xe4c(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe4f(%rip),%rdi
mov    $0x5a,%esi
mov    $0x65,%edx
mov    $0x64,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xebb(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,0x10(%rsp)
lea    0xe3a(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe3a(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe37(%rip),%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe34(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xea1(%rip),%rdi
call   1030 <puts@plt>
lea    0x10(%rsp),%rax
mov    %al,0x8(%rsp)
movsbl %al,%esi
movsbl 0x9(%rsp),%edx
movsbl 0xa(%rsp),%ecx
movsbl 0xb(%rsp),%r8d
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x64636261,0xc(%rsp)
64
lea    0xdf7(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdf4(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe7a(%rip),%rdi
call   1030 <puts@plt>
lea    0xc(%rsp),%rsi
lea    0xde1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.name = [4 x i8] c"aaaa"
@.str = [5 x i8] c"aaaa\00"
@.str.1 = [23 x i8] c"numbers: %d %d %d %d \0A\00"
@.str.2 = [24 x i8] c"name each: %c %c %c %c\0A\00"
@.str.3 = [10 x i8] c"name: %s\0A\00"
@.str.4 = [22 x i8] c"numbers: %d %d %d %d\0A\00"
@.str.5 = [4 x i8] c"Zed\00"
@.str.6 = [13 x i8] c"another: %s\0A\00"
@.str.7 = [27 x i8] c"another each: %c %c %c %c\0A\00"
@.str.8 = [64 x i8] c"Assign characters into numbers and then print 1 char at a time\0A\00"
@.str.9 = [16 x i8] c"numers[0] = %d\0A\00"
@.str.10 = [16 x i8] c"numers[1] = %d\0A\00"
@.str.11 = [16 x i8] c"numers[2] = %d\0A\00"
@.str.12 = [16 x i8] c"numers[3] = %d\0A\00"
@.str.13 = [58 x i8] c"Assign numbers into name and then print 1 char at a time\0A\00"
@__const.main.four_bytes = [4 x i8] c"abcd"
@__const.main.number_array = [3 x i32] [i32 1, i32 2, i32 0]
@.str.14 = [16 x i8] c"first int = %d\0A\00"
@.str.15 = [17 x i8] c"second int = %d\0A\00"
@.str.16 = [39 x i8] c"\0AAssing char array to number_array[2]\0A\00"
@.str.17 = [16 x i8] c"third int = %d\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 [4 x i8]
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca [4 x i8]
%11 = alloca i32
%12 = alloca [3 x i32]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = bitcast [4 x i32]* %6 to i8*
%14 = bitcast [4 x i8]* %7 to i8*
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %8
%15 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%16 = load i32, i32* %15
%17 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 1
%18 = load i32, i32* %17
%19 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 2
%20 = load i32, i32* %19
%21 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 3
%22 = load i32, i32* %21
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 %16, i32 %18, i32 %20, i32 %22)
%24 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 1
%28 = load i8, i8* %27
%29 = sext i8 %28 to i32
%30 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 2
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 3
%34 = load i8, i8* %33
%35 = sext i8 %34 to i32
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %26, i32 %29, i32 %32, i32 %35)
%37 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %37)
%39 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
store i32 1, i32* %39
%40 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 1
store i32 2, i32* %40
%41 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 2
store i32 3, i32* %41
%42 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 3
store i32 4, i32* %42
%43 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
store i8 90, i8* %43
%44 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 1
store i8 101, i8* %44
%45 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 2
store i8 100, i8* %45
%46 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 3
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 ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i32 %48, i32 %50, i32 %52, i32 %54)
%56 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%57 = load i8, i8* %56
%58 = sext i8 %57 to i32
%59 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 1
%60 = load i8, i8* %59
%61 = sext i8 %60 to i32
%62 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 2
%63 = load i8, i8* %62
%64 = sext i8 %63 to i32
%65 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 3
%66 = load i8, i8* %65
%67 = sext i8 %66 to i32
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %58, i32 %61, i32 %64, i32 %67)
%69 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %69)
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8** %9
%71 = load i8*, i8** %9
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* %71)
%73 = load i8*, i8** %9
%74 = getelementptr inbounds i8, i8* %73, i64 0
%75 = load i8, i8* %74
%76 = sext i8 %75 to i32
%77 = load i8*, i8** %9
%78 = getelementptr inbounds i8, i8* %77, i64 1
%79 = load i8, i8* %78
%80 = sext i8 %79 to i32
%81 = load i8*, i8** %9
%82 = getelementptr inbounds i8, i8* %81, i64 2
%83 = load i8, i8* %82
%84 = sext i8 %83 to i32
%85 = load i8*, i8** %9
%86 = getelementptr inbounds i8, i8* %85, i64 3
%87 = load i8, i8* %86
%88 = sext i8 %87 to i32
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i32 %76, i32 %80, i32 %84, i32 %88)
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.8, i64 0, i64 0))
%91 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%92 = ptrtoint i8* %91 to i32
%93 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
store i32 %92, i32* %93
%94 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%95 = load i32, i32* %94
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %95)
%97 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 1
%98 = load i32, i32* %97
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %98)
%100 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 2
%101 = load i32, i32* %100
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i32 %101)
%103 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 3
%104 = load i32, i32* %103
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0), i32 %104)
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.13, i64 0, i64 0))
%107 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%108 = ptrtoint i32* %107 to i8
%109 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
store i8 %108, i8* %109
%110 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%111 = load i8, i8* %110
%112 = sext i8 %111 to i32
%113 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 1
%114 = load i8, i8* %113
%115 = sext i8 %114 to i32
%116 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 2
%117 = load i8, i8* %116
%118 = sext i8 %117 to i32
%119 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 3
%120 = load i8, i8* %119
%121 = sext i8 %120 to i32
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %112, i32 %115, i32 %118, i32 %121)
%123 = bitcast [4 x i8]* %10 to i8*
store i32 3, i32* %11
%124 = bitcast [3 x i32]* %12 to i8*
%125 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 0
%126 = load i32, i32* %125
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i32 %126)
%128 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 1
%129 = load i32, i32* %128
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0), i32 %129)
%131 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.16, i64 0, i64 0))
%132 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%133 = ptrtoint i8* %132 to i32
%134 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 2
store i32 %133, i32* %134
%135 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 2
%136 = load i32, i32* %135
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), i32 %136)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [23 x i8] c"numbers: %d %d %d %d \0A\00"
@.str.2 = [24 x i8] c"name each: %c %c %c %c\0A\00"
@.str.3 = [10 x i8] c"name: %s\0A\00"
@.str.4 = [22 x i8] c"numbers: %d %d %d %d\0A\00"
@.str.5 = [4 x i8] c"Zed\00"
@.str.6 = [13 x i8] c"another: %s\0A\00"
@.str.7 = [27 x i8] c"another each: %c %c %c %c\0A\00"
@.str.9 = [16 x i8] c"numers[0] = %d\0A\00"
@.str.10 = [16 x i8] c"numers[1] = %d\0A\00"
@.str.11 = [16 x i8] c"numers[2] = %d\0A\00"
@.str.12 = [16 x i8] c"numers[3] = %d\0A\00"
@.str.14 = [16 x i8] c"first int = %d\0A\00"
@.str.15 = [17 x i8] c"second int = %d\0A\00"
@.str.17 = [16 x i8] c"third int = %d\0A\00"
@str = [63 x i8] c"Assign characters into numbers and then print 1 char at a time\00"
@str.18 = [57 x i8] c"Assign numbers into name and then print 1 char at a time\00"
@str.19 = [38 x i8] c"\0AAssing char array to number_array[2]\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [4 x i32]
%4 = alloca i32
%5 = bitcast i32* %4 to [4 x i8]*
%6 = alloca i32
%7 = bitcast [4 x i32]* %3 to i8*
%8 = bitcast i32* %4 to i8*
store i32 1633771873, i32* %4
%9 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 0
%10 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 1
%11 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 2
%12 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 3
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 0, i32 0, i32 0)
%14 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 1
%15 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 2
%16 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 3
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 97, i32 97, i32 97, i32 97)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32* %4)
store i32 2, i32* %10
store i32 3, i32* %11
store i32 4, i32* %12
store i8 90, i8* %8
store i8 101, i8* %14
store i8 100, i8* %15
store i8 0, i8* %16
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i32 1, i32 2, i32 3, i32 4)
%20 = load i8, i8* %8
%21 = sext i8 %20 to i32
%22 = load i8, i8* %14
%23 = sext i8 %22 to i32
%24 = load i8, i8* %15
%25 = sext i8 %24 to i32
%26 = load i8, i8* %16
%27 = sext i8 %26 to i32
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %21, i32 %23, i32 %25, i32 %27)
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32* %4)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i32 90, i32 101, i32 100, i32 0)
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str, i64 0, i64 0))
%33 = ptrtoint i32* %4 to i64
%34 = trunc i64 %33 to i32
store i32 %34, i32* %9
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %34)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 2)
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i32 3)
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0), i32 4)
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.18, i64 0, i64 0))
%40 = ptrtoint [4 x i32]* %3 to i64
%41 = trunc i64 %40 to i8
store i8 %41, i8* %8
%42 = sext i8 %41 to i32
%43 = load i8, i8* %14
%44 = sext i8 %43 to i32
%45 = load i8, i8* %15
%46 = sext i8 %45 to i32
%47 = load i8, i8* %16
%48 = sext i8 %47 to i32
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %42, i32 %44, i32 %46, i32 %48)
%50 = bitcast i32* %6 to i8*
store i32 1684234849, i32* %6
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i32 1)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0), i32 2)
%53 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.19, i64 0, i64 0))
%54 = ptrtoint i32* %6 to i64
%55 = trunc i64 %54 to i32
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), i32 %55)
ret i32 0
}