#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*/ IPC_initialize();
int /*<<< orphan*/ checkIt(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int main(void) {
  IPC_initialize();
  checkIt(NULL, NULL);
  checkIt("", "");
  checkIt(NULL, "");
  checkIt("int", "int");
  checkIt("string", "string");
  checkIt("{int, string, double}", "{int, string, double}");
  checkIt("{[float:2,2], string, int, *!}", "{[float:2,2], string, int, *!}");
  checkIt("[float:2,2]", "[float:2,2]");
  checkIt("*int", "*int");
  checkIt("{int, {enum : 3}, [double:2,3], double}",
          "{int, {enum : 3}, [double:2,3], double}");
  checkIt("{*int, <{int, float}:2>, {enum WaitVal, SendVal, ReceiveVal, "
          "ListenVal}}",
          "{*int, <{int, float}:2>, {enum WaitVal, SendVal, ReceiveVal, "
          "ListenVal}}");
  fprintf(stderr, "\n");
  checkIt("int", "string");
  checkIt("int", "{int, string, double}");
  checkIt("{int, string, double}", "{[float:2,2], string, int, *!}");
  checkIt("{int, string, double}", "[float:2,2]");
  checkIt("*int", "*float");
  checkIt("{int, {enum : 3}, [double:2,3], double}",
          "{int, {enum : 3}, [double:3,2], double}");
  checkIt("{int, {enum : 3}, [double:2,3], double}",
          "{int, {enum : 4}, [double:2,3], double}");
  checkIt("{*int, <{int, float}:2>, {enum WaitVal, SendVal, ReceiveVal, "
          "ListenVal}}",
          "{*int, <{int, float}:2>, {enum WaitVal, SendVal, ReceiveVal}}");
  checkIt("{*int, <{int, float}:2>, {enum WaitVal, SendVal, ReceiveVal, "
          "ListenVal}}",
          "{*int, <{int, float}:2>, {enum WaitVal, SendVal, ReceiveVal, "
          "ListenVal1}}");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1050 <IPC_initialize@plt>
xor    %eax,%eax
mov    %eax,%esi
mov    %rsi,%rdi
call   1030 <checkIt@plt>
lea    0xf66(%rip),%rsi
mov    %rsi,%rdi
call   1030 <checkIt@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xf53(%rip),%rsi
call   1030 <checkIt@plt>
lea    0xed1(%rip),%rsi
mov    %rsi,%rdi
call   1030 <checkIt@plt>
lea    0xe79(%rip),%rsi
mov    %rsi,%rdi
call   1030 <checkIt@plt>
lea    0xe71(%rip),%rsi
mov    %rsi,%rdi
call   1030 <checkIt@plt>
lea    0xe78(%rip),%rsi
mov    %rsi,%rdi
call   1030 <checkIt@plt>
lea    0xe88(%rip),%rsi
mov    %rsi,%rdi
call   1030 <checkIt@plt>
lea    0xe85(%rip),%rsi
mov    %rsi,%rdi
call   1030 <checkIt@plt>
lea    0xe7b(%rip),%rsi
mov    %rsi,%rdi
call   1030 <checkIt@plt>
lea    0xe94(%rip),%rsi
mov    %rsi,%rdi
call   1030 <checkIt@plt>
mov    0x2df0(%rip),%rax
mov    (%rax),%edi
lea    0xec5(%rip),%rsi
call   1040 <fprintf@plt>
lea    0xe44(%rip),%rdi
lea    0xdf4(%rip),%rsi
call   1030 <checkIt@plt>
lea    0xe31(%rip),%rdi
lea    0xde8(%rip),%rsi
call   1030 <checkIt@plt>
lea    0xddc(%rip),%rdi
lea    0xdeb(%rip),%rsi
call   1030 <checkIt@plt>
lea    0xdc9(%rip),%rdi
lea    0xdf7(%rip),%rsi
call   1030 <checkIt@plt>
lea    0xdf7(%rip),%rdi
lea    0xe68(%rip),%rsi
call   1030 <checkIt@plt>
lea    0xde9(%rip),%rdi
lea    0xe5c(%rip),%rsi
call   1030 <checkIt@plt>
lea    0xdd6(%rip),%rdi
lea    0xe71(%rip),%rsi
call   1030 <checkIt@plt>
lea    0xdeb(%rip),%rdi
lea    0xe86(%rip),%rsi
call   1030 <checkIt@plt>
lea    0xdd8(%rip),%rdi
lea    0xeb1(%rip),%rsi
call   1030 <checkIt@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %eax,%eax
call   1050 <IPC_initialize@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1030 <checkIt@plt>
lea    0xf6d(%rip),%rbx
mov    %rbx,%rdi
mov    %rbx,%rsi
call   1030 <checkIt@plt>
xor    %edi,%edi
mov    %rbx,%rsi
call   1030 <checkIt@plt>
lea    0xedb(%rip),%r14
mov    %r14,%rdi
mov    %r14,%rsi
call   1030 <checkIt@plt>
lea    0xe80(%rip),%rdi
mov    %rdi,%rsi
call   1030 <checkIt@plt>
lea    0xe78(%rip),%rbx
mov    %rbx,%rdi
mov    %rbx,%rsi
call   1030 <checkIt@plt>
lea    0xe7c(%rip),%rdi
mov    %rdi,%rsi
call   1030 <checkIt@plt>
lea    0xe8c(%rip),%r13
mov    %r13,%rdi
mov    %r13,%rsi
call   1030 <checkIt@plt>
lea    0xe86(%rip),%rbp
mov    %rbp,%rdi
mov    %rbp,%rsi
call   1030 <checkIt@plt>
lea    0xe79(%rip),%r12
mov    %r12,%rdi
mov    %r12,%rsi
call   1030 <checkIt@plt>
lea    0xe8f(%rip),%r15
mov    %r15,%rdi
mov    %r15,%rsi
call   1030 <checkIt@plt>
mov    0x2de8(%rip),%rax
mov    (%rax),%edi
lea    0xebd(%rip),%rsi
call   1040 <fprintf@plt>
mov    %r14,%rdi
lea    0xdf0(%rip),%rsi
call   1030 <checkIt@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <checkIt@plt>
mov    %rbx,%rdi
lea    0xdf3(%rip),%rsi
call   1030 <checkIt@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1030 <checkIt@plt>
lea    0xe7f(%rip),%rsi
mov    %rbp,%rdi
call   1030 <checkIt@plt>
lea    0xe77(%rip),%rsi
mov    %r12,%rdi
call   1030 <checkIt@plt>
lea    0xe90(%rip),%rsi
mov    %r12,%rdi
call   1030 <checkIt@plt>
lea    0xea9(%rip),%rsi
mov    %r15,%rdi
call   1030 <checkIt@plt>
lea    0xed8(%rip),%rsi
mov    %r15,%rdi
call   1030 <checkIt@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [4 x i8] c"int\00"
@.str.2 = [7 x i8] c"string\00"
@.str.3 = [22 x i8] c"{int, string, double}\00"
@.str.4 = [31 x i8] c"{[float:2,2], string, int, *!}\00"
@.str.5 = [12 x i8] c"[float:2,2]\00"
@.str.6 = [5 x i8] c"*int\00"
@.str.7 = [40 x i8] c"{int, {enum : 3}, [double:2,3], double}\00"
@.str.8 = [73 x i8] c"{*int, <{int, float}:2>, {enum WaitVal, SendVal, ReceiveVal, ListenVal}}\00"
@stderr = global i32 0
@.str.9 = [2 x i8] c"\0A\00"
@.str.10 = [7 x i8] c"*float\00"
@.str.11 = [40 x i8] c"{int, {enum : 3}, [double:3,2], double}\00"
@.str.12 = [40 x i8] c"{int, {enum : 4}, [double:2,3], double}\00"
@.str.13 = [62 x i8] c"{*int, <{int, float}:2>, {enum WaitVal, SendVal, ReceiveVal}}\00"
@.str.14 = [74 x i8] c"{*int, <{int, float}:2>, {enum WaitVal, SendVal, ReceiveVal, ListenVal1}}\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @IPC_initialize()
%3 = call i32 @checkIt(i8* null, i8* null)
%4 = call i32 @checkIt(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @checkIt(i8* null, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @checkIt(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @checkIt(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @checkIt(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @checkIt(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 @checkIt(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 @checkIt(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%12 = call i32 @checkIt(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0))
%13 = call i32 @checkIt(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.8, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%16 = call i32 @checkIt(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%17 = call i32 @checkIt(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%18 = call i32 @checkIt(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
%19 = call i32 @checkIt(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%20 = call i32 @checkIt(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%21 = call i32 @checkIt(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.11, i64 0, i64 0))
%22 = call i32 @checkIt(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.12, i64 0, i64 0))
%23 = call i32 @checkIt(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.13, i64 0, i64 0))
%24 = call i32 @checkIt(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.14, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [4 x i8] c"int\00"
@.str.2 = [7 x i8] c"string\00"
@.str.3 = [22 x i8] c"{int, string, double}\00"
@.str.4 = [31 x i8] c"{[float:2,2], string, int, *!}\00"
@.str.5 = [12 x i8] c"[float:2,2]\00"
@.str.6 = [5 x i8] c"*int\00"
@.str.7 = [40 x i8] c"{int, {enum : 3}, [double:2,3], double}\00"
@.str.8 = [73 x i8] c"{*int, <{int, float}:2>, {enum WaitVal, SendVal, ReceiveVal, ListenVal}}\00"
@stderr = global i32 0
@.str.9 = [2 x i8] c"\0A\00"
@.str.10 = [7 x i8] c"*float\00"
@.str.11 = [40 x i8] c"{int, {enum : 3}, [double:3,2], double}\00"
@.str.12 = [40 x i8] c"{int, {enum : 4}, [double:2,3], double}\00"
@.str.13 = [62 x i8] c"{*int, <{int, float}:2>, {enum WaitVal, SendVal, ReceiveVal}}\00"
@.str.14 = [74 x i8] c"{*int, <{int, float}:2>, {enum WaitVal, SendVal, ReceiveVal, ListenVal1}}\00"
define i32 @main() {
%1 = tail call i32 (...) @IPC_initialize()
%2 = tail call i32 @checkIt(i8* null, i8* null)
%3 = tail call i32 @checkIt(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @checkIt(i8* null, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @checkIt(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @checkIt(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @checkIt(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 @checkIt(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
%9 = tail call i32 @checkIt(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%10 = tail call i32 @checkIt(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%11 = tail call i32 @checkIt(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0))
%12 = tail call i32 @checkIt(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.8, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%15 = tail call i32 @checkIt(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%16 = tail call i32 @checkIt(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%17 = tail call i32 @checkIt(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
%18 = tail call i32 @checkIt(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%19 = tail call i32 @checkIt(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%20 = tail call i32 @checkIt(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.11, i64 0, i64 0))
%21 = tail call i32 @checkIt(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.12, i64 0, i64 0))
%22 = tail call i32 @checkIt(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.13, i64 0, i64 0))
%23 = tail call i32 @checkIt(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.14, i64 0, i64 0))
ret i32 0
}