#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 wchar_t;

/* Variables and functions */
int /*<<< orphan*/ do_nothing(int *);
int main(void) {
  wchar_t narrow = 97;
  wchar_t single = 0xbeef;
  wchar_t simple[] = L"facile";
  wchar_t difficile[] = {0xdead, 0xbeef, 0xfeed, 0xface};
  wchar_t mixed[] = {L'f', 0xdead, L'a', L'c', 0xfeed, 0xface};
  do_nothing(&narrow);
  do_nothing(&single);
  do_nothing(simple);
  do_nothing(difficile);
  do_nothing(mixed);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x61,-0x4(%rbp)
movl   $0xbeef,-0x8(%rbp)
mov    0xed3(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xed0(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xecd(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xecb(%rip),%eax
mov    %eax,-0x18(%rbp)
mov    0xec9(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xec6(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xec3(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xec0(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xebd(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    -0x4(%rbp),%rdi
call   1030 <do_nothing@plt>
lea    -0x8(%rbp),%rdi
call   1030 <do_nothing@plt>
lea    -0x30(%rbp),%rdi
call   1030 <do_nothing@plt>
lea    -0x40(%rbp),%rdi
call   1030 <do_nothing@plt>
lea    -0x60(%rbp),%rdi
call   1030 <do_nothing@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x68,%rsp
movl   $0x61,0xc(%rsp)
movl   $0xbeef,0x8(%rsp)
movups 0xee1(%rip),%xmm0
movups %xmm0,0x4c(%rsp)
movaps 0xec9(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xedd(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
mov    0xef1(%rip),%rax
mov    %rax,0x20(%rsp)
movaps 0xed5(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
lea    0xc(%rsp),%rdi
call   1030 <do_nothing@plt>
lea    0x8(%rsp),%rdi
call   1030 <do_nothing@plt>
lea    0x40(%rsp),%rdi
call   1030 <do_nothing@plt>
lea    0x30(%rsp),%rdi
call   1030 <do_nothing@plt>
lea    0x10(%rsp),%rdi
call   1030 <do_nothing@plt>
xor    %eax,%eax
add    $0x68,%rsp
ret

LLVM IR (-O0):
@__const.main.simple = [7 x i32] [i32 102, i32 97, i32 99, i32 105, i32 108, i32 101, i32 0]
@__const.main.difficile = [4 x i32] [i32 57005, i32 48879, i32 65261, i32 64206]
@__const.main.mixed = [6 x i32] [i32 102, i32 57005, i32 97, i32 99, i32 65261, i32 64206]
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [7 x i32]
%4 = alloca [4 x i32]
%5 = alloca [6 x i32]
store i32 97, i32* %1
store i32 48879, i32* %2
%6 = bitcast [7 x i32]* %3 to i8*
%7 = bitcast [4 x i32]* %4 to i8*
%8 = bitcast [6 x i32]* %5 to i8*
%9 = call i32 @do_nothing(i32* %1)
%10 = call i32 @do_nothing(i32* %2)
%11 = getelementptr inbounds [7 x i32], [7 x i32]* %3, i64 0, i64 0
%12 = call i32 @do_nothing(i32* %11)
%13 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 0
%14 = call i32 @do_nothing(i32* %13)
%15 = getelementptr inbounds [6 x i32], [6 x i32]* %5, i64 0, i64 0
%16 = call i32 @do_nothing(i32* %15)
ret i32 0
}

LLVM IR (-O2):
@__const.main.simple = [7 x i32] [i32 102, i32 97, i32 99, i32 105, i32 108, i32 101, i32 0]
@__const.main.difficile = [4 x i32] [i32 57005, i32 48879, i32 65261, i32 64206]
@__const.main.mixed = [6 x i32] [i32 102, i32 57005, i32 97, i32 99, i32 65261, i32 64206]
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [7 x i32]
%4 = alloca [4 x i32]
%5 = alloca [6 x i32]
%6 = bitcast i32* %1 to i8*
store i32 97, i32* %1
%7 = bitcast i32* %2 to i8*
store i32 48879, i32* %2
%8 = bitcast [7 x i32]* %3 to i8*
%9 = bitcast [4 x i32]* %4 to i8*
%10 = bitcast [6 x i32]* %5 to i8*
%11 = call i32 @do_nothing(i32* %1)
%12 = call i32 @do_nothing(i32* %2)
%13 = getelementptr inbounds [7 x i32], [7 x i32]* %3, i64 0, i64 0
%14 = call i32 @do_nothing(i32* %13)
%15 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 0
%16 = call i32 @do_nothing(i32* %15)
%17 = getelementptr inbounds [6 x i32], [6 x i32]* %5, i64 0, i64 0
%18 = call i32 @do_nothing(i32* %17)
ret i32 0
}