#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*/ fputws(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ wprintf(char *, ...);
int main(int argc, char *argv[]) {
  fputws(L"Hello world!\n", stdout);
  wprintf(L"This %s a %ls string: %d\n", "is", L"mixed", 42);
  wprintf(L"%Iu\n", 0xfeedbeef);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2ea3(%rip),%rax
mov    (%rax),%esi
lea    0xeba(%rip),%rdi
call   1030 <fputws@plt>
lea    0xee6(%rip),%rdi
lea    0xf73(%rip),%rsi
lea    0xf40(%rip),%rdx
mov    $0x2a,%ecx
mov    $0x0,%al
call   1040 <wprintf@plt>
lea    0xf45(%rip),%rdi
mov    $0xfeedbeef,%esi
mov    $0x0,%al
call   1040 <wprintf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
call   1030 <fputws@plt>
lea    0xefb(%rip),%rdi
lea    0xf88(%rip),%rsi
lea    0xf55(%rip),%rdx
mov    $0x2a,%ecx
xor    %eax,%eax
call   1040 <wprintf@plt>
lea    0xf5a(%rip),%rdi
mov    $0xfeedbeef,%esi
xor    %eax,%eax
call   1040 <wprintf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [14 x i32] [i32 72, i32 101, i32 108, i32 108, i32 111, i32 32, i32 119, i32 111, i32 114, i32 108, i32 100, i32 33, i32 10, i32 0]
@stdout = global i32 0
@.str.1 = [26 x i32] [i32 84, i32 104, i32 105, i32 115, i32 32, i32 37, i32 115, i32 32, i32 97, i32 32, i32 37, i32 108, i32 115, i32 32, i32 115, i32 116, i32 114, i32 105, i32 110, i32 103, i32 58, i32 32, i32 37, i32 100, i32 10, i32 0]
@.str.2 = [3 x i8] c"is\00"
@.str.3 = [6 x i32] [i32 109, i32 105, i32 120, i32 101, i32 100, i32 0]
@.str.4 = [5 x i32] [i32 37, i32 73, i32 117, i32 10, i32 0]
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* @stdout
%7 = call i32 @fputws(i8* bitcast ([14 x i32]* @.str to i8*), i32 %6)
%8 = call i32 (i8*, ...) @wprintf(i8* bitcast ([26 x i32]* @.str.1 to i8*), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* getelementptr inbounds ([6 x i32], [6 x i32]* @.str.3, i64 0, i64 0), i32 42)
%9 = call i32 (i8*, ...) @wprintf(i8* bitcast ([5 x i32]* @.str.4 to i8*), i32 -17973521)
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i32] [i32 72, i32 101, i32 108, i32 108, i32 111, i32 32, i32 119, i32 111, i32 114, i32 108, i32 100, i32 33, i32 10, i32 0]
@stdout = global i32 0
@.str.1 = [26 x i32] [i32 84, i32 104, i32 105, i32 115, i32 32, i32 37, i32 115, i32 32, i32 97, i32 32, i32 37, i32 108, i32 115, i32 32, i32 115, i32 116, i32 114, i32 105, i32 110, i32 103, i32 58, i32 32, i32 37, i32 100, i32 10, i32 0]
@.str.2 = [3 x i8] c"is\00"
@.str.3 = [6 x i32] [i32 109, i32 105, i32 120, i32 101, i32 100, i32 0]
@.str.4 = [5 x i32] [i32 37, i32 73, i32 117, i32 10, i32 0]
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = load i32, i32* @stdout
%4 = tail call i32 @fputws(i8* bitcast ([14 x i32]* @.str to i8*), i32 %3)
%5 = tail call i32 (i8*, ...) @wprintf(i8* bitcast ([26 x i32]* @.str.1 to i8*), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* getelementptr inbounds ([6 x i32], [6 x i32]* @.str.3, i64 0, i64 0), i32 42)
%6 = tail call i32 (i8*, ...) @wprintf(i8* bitcast ([5 x i32]* @.str.4 to i8*), i32 -17973521)
ret i32 0
}