#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 */
char *_(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int main(void) {
  puts(_("TEST: A C test string"));
  printf(_("TEST: A C test string %s"), "variable");
  printf(_("TEST: Hello World!"));
  printf(_("TEST: Old English Runes"));
  printf(_("TEST: ‘single’ and “double” quotes"));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1050 <_@plt>
mov    %rax,%rdi
call   1030 <puts@plt>
lea    0xec7(%rip),%rdi
call   1050 <_@plt>
mov    %rax,%rdi
lea    0xed1(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xecc(%rip),%rdi
call   1050 <_@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec9(%rip),%rdi
call   1050 <_@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xecb(%rip),%rdi
call   1050 <_@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1050 <_@plt>
mov    %rax,%rdi
call   1030 <puts@plt>
lea    0xeca(%rip),%rdi
call   1050 <_@plt>
lea    0xed7(%rip),%rsi
mov    %rax,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecf(%rip),%rdi
call   1050 <_@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecc(%rip),%rdi
call   1050 <_@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xece(%rip),%rdi
call   1050 <_@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [22 x i8] c"TEST: A C test string\00"
@.str.1 = [25 x i8] c"TEST: A C test string %s\00"
@.str.2 = [9 x i8] c"variable\00"
@.str.3 = [19 x i8] c"TEST: Hello World!\00"
@.str.4 = [24 x i8] c"TEST: Old English Runes\00"
@.str.5 = [43 x i8] c"TEST: \E2\80\98single\E2\80\99 and \E2\80\9Cdouble\E2\80\9D quotes\00"
define i32 @main() {
%1 = call i8* @_(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* %1)
%3 = call i8* @_(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* %3, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%5 = call i8* @_(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* %5)
%7 = call i8* @_(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* %7)
%9 = call i8* @_(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* %9)
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"TEST: A C test string\00"
@.str.1 = [25 x i8] c"TEST: A C test string %s\00"
@.str.2 = [9 x i8] c"variable\00"
@.str.3 = [19 x i8] c"TEST: Hello World!\00"
@.str.4 = [24 x i8] c"TEST: Old English Runes\00"
@.str.5 = [43 x i8] c"TEST: \E2\80\98single\E2\80\99 and \E2\80\9Cdouble\E2\80\9D quotes\00"
define i32 @main() {
%1 = tail call i8* @_(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) %1)
%3 = tail call i8* @_(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %3, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i8* @_(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %5)
%7 = tail call i8* @_(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %7)
%9 = tail call i8* @_(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %9)
ret i32 0
}