#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'};
  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] = 'S';
  name[1] = 'a';
  name[2] = 'm';
  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 = "Sam";
  printf("another: %s\n", another);
  printf("another each: %c %c %c %c\n", another[0], another[1], another[2],
         another[3]);
  printf("another each with pointers: %c %c %c %c\n", *another, *(another + 1),
         *(another + 2), *(another + 3));
  printf("another with undefined increment order: %c %c %c %c\n", *another,
         *++another, *++another, *++another);
  numbers[0] = 'S';
  numbers[0] = 'a';
  numbers[0] = 'm';
  numbers[0] = 0;
  printf("numbers with chars: %c %c %c %c\n", numbers[0], numbers[1],
         numbers[2], numbers[3]);
  printf("name as ints: %d %d %d %d\n", name[0], name[1], name[2], name[3]);
  printf("name as floats: %f %f %f %f\n", name[0], name[1], name[2], name[3]);
  printf("name as pointer to int: %d\n", *name);
  printf("name as array of one int: %d\n", name[0]);
  printf("name as pointer to float: %f\n", *name);
  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,-0x24(%rbp)
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
lea    0xea1(%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    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x24(%rbp),%rsi
lea    0xe9e(%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   $0x53,-0x24(%rbp)
movb   $0x61,-0x23(%rbp)
movb   $0x6d,-0x22(%rbp)
movb   $0x0,-0x21(%rbp)
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
lea    0xe29(%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    0xe20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x24(%rbp),%rsi
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe22(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rsi
lea    0xe17(%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
lea    0xdf6(%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
lea    0xde3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rax
movsbl (%rax),%esi
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
movsbl 0x1(%rax),%edx
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
movsbl 0x1(%rax),%ecx
mov    -0x30(%rbp),%rax
mov    %rax,%rdi
add    $0x1,%rdi
mov    %rdi,-0x30(%rbp)
movsbl 0x1(%rax),%r8d
lea    0xdbd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x53,-0x20(%rbp)
movl   $0x61,-0x20(%rbp)
movl   $0x6d,-0x20(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
lea    0xdbb(%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    0xdbd(%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    0xdb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x24(%rbp),%esi
lea    0xdc4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x24(%rbp),%esi
lea    0xdce(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x24(%rbp),%esi
lea    0xdda(%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
movl   $0x61,0x4(%rsp)
lea    0xed9(%rip),%r15
mov    %r15,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed5(%rip),%r14
mov    %r14,%rdi
mov    $0x61,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed0(%rip),%rbx
lea    0x4(%rsp),%r12
mov    %rbx,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
movl   $0x6d6153,0x4(%rsp)
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x4,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
movsbl 0x4(%rsp),%esi
movsbl 0x5(%rsp),%edx
movsbl 0x6(%rsp),%ecx
movsbl 0x7(%rsp),%r8d
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe72(%rip),%rdi
lea    0xe67(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe6a(%rip),%rdi
mov    $0x53,%esi
mov    $0x61,%edx
mov    $0x6d,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe65(%rip),%rdi
mov    $0x53,%esi
mov    $0x61,%edx
mov    $0x6d,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe6e(%rip),%rdi
mov    $0x53,%esi
mov    $0x61,%edx
mov    $0x6d,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe83(%rip),%rdi
xor    %esi,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x4,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
movsbl 0x4(%rsp),%esi
movsbl 0x5(%rsp),%edx
movsbl 0x6(%rsp),%ecx
movsbl 0x7(%rsp),%r8d
lea    0xe6f(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movsbl 0x4(%rsp),%esi
movsbl 0x5(%rsp),%edx
movsbl 0x6(%rsp),%ecx
movsbl 0x7(%rsp),%r8d
lea    0xe67(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movsbl 0x4(%rsp),%esi
lea    0xe71(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movsbl 0x4(%rsp),%esi
lea    0xe7a(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movsbl 0x4(%rsp),%esi
lea    0xe85(%rip),%rdi
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 = [4 x i8] c"a\00\00\00"
@.str = [22 x i8] c"numbers: %d %d %d %d\0A\00"
@.str.1 = [24 x i8] c"name each: %c %c %c %c\0A\00"
@.str.2 = [10 x i8] c"name: %s\0A\00"
@.str.3 = [4 x i8] c"Sam\00"
@.str.4 = [13 x i8] c"another: %s\0A\00"
@.str.5 = [27 x i8] c"another each: %c %c %c %c\0A\00"
@.str.6 = [41 x i8] c"another each with pointers: %c %c %c %c\0A\00"
@.str.7 = [53 x i8] c"another with undefined increment order: %c %c %c %c\0A\00"
@.str.8 = [33 x i8] c"numbers with chars: %c %c %c %c\0A\00"
@.str.9 = [27 x i8] c"name as ints: %d %d %d %d\0A\00"
@.str.10 = [29 x i8] c"name as floats: %f %f %f %f\0A\00"
@.str.11 = [28 x i8] c"name as pointer to int: %d\0A\00"
@.str.12 = [30 x i8] c"name as array of one int: %d\0A\00"
@.str.13 = [30 x i8] c"name as pointer to float: %f\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*
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 [4 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 ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %12, i32 %14, i32 %16, i32 %18)
%20 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%21 = load i8, i8* %20
%22 = sext i8 %21 to i32
%23 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 1
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 2
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
%29 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 3
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %22, i32 %25, i32 %28, i32 %31)
%33 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %33)
%35 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
store i32 1, i32* %35
%36 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 1
store i32 2, i32* %36
%37 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 2
store i32 3, i32* %37
%38 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 3
store i32 4, i32* %38
%39 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
store i8 83, i8* %39
%40 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 1
store i8 97, i8* %40
%41 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 2
store i8 109, i8* %41
%42 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 3
store i8 0, i8* %42
%43 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%44 = load i32, i32* %43
%45 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 1
%46 = load i32, i32* %45
%47 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 2
%48 = load i32, i32* %47
%49 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 3
%50 = load i32, i32* %49
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %44, i32 %46, i32 %48, i32 %50)
%52 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%53 = load i8, i8* %52
%54 = sext i8 %53 to i32
%55 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 1
%56 = load i8, i8* %55
%57 = sext i8 %56 to i32
%58 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 2
%59 = load i8, i8* %58
%60 = sext i8 %59 to i32
%61 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 3
%62 = load i8, i8* %61
%63 = sext i8 %62 to i32
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %54, i32 %57, i32 %60, i32 %63)
%65 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %65)
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8** %8
%67 = load i8*, i8** %8
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* %67)
%69 = load i8*, i8** %8
%70 = getelementptr inbounds i8, i8* %69, i64 0
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = load i8*, i8** %8
%74 = getelementptr inbounds i8, i8* %73, i64 1
%75 = load i8, i8* %74
%76 = sext i8 %75 to i32
%77 = load i8*, i8** %8
%78 = getelementptr inbounds i8, i8* %77, i64 2
%79 = load i8, i8* %78
%80 = sext i8 %79 to i32
%81 = load i8*, i8** %8
%82 = getelementptr inbounds i8, i8* %81, i64 3
%83 = load i8, i8* %82
%84 = sext i8 %83 to i32
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i32 %72, i32 %76, i32 %80, i32 %84)
%86 = load i8*, i8** %8
%87 = load i8, i8* %86
%88 = sext i8 %87 to i32
%89 = load i8*, i8** %8
%90 = getelementptr inbounds i8, i8* %89, i64 1
%91 = load i8, i8* %90
%92 = sext i8 %91 to i32
%93 = load i8*, i8** %8
%94 = getelementptr inbounds i8, i8* %93, i64 2
%95 = load i8, i8* %94
%96 = sext i8 %95 to i32
%97 = load i8*, i8** %8
%98 = getelementptr inbounds i8, i8* %97, i64 3
%99 = load i8, i8* %98
%100 = sext i8 %99 to i32
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0), i32 %88, i32 %92, i32 %96, i32 %100)
%102 = load i8*, i8** %8
%103 = load i8, i8* %102
%104 = sext i8 %103 to i32
%105 = load i8*, i8** %8
%106 = getelementptr inbounds i8, i8* %105, i32 1
store i8* %106, i8** %8
%107 = load i8, i8* %106
%108 = sext i8 %107 to i32
%109 = load i8*, i8** %8
%110 = getelementptr inbounds i8, i8* %109, i32 1
store i8* %110, i8** %8
%111 = load i8, i8* %110
%112 = sext i8 %111 to i32
%113 = load i8*, i8** %8
%114 = getelementptr inbounds i8, i8* %113, i32 1
store i8* %114, i8** %8
%115 = load i8, i8* %114
%116 = sext i8 %115 to i32
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.7, i64 0, i64 0), i32 %104, i32 %108, i32 %112, i32 %116)
%118 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
store i32 83, i32* %118
%119 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
store i32 97, i32* %119
%120 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
store i32 109, i32* %120
%121 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
store i32 0, i32* %121
%122 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%123 = load i32, i32* %122
%124 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 1
%125 = load i32, i32* %124
%126 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 2
%127 = load i32, i32* %126
%128 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 3
%129 = load i32, i32* %128
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0), i32 %123, i32 %125, i32 %127, i32 %129)
%131 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%132 = load i8, i8* %131
%133 = sext i8 %132 to i32
%134 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 1
%135 = load i8, i8* %134
%136 = sext i8 %135 to i32
%137 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 2
%138 = load i8, i8* %137
%139 = sext i8 %138 to i32
%140 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 3
%141 = load i8, i8* %140
%142 = sext i8 %141 to i32
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i32 %133, i32 %136, i32 %139, i32 %142)
%144 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%145 = load i8, i8* %144
%146 = sext i8 %145 to i32
%147 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 1
%148 = load i8, i8* %147
%149 = sext i8 %148 to i32
%150 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 2
%151 = load i8, i8* %150
%152 = sext i8 %151 to i32
%153 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 3
%154 = load i8, i8* %153
%155 = sext i8 %154 to i32
%156 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0), i32 %146, i32 %149, i32 %152, i32 %155)
%157 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%158 = load i8, i8* %157
%159 = sext i8 %158 to i32
%160 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0), i32 %159)
%161 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%162 = load i8, i8* %161
%163 = sext i8 %162 to i32
%164 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0), i32 %163)
%165 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%166 = load i8, i8* %165
%167 = sext i8 %166 to i32
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.13, i64 0, i64 0), i32 %167)
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"numbers: %d %d %d %d\0A\00"
@.str.1 = [24 x i8] c"name each: %c %c %c %c\0A\00"
@.str.2 = [10 x i8] c"name: %s\0A\00"
@.str.3 = [4 x i8] c"Sam\00"
@.str.4 = [13 x i8] c"another: %s\0A\00"
@.str.5 = [27 x i8] c"another each: %c %c %c %c\0A\00"
@.str.6 = [41 x i8] c"another each with pointers: %c %c %c %c\0A\00"
@.str.7 = [53 x i8] c"another with undefined increment order: %c %c %c %c\0A\00"
@.str.8 = [33 x i8] c"numbers with chars: %c %c %c %c\0A\00"
@.str.9 = [27 x i8] c"name as ints: %d %d %d %d\0A\00"
@.str.10 = [29 x i8] c"name as floats: %f %f %f %f\0A\00"
@.str.11 = [28 x i8] c"name as pointer to int: %d\0A\00"
@.str.12 = [30 x i8] c"name as array of one int: %d\0A\00"
@.str.13 = [30 x i8] c"name as pointer to float: %f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to [4 x i8]*
%5 = bitcast i32* %3 to i8*
store i32 97, i32* %3
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 0, i32 0, i32 0, i32 0)
%7 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 1
%8 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 2
%9 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 3
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 97, i32 0, i32 0, i32 0)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32* %3)
store i8 83, i8* %5
store i8 97, i8* %7
store i8 109, i8* %8
store i8 0, i8* %9
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 1, i32 2, i32 3, i32 4)
%13 = load i8, i8* %5
%14 = sext i8 %13 to i32
%15 = load i8, i8* %7
%16 = sext i8 %15 to i32
%17 = load i8, i8* %8
%18 = sext i8 %17 to i32
%19 = load i8, i8* %9
%20 = sext i8 %19 to i32
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %14, i32 %16, i32 %18, i32 %20)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i32 83, i32 97, i32 109, i32 0)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0), i32 83, i32 97, i32 109, i32 0)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.7, i64 0, i64 0), i32 83, i32 97, i32 109, i32 0)
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0), i32 0, i32 2, i32 3, i32 4)
%28 = load i8, i8* %5
%29 = sext i8 %28 to i32
%30 = load i8, i8* %7
%31 = sext i8 %30 to i32
%32 = load i8, i8* %8
%33 = sext i8 %32 to i32
%34 = load i8, i8* %9
%35 = sext i8 %34 to i32
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i32 %29, i32 %31, i32 %33, i32 %35)
%37 = load i8, i8* %5
%38 = sext i8 %37 to i32
%39 = load i8, i8* %7
%40 = sext i8 %39 to i32
%41 = load i8, i8* %8
%42 = sext i8 %41 to i32
%43 = load i8, i8* %9
%44 = sext i8 %43 to i32
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0), i32 %38, i32 %40, i32 %42, i32 %44)
%46 = load i8, i8* %5
%47 = sext i8 %46 to i32
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0), i32 %47)
%49 = load i8, i8* %5
%50 = sext i8 %49 to i32
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0), i32 %50)
%52 = load i8, i8* %5
%53 = sext i8 %52 to i32
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.13, i64 0, i64 0), i32 %53)
ret i32 0
}