#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*/ print(char *);
void print_chars(void) {
  char array[] = "@\n";
  print(array);
  array[0] = L'a';
  print(array);
  array[0] = '\41';
  print(array);
  array[0] = '\x4f';
  print(array);
  array[0] = '\0';
  print(array);
  array[0] = '\43';
  print(array);
  array[0] = '\100';
  print(array);
  array[0] = L'\043';
  print(array);
  array[0] = 'ab';
  array[0] = '\\a';
}


x86 assembly (clang, -O0):
<print_chars>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0xee1(%rip),%ax
mov    %ax,-0x3(%rbp)
mov    0xed9(%rip),%al
mov    %al,-0x1(%rbp)
lea    -0x3(%rbp),%rdi
call   1030 <print@plt>
movb   $0x61,-0x3(%rbp)
lea    -0x3(%rbp),%rdi
call   1030 <print@plt>
movb   $0x21,-0x3(%rbp)
lea    -0x3(%rbp),%rdi
call   1030 <print@plt>
movb   $0x4f,-0x3(%rbp)
lea    -0x3(%rbp),%rdi
call   1030 <print@plt>
movb   $0x0,-0x3(%rbp)
lea    -0x3(%rbp),%rdi
call   1030 <print@plt>
movb   $0x23,-0x3(%rbp)
lea    -0x3(%rbp),%rdi
call   1030 <print@plt>
movb   $0x40,-0x3(%rbp)
lea    -0x3(%rbp),%rdi
call   1030 <print@plt>
movb   $0x23,-0x3(%rbp)
lea    -0x3(%rbp),%rdi
call   1030 <print@plt>
movb   $0x62,-0x3(%rbp)
movb   $0x61,-0x3(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_chars>:
push   %rbx
sub    $0x10,%rsp
movb   $0x0,0xe(%rsp)
movw   $0xa40,0xc(%rsp)
lea    0xc(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <print@plt>
movb   $0x61,0xc(%rsp)
mov    %rbx,%rdi
call   1030 <print@plt>
movb   $0x21,0xc(%rsp)
mov    %rbx,%rdi
call   1030 <print@plt>
movb   $0x4f,0xc(%rsp)
mov    %rbx,%rdi
call   1030 <print@plt>
movb   $0x0,0xc(%rsp)
mov    %rbx,%rdi
call   1030 <print@plt>
movb   $0x23,0xc(%rsp)
mov    %rbx,%rdi
call   1030 <print@plt>
movb   $0x40,0xc(%rsp)
mov    %rbx,%rdi
call   1030 <print@plt>
movb   $0x23,0xc(%rsp)
mov    %rbx,%rdi
call   1030 <print@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.print_chars.array = [3 x i8] c"@\0A\00"
define void @print_chars() {
%1 = alloca [3 x i8]
%2 = bitcast [3 x i8]* %1 to i8*
%3 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
%4 = call i32 @print(i8* %3)
%5 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
store i8 97, i8* %5
%6 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
%7 = call i32 @print(i8* %6)
%8 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
store i8 33, i8* %8
%9 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
%10 = call i32 @print(i8* %9)
%11 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
store i8 79, i8* %11
%12 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
%13 = call i32 @print(i8* %12)
%14 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
store i8 0, i8* %14
%15 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
%16 = call i32 @print(i8* %15)
%17 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
store i8 35, i8* %17
%18 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
%19 = call i32 @print(i8* %18)
%20 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
store i8 64, i8* %20
%21 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
%22 = call i32 @print(i8* %21)
%23 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
store i8 35, i8* %23
%24 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
%25 = call i32 @print(i8* %24)
%26 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
store i8 98, i8* %26
%27 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
store i8 97, i8* %27
ret void
}

LLVM IR (-O2):
@__const.print_chars.array = [3 x i8] c"@\0A\00"
define void @print_chars() {
%1 = alloca [3 x i8]
%2 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
%3 = call i32 @print(i8* %2)
store i8 97, i8* %2
%4 = call i32 @print(i8* %2)
store i8 33, i8* %2
%5 = call i32 @print(i8* %2)
store i8 79, i8* %2
%6 = call i32 @print(i8* %2)
store i8 0, i8* %2
%7 = call i32 @print(i8* %2)
store i8 35, i8* %2
%8 = call i32 @print(i8* %2)
store i8 64, i8* %2
%9 = call i32 @print(i8* %2)
store i8 35, i8* %2
%10 = call i32 @print(i8* %2)
ret void
}