#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*/ test(char *, char *);
void TEST_cpp_sharp(void) {
  test("\"abc\"", "#define STR(x) #x\n"
                  "STR(abc)");
  test("1, \"abc\"", "#define STR(x, y) x, #y\n"
                     "STR(1, abc)");
  test("\"123\"", "#define STR(x) #x\n"
                  "STR(123)");
  test("\"123 abc\"", "#define STR(x) #x\n"
                      "STR(123 abc)");
  test("\"'0' '\\\\xfe'\"", "#define STR(x) #x\n"
                            "STR('0' '\\xfe')");
  test("\"\\\"a\\\\\\\"b\\\"\"", "#define STR(x) #x\n"
                                 "STR(\"a\\\"b\")");
  test("\"()\"", "#define C(x) #x\n"
                 "C(())");
  test("4.4", "#define CAT(x, y) x ## y\n"
              "CAT(4, .4)");
}


x86 assembly (clang, -O0):
<TEST_cpp_sharp>:
push   %rbp
mov    %rsp,%rbp
lea    0xf03(%rip),%rdi
lea    0xede(%rip),%rsi
call   1030 <test@plt>
lea    0xeed(%rip),%rdi
lea    0xeef(%rip),%rsi
call   1030 <test@plt>
lea    0xf07(%rip),%rdi
lea    0xf06(%rip),%rsi
call   1030 <test@plt>
lea    0xf15(%rip),%rdi
lea    0xf18(%rip),%rsi
call   1030 <test@plt>
lea    0xf2b(%rip),%rdi
lea    0xf32(%rip),%rsi
call   1030 <test@plt>
lea    0xf48(%rip),%rdi
lea    0xf4e(%rip),%rsi
call   1030 <test@plt>
lea    0xf60(%rip),%rdi
lea    0xf5e(%rip),%rsi
call   1030 <test@plt>
lea    0xf68(%rip),%rdi
lea    0xf65(%rip),%rsi
call   1030 <test@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<TEST_cpp_sharp>:
push   %rax
lea    0xf06(%rip),%rdi
lea    0xee1(%rip),%rsi
call   1030 <test@plt>
lea    0xef0(%rip),%rdi
lea    0xef2(%rip),%rsi
call   1030 <test@plt>
lea    0xf0a(%rip),%rdi
lea    0xf09(%rip),%rsi
call   1030 <test@plt>
lea    0xf18(%rip),%rdi
lea    0xf1b(%rip),%rsi
call   1030 <test@plt>
lea    0xf2e(%rip),%rdi
lea    0xf35(%rip),%rsi
call   1030 <test@plt>
lea    0xf4b(%rip),%rdi
lea    0xf51(%rip),%rsi
call   1030 <test@plt>
lea    0xf63(%rip),%rdi
lea    0xf61(%rip),%rsi
call   1030 <test@plt>
lea    0xf6b(%rip),%rdi
lea    0xf68(%rip),%rsi
pop    %rax
jmp    1030 <test@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"\22abc\22\00"
@.str.1 = [27 x i8] c"#define STR(x) #x\0ASTR(abc)\00"
@.str.2 = [9 x i8] c"1, \22abc\22\00"
@.str.3 = [36 x i8] c"#define STR(x, y) x, #y\0ASTR(1, abc)\00"
@.str.4 = [6 x i8] c"\22123\22\00"
@.str.5 = [27 x i8] c"#define STR(x) #x\0ASTR(123)\00"
@.str.6 = [10 x i8] c"\22123 abc\22\00"
@.str.7 = [31 x i8] c"#define STR(x) #x\0ASTR(123 abc)\00"
@.str.8 = [14 x i8] c"\22'0' '\\\\xfe'\22\00"
@.str.9 = [34 x i8] c"#define STR(x) #x\0ASTR('0' '\\xfe')\00"
@.str.10 = [13 x i8] c"\22\\\22a\\\\\\\22b\\\22\22\00"
@.str.11 = [30 x i8] c"#define STR(x) #x\0ASTR(\22a\\\22b\22)\00"
@.str.12 = [5 x i8] c"\22()\22\00"
@.str.13 = [22 x i8] c"#define C(x) #x\0AC(())\00"
@.str.14 = [4 x i8] c"4.4\00"
@.str.15 = [36 x i8] c"#define CAT(x, y) x ## y\0ACAT(4, .4)\00"
define void @TEST_cpp_sharp() {
%1 = call i32 @test(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @test(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 @test(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%4 = call i32 @test(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0))
%5 = call i32 @test(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0))
%6 = call i32 @test(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0))
%7 = call i32 @test(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0))
%8 = call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.15, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"\22abc\22\00"
@.str.1 = [27 x i8] c"#define STR(x) #x\0ASTR(abc)\00"
@.str.2 = [9 x i8] c"1, \22abc\22\00"
@.str.3 = [36 x i8] c"#define STR(x, y) x, #y\0ASTR(1, abc)\00"
@.str.4 = [6 x i8] c"\22123\22\00"
@.str.5 = [27 x i8] c"#define STR(x) #x\0ASTR(123)\00"
@.str.6 = [10 x i8] c"\22123 abc\22\00"
@.str.7 = [31 x i8] c"#define STR(x) #x\0ASTR(123 abc)\00"
@.str.8 = [14 x i8] c"\22'0' '\\\\xfe'\22\00"
@.str.9 = [34 x i8] c"#define STR(x) #x\0ASTR('0' '\\xfe')\00"
@.str.10 = [13 x i8] c"\22\\\22a\\\\\\\22b\\\22\22\00"
@.str.11 = [30 x i8] c"#define STR(x) #x\0ASTR(\22a\\\22b\22)\00"
@.str.12 = [5 x i8] c"\22()\22\00"
@.str.13 = [22 x i8] c"#define C(x) #x\0AC(())\00"
@.str.14 = [4 x i8] c"4.4\00"
@.str.15 = [36 x i8] c"#define CAT(x, y) x ## y\0ACAT(4, .4)\00"
define void @TEST_cpp_sharp() {
%1 = tail call i32 @test(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @test(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @test(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%4 = tail call i32 @test(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0))
%5 = tail call i32 @test(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0))
%6 = tail call i32 @test(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0))
%7 = tail call i32 @test(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0))
%8 = tail call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.15, i64 0, i64 0))
ret void
}