#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*/ printf(char *);
void prolog() {
  printf("#ifdef _MSC_VER\n");
  printf("\n");
  printf("#pragma warning( disable:4996 )\n");
  printf("\n");
  printf("#ifndef __cplusplus\n");
  printf("#define inline __inline\n");
  printf("#endif\n");
  printf("\n");
  printf("#define WIN32_LEAN_AND_MEAN\n");
  printf("\n");
  printf("#include <windows.h>\n");
  printf("#include <stdlib.h>\n");
  printf("#include <stdio.h>\n");
  printf("#include <errno.h>\n");
  printf("\n");
  printf("//  WINDOW pthreads \"LIBRARY\"\n");
  printf("\n");
  printf("  //  Mutex macros\n");
  printf("\n");
  printf("typedef SRWLOCK pthread_mutex_t;\n");
  printf("\n");
  printf("#define PTHREAD_MUTEX_INITIALIZER RTL_SRWLOCK_INIT\n");
  printf("\n");
  printf("#define pthread_mutex_lock(m)  AcquireSRWLockExclusive(m)\n");
  printf("\n");
  printf("#define pthread_mutex_unlock(m) ReleaseSRWLockExclusive(m)\n");
  printf("\n");
  printf("  //  Condition variable macros\n");
  printf("\n");
  printf("typedef CONDITION_VARIABLE pthread_cond_t;\n");
  printf("\n");
  printf("#define PTHREAD_COND_INITIALIZER RTL_CONDITION_VARIABLE_INIT\n");
  printf("\n");
  printf("#define pthread_cond_signal(c) WakeConditionVariable(c)\n");
  printf("\n");
  printf("#define pthread_cond_broadcast(c) WakeAllConditionVariable(c)\n");
  printf("\n");
  printf("#define pthread_cond_wait(c,m) "
         "SleepConditionVariableSRW(c,m,INFINITE,0)\n");
  printf("\n");
  printf("  //  Simple thread support\n");
  printf("\n");
  printf("typedef struct\n");
  printf("  { HANDLE *handle;\n");
  printf("    void   *(*fct)(void *);\n");
  printf("    void   *arg;\n");
  printf("    void   *retval;\n");
  printf("    int     id;\n");
  printf("  } Mythread;\n");
  printf("\n");
  printf("typedef Mythread *pthread_t;\n");
  printf("\n");
  printf("static DWORD WINAPI MyStart(void *arg)\n");
  printf("{ Mythread *tv = (Mythread *) arg;\n");
  printf("\n");
  printf("  tv->retval = tv->fct(tv->arg);\n");
  printf("  return (0);\n");
  printf("}\n");
  printf("\n");
  printf("static int pthread_create(pthread_t *thread, void *attr,\n");
  printf("                          void *(*fct)(void *), void *arg)\n");
  printf("{ Mythread *tv;\n");
  printf("  if (attr != NULL)\n");
  printf("    { fprintf(stderr,\"Do not support thread attributes\\n\");\n");
  printf("      exit (1);\n");
  printf("    }\n");
  printf("  tv = (Mythread *) malloc(sizeof(Mythread));\n");
  printf("  if (tv == NULL)\n");
  printf("    { fprintf(stderr,\"pthread_create: Out of memory.\\n\");\n");
  printf("      exit (1);\n");
  printf("    };\n");
  printf("  tv->fct    = fct;\n");
  printf("  tv->arg    = arg;\n");
  printf("  tv->handle = CreateThread(NULL,0,MyStart,tv,0,&tv->id);\n");
  printf("  if (tv->handle == NULL)\n");
  printf("    return (EAGAIN);\n");
  printf("  else\n");
  printf("    return (0);\n");
  printf("}\n");
  printf("\n");
  printf("static int pthread_join(pthread_t t, void **ret)\n");
  printf("{ Mythread *tv = (Mythread *) t;\n");
  printf("\n");
  printf("  WaitForSingleObject(tv->handle,INFINITE);\n");
  printf("  if (ret != NULL)\n");
  printf("    *ret = tv->retval;\n");
  printf("\n");
  printf("  CloseHandle(tv->handle);\n");
  printf("  free(tv);\n");
  printf("  return (0);\n");
  printf("}\n");
  printf("\n");
  printf("typedef int pthread_id;\n");
  printf("\n");
  printf("static pthread_id pthread_tag()\n");
  printf("{ return (GetCurrentThreadId()); }\n");
  printf("\n");
  printf("static int pthread_is_this(pthread_id id)\n");
  printf("{ return (GetCurrentThreadId() == id); }\n");
  printf("\n");
  printf("#else   //  Small extension to pthreads!\n");
  printf("\n");
  printf("#include <pthread.h>\n");
  printf("\n");
  printf("typedef pthread_t pthread_id;\n");
  printf("\n");
  printf("#define pthread_tag() pthread_self()\n");
  printf("\n");
  printf("static inline int pthread_is_this(pthread_id id)\n");
  printf("{ return (pthread_equal(pthread_self(),id)); }\n");
  printf("\n");
  printf("#endif\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<prolog>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0x1706(%rip),%rdi
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
call   1030 <printf@plt>
lea    0x16ee(%rip),%rdi
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
call   1030 <printf@plt>
lea    0x16be(%rip),%rdi
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
call   1030 <printf@plt>
lea    0x16a6(%rip),%rdi
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
call   1030 <printf@plt>
lea    0x166a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
call   1030 <printf@plt>
lea    0x1652(%rip),%rdi
call   1030 <printf@plt>
lea    0xf10(%rip),%rdi
call   1030 <printf@plt>
lea    0x163a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1622(%rip),%rdi
call   1030 <printf@plt>
lea    0xf16(%rip),%rdi
call   1030 <printf@plt>
lea    0x160a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf32(%rip),%rdi
call   1030 <printf@plt>
lea    0x15f2(%rip),%rdi
call   1030 <printf@plt>
lea    0xf55(%rip),%rdi
call   1030 <printf@plt>
lea    0x15da(%rip),%rdi
call   1030 <printf@plt>
lea    0xf79(%rip),%rdi
call   1030 <printf@plt>
lea    0x15c2(%rip),%rdi
call   1030 <printf@plt>
lea    0xf82(%rip),%rdi
call   1030 <printf@plt>
lea    0x15aa(%rip),%rdi
call   1030 <printf@plt>
lea    0xf96(%rip),%rdi
call   1030 <printf@plt>
lea    0x1592(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbc(%rip),%rdi
call   1030 <printf@plt>
lea    0x157a(%rip),%rdi
call   1030 <printf@plt>
lea    0xfdd(%rip),%rdi
call   1030 <printf@plt>
lea    0x1562(%rip),%rdi
call   1030 <printf@plt>
lea    0x1004(%rip),%rdi
call   1030 <printf@plt>
lea    0x154a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1036(%rip),%rdi
call   1030 <printf@plt>
lea    0x1532(%rip),%rdi
call   1030 <printf@plt>
lea    0x103b(%rip),%rdi
call   1030 <printf@plt>
lea    0x103f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1048(%rip),%rdi
call   1030 <printf@plt>
lea    0x1059(%rip),%rdi
call   1030 <printf@plt>
lea    0x105f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1068(%rip),%rdi
call   1030 <printf@plt>
lea    0x106d(%rip),%rdi
call   1030 <printf@plt>
lea    0x14d2(%rip),%rdi
call   1030 <printf@plt>
lea    0x1064(%rip),%rdi
call   1030 <printf@plt>
lea    0x14ba(%rip),%rdi
call   1030 <printf@plt>
lea    0x106a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1086(%rip),%rdi
call   1030 <printf@plt>
lea    0x1496(%rip),%rdi
call   1030 <printf@plt>
lea    0x1092(%rip),%rdi
call   1030 <printf@plt>
lea    0x12be(%rip),%rdi
call   1030 <printf@plt>
lea    0x118a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1466(%rip),%rdi
call   1030 <printf@plt>
lea    0x1084(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b2(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e2(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e7(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f0(%rip),%rdi
call   1030 <printf@plt>
lea    0x1121(%rip),%rdi
call   1030 <printf@plt>
lea    0x1126(%rip),%rdi
call   1030 <printf@plt>
lea    0x1121(%rip),%rdi
call   1030 <printf@plt>
lea    0x1144(%rip),%rdi
call   1030 <printf@plt>
lea    0x114b(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e5(%rip),%rdi
call   1030 <printf@plt>
lea    0x116e(%rip),%rdi
call   1030 <printf@plt>
lea    0x116a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1173(%rip),%rdi
call   1030 <printf@plt>
lea    0x117c(%rip),%rdi
call   1030 <printf@plt>
lea    0x11ab(%rip),%rdi
call   1030 <printf@plt>
lea    0x11ba(%rip),%rdi
call   1030 <printf@plt>
lea    0x11c4(%rip),%rdi
call   1030 <printf@plt>
lea    0x11c0(%rip),%rdi
call   1030 <printf@plt>
lea    0x108e(%rip),%rdi
call   1030 <printf@plt>
lea    0x136a(%rip),%rdi
call   1030 <printf@plt>
lea    0x11ad(%rip),%rdi
call   1030 <printf@plt>
lea    0x11d3(%rip),%rdi
call   1030 <printf@plt>
lea    0x1346(%rip),%rdi
call   1030 <printf@plt>
lea    0x11dd(%rip),%rdi
call   1030 <printf@plt>
lea    0x11fe(%rip),%rdi
call   1030 <printf@plt>
lea    0x1206(%rip),%rdi
call   1030 <printf@plt>
lea    0x1316(%rip),%rdi
call   1030 <printf@plt>
lea    0x1206(%rip),%rdi
call   1030 <printf@plt>
lea    0x1216(%rip),%rdi
call   1030 <printf@plt>
lea    0x1132(%rip),%rdi
call   1030 <printf@plt>
lea    0xffe(%rip),%rdi
call   1030 <printf@plt>
lea    0x12da(%rip),%rdi
call   1030 <printf@plt>
lea    0x11f3(%rip),%rdi
call   1030 <printf@plt>
lea    0x12c2(%rip),%rdi
call   1030 <printf@plt>
lea    0x11f4(%rip),%rdi
call   1030 <printf@plt>
lea    0x1209(%rip),%rdi
call   1030 <printf@plt>
lea    0x129e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1215(%rip),%rdi
call   1030 <printf@plt>
lea    0x1234(%rip),%rdi
call   1030 <printf@plt>
lea    0x127a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1246(%rip),%rdi
call   1030 <printf@plt>
lea    0x1262(%rip),%rdi
call   1030 <printf@plt>
lea    0x1258(%rip),%rdi
call   1030 <printf@plt>
lea    0x124a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1256(%rip),%rdi
call   1030 <printf@plt>
lea    0x1232(%rip),%rdi
call   1030 <printf@plt>
lea    0x125d(%rip),%rdi
call   1030 <printf@plt>
lea    0x121a(%rip),%rdi
call   1030 <printf@plt>
lea    0x126b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1291(%rip),%rdi
call   1030 <printf@plt>
lea    0x11f6(%rip),%rdi
call   1030 <printf@plt>
lea    0xa1d(%rip),%rdi
call   1030 <printf@plt>
lea    0x11de(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<prolog>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xed1(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xecb(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xed5(%rip),%rdi
call   1040 <puts@plt>
lea    0xedd(%rip),%rdi
call   1040 <puts@plt>
lea    0x172c(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xed0(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xed6(%rip),%rdi
call   1040 <puts@plt>
lea    0xedf(%rip),%rdi
call   1040 <puts@plt>
lea    0xee7(%rip),%rdi
call   1040 <puts@plt>
lea    0xeee(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xeeb(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xef3(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xef0(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xefb(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf18(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf3c(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf61(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf6b(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf80(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfa7(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfc9(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xff1(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1024(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x102a(%rip),%rdi
call   1040 <puts@plt>
lea    0x102d(%rip),%rdi
call   1040 <puts@plt>
lea    0x1035(%rip),%rdi
call   1040 <puts@plt>
lea    0x1045(%rip),%rdi
call   1040 <puts@plt>
lea    0x104a(%rip),%rdi
call   1040 <puts@plt>
lea    0x1052(%rip),%rdi
call   1040 <puts@plt>
lea    0x1056(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x104e(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1055(%rip),%rdi
call   1040 <puts@plt>
lea    0x1070(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x107d(%rip),%rdi
call   1040 <puts@plt>
lea    0x1297(%rip),%r15
mov    %r15,%rdi
call   1040 <puts@plt>
lea    0x115b(%rip),%r12
mov    %r12,%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x106a(%rip),%rdi
call   1040 <puts@plt>
lea    0x1097(%rip),%rdi
call   1040 <puts@plt>
lea    0x10c6(%rip),%rdi
call   1040 <puts@plt>
lea    0x10ca(%rip),%rdi
call   1040 <puts@plt>
lea    0x10d2(%rip),%rdi
call   1040 <puts@plt>
lea    0x1182(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x10f3(%rip),%rdi
call   1040 <puts@plt>
lea    0x10ed(%rip),%rdi
call   1040 <puts@plt>
lea    0x110f(%rip),%rdi
call   1040 <puts@plt>
lea    0x1115(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x114b(%rip),%rdi
call   1040 <puts@plt>
lea    0x1146(%rip),%rdi
call   1040 <puts@plt>
lea    0x114e(%rip),%rdi
call   1040 <puts@plt>
lea    0x1156(%rip),%rdi
call   1040 <puts@plt>
lea    0x1184(%rip),%rdi
call   1040 <puts@plt>
lea    0x1192(%rip),%rdi
call   1040 <puts@plt>
lea    0x119b(%rip),%rdi
call   1040 <puts@plt>
lea    0x1196(%rip),%rdi
call   1040 <puts@plt>
mov    %r12,%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1188(%rip),%rdi
call   1040 <puts@plt>
lea    0x11ad(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x11b8(%rip),%rdi
call   1040 <puts@plt>
lea    0x11d8(%rip),%rdi
call   1040 <puts@plt>
lea    0x11df(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x11e0(%rip),%rdi
call   1040 <puts@plt>
lea    0x11ef(%rip),%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
call   1040 <puts@plt>
mov    %r12,%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x11d5(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x11d7(%rip),%rdi
call   1040 <puts@plt>
lea    0x11eb(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x11f8(%rip),%rdi
call   1040 <puts@plt>
lea    0x1216(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1229(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x123c(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x123b(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1243(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1252(%rip),%rdi
call   1040 <puts@plt>
lea    0x1277(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"#ifdef _MSC_VER\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [33 x i8] c"#pragma warning( disable:4996 )\0A\00"
@.str.3 = [21 x i8] c"#ifndef __cplusplus\0A\00"
@.str.4 = [25 x i8] c"#define inline __inline\0A\00"
@.str.5 = [8 x i8] c"#endif\0A\00"
@.str.6 = [29 x i8] c"#define WIN32_LEAN_AND_MEAN\0A\00"
@.str.7 = [22 x i8] c"#include <windows.h>\0A\00"
@.str.8 = [21 x i8] c"#include <stdlib.h>\0A\00"
@.str.9 = [20 x i8] c"#include <stdio.h>\0A\00"
@.str.10 = [20 x i8] c"#include <errno.h>\0A\00"
@.str.11 = [31 x i8] c"// WINDOW pthreads \22LIBRARY\22\0A\00"
@.str.12 = [20 x i8] c" // Mutex macros\0A\00"
@.str.13 = [34 x i8] c"typedef SRWLOCK pthread_mutex_t;\0A\00"
@.str.14 = [52 x i8] c"#define PTHREAD_MUTEX_INITIALIZER RTL_SRWLOCK_INIT\0A\00"
@.str.15 = [59 x i8] c"#define pthread_mutex_lock(m) AcquireSRWLockExclusive(m)\0A\00"
@.str.16 = [60 x i8] c"#define pthread_mutex_unlock(m) ReleaseSRWLockExclusive(m)\0A\00"
@.str.17 = [33 x i8] c" // Condition variable macros\0A\00"
@.str.18 = [44 x i8] c"typedef CONDITION_VARIABLE pthread_cond_t;\0A\00"
@.str.19 = [62 x i8] c"#define PTHREAD_COND_INITIALIZER RTL_CONDITION_VARIABLE_INIT\0A\00"
@.str.20 = [57 x i8] c"#define pthread_cond_signal(c) WakeConditionVariable(c)\0A\00"
@.str.21 = [63 x i8] c"#define pthread_cond_broadcast(c) WakeAllConditionVariable(c)\0A\00"
@.str.22 = [74 x i8] c"#define pthread_cond_wait(c,m) SleepConditionVariableSRW(c,m,INFINITE,0)\0A\00"
@.str.23 = [29 x i8] c" // Simple thread support\0A\00"
@.str.24 = [16 x i8] c"typedef struct\0A\00"
@.str.25 = [21 x i8] c" { HANDLE *handle;\0A\00"
@.str.26 = [29 x i8] c" void *(*fct)(void *);\0A\00"
@.str.27 = [18 x i8] c" void *arg;\0A\00"
@.str.28 = [21 x i8] c" void *retval;\0A\00"
@.str.29 = [17 x i8] c" int id;\0A\00"
@.str.30 = [15 x i8] c" } Mythread;\0A\00"
@.str.31 = [30 x i8] c"typedef Mythread *pthread_t;\0A\00"
@.str.32 = [40 x i8] c"static DWORD WINAPI MyStart(void *arg)\0A\00"
@.str.33 = [36 x i8] c"{ Mythread *tv = (Mythread *) arg;\0A\00"
@.str.34 = [34 x i8] c" tv->retval = tv->fct(tv->arg);\0A\00"
@.str.35 = [15 x i8] c" return (0);\0A\00"
@.str.36 = [3 x i8] c"}\0A\00"
@.str.37 = [58 x i8] c"static int pthread_create(pthread_t *thread, void *attr,\0A\00"
@.str.38 = [60 x i8] c" void *(*fct)(void *), void *arg)\0A\00"
@.str.39 = [17 x i8] c"{ Mythread *tv;\0A\00"
@.str.40 = [21 x i8] c" if (attr != NULL)\0A\00"
@.str.41 = [61 x i8] c" { fprintf(stderr,\22Do not support thread attributes\\n\22);\0A\00"
@.str.42 = [17 x i8] c" exit (1);\0A\00"
@.str.43 = [7 x i8] c" }\0A\00"
@.str.44 = [47 x i8] c" tv = (Mythread *) malloc(sizeof(Mythread));\0A\00"
@.str.45 = [19 x i8] c" if (tv == NULL)\0A\00"
@.str.46 = [59 x i8] c" { fprintf(stderr,\22pthread_create: Out of memory.\\n\22);\0A\00"
@.str.47 = [8 x i8] c" };\0A\00"
@.str.48 = [21 x i8] c" tv->fct = fct;\0A\00"
@.str.49 = [21 x i8] c" tv->arg = arg;\0A\00"
@.str.50 = [59 x i8] c" tv->handle = CreateThread(NULL,0,MyStart,tv,0,&tv->id);\0A\00"
@.str.51 = [27 x i8] c" if (tv->handle == NULL)\0A\00"
@.str.52 = [22 x i8] c" return (EAGAIN);\0A\00"
@.str.53 = [8 x i8] c" else\0A\00"
@.str.54 = [17 x i8] c" return (0);\0A\00"
@.str.55 = [50 x i8] c"static int pthread_join(pthread_t t, void **ret)\0A\00"
@.str.56 = [34 x i8] c"{ Mythread *tv = (Mythread *) t;\0A\00"
@.str.57 = [45 x i8] c" WaitForSingleObject(tv->handle,INFINITE);\0A\00"
@.str.58 = [20 x i8] c" if (ret != NULL)\0A\00"
@.str.59 = [24 x i8] c" *ret = tv->retval;\0A\00"
@.str.60 = [28 x i8] c" CloseHandle(tv->handle);\0A\00"
@.str.61 = [13 x i8] c" free(tv);\0A\00"
@.str.62 = [25 x i8] c"typedef int pthread_id;\0A\00"
@.str.63 = [33 x i8] c"static pthread_id pthread_tag()\0A\00"
@.str.64 = [36 x i8] c"{ return (GetCurrentThreadId()); }\0A\00"
@.str.65 = [43 x i8] c"static int pthread_is_this(pthread_id id)\0A\00"
@.str.66 = [42 x i8] c"{ return (GetCurrentThreadId() == id); }\0A\00"
@.str.67 = [42 x i8] c"#else // Small extension to pthreads!\0A\00"
@.str.68 = [22 x i8] c"#include <pthread.h>\0A\00"
@.str.69 = [31 x i8] c"typedef pthread_t pthread_id;\0A\00"
@.str.70 = [38 x i8] c"#define pthread_tag() pthread_self()\0A\00"
@.str.71 = [50 x i8] c"static inline int pthread_is_this(pthread_id id)\0A\00"
@.str.72 = [48 x i8] c"{ return (pthread_equal(pthread_self(),id)); }\0A\00"
define void @prolog() {
%1 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.14, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.15, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.16, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.17, i64 0, i64 0))
%29 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%30 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.18, i64 0, i64 0))
%31 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%32 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.19, i64 0, i64 0))
%33 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%34 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.20, i64 0, i64 0))
%35 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%36 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.21, i64 0, i64 0))
%37 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%38 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.22, i64 0, i64 0))
%39 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%40 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.23, i64 0, i64 0))
%41 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%42 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.24, i64 0, i64 0))
%43 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.25, i64 0, i64 0))
%44 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.26, i64 0, i64 0))
%45 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.27, i64 0, i64 0))
%46 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.28, i64 0, i64 0))
%47 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.29, i64 0, i64 0))
%48 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.30, i64 0, i64 0))
%49 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%50 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.31, i64 0, i64 0))
%51 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%52 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.32, i64 0, i64 0))
%53 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.33, i64 0, i64 0))
%54 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%55 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.34, i64 0, i64 0))
%56 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.35, i64 0, i64 0))
%57 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.36, i64 0, i64 0))
%58 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%59 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.37, i64 0, i64 0))
%60 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.38, i64 0, i64 0))
%61 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.39, i64 0, i64 0))
%62 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.40, i64 0, i64 0))
%63 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.41, i64 0, i64 0))
%64 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.42, i64 0, i64 0))
%65 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.43, i64 0, i64 0))
%66 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.44, i64 0, i64 0))
%67 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.45, i64 0, i64 0))
%68 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.46, i64 0, i64 0))
%69 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.42, i64 0, i64 0))
%70 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.47, i64 0, i64 0))
%71 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.48, i64 0, i64 0))
%72 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.49, i64 0, i64 0))
%73 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.50, i64 0, i64 0))
%74 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.51, i64 0, i64 0))
%75 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.52, i64 0, i64 0))
%76 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.53, i64 0, i64 0))
%77 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.54, i64 0, i64 0))
%78 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.36, i64 0, i64 0))
%79 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%80 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.55, i64 0, i64 0))
%81 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.56, i64 0, i64 0))
%82 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%83 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.57, i64 0, i64 0))
%84 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.58, i64 0, i64 0))
%85 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.59, i64 0, i64 0))
%86 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%87 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.60, i64 0, i64 0))
%88 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.61, i64 0, i64 0))
%89 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.35, i64 0, i64 0))
%90 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.36, i64 0, i64 0))
%91 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%92 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.62, i64 0, i64 0))
%93 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%94 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.63, i64 0, i64 0))
%95 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.64, i64 0, i64 0))
%96 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%97 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.65, i64 0, i64 0))
%98 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.66, i64 0, i64 0))
%99 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%100 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.67, i64 0, i64 0))
%101 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%102 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.68, i64 0, i64 0))
%103 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%104 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.69, i64 0, i64 0))
%105 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%106 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.70, i64 0, i64 0))
%107 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%108 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.71, i64 0, i64 0))
%109 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.72, i64 0, i64 0))
%110 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%111 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%112 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [16 x i8] c"#ifdef _MSC_VER\00"
@str.73 = [32 x i8] c"#pragma warning( disable:4996 )\00"
@str.74 = [20 x i8] c"#ifndef __cplusplus\00"
@str.75 = [24 x i8] c"#define inline __inline\00"
@str.77 = [28 x i8] c"#define WIN32_LEAN_AND_MEAN\00"
@str.78 = [21 x i8] c"#include <windows.h>\00"
@str.79 = [20 x i8] c"#include <stdlib.h>\00"
@str.80 = [19 x i8] c"#include <stdio.h>\00"
@str.81 = [19 x i8] c"#include <errno.h>\00"
@str.82 = [30 x i8] c"// WINDOW pthreads \22LIBRARY\22\00"
@str.83 = [19 x i8] c" // Mutex macros\00"
@str.84 = [33 x i8] c"typedef SRWLOCK pthread_mutex_t;\00"
@str.85 = [51 x i8] c"#define PTHREAD_MUTEX_INITIALIZER RTL_SRWLOCK_INIT\00"
@str.86 = [58 x i8] c"#define pthread_mutex_lock(m) AcquireSRWLockExclusive(m)\00"
@str.87 = [59 x i8] c"#define pthread_mutex_unlock(m) ReleaseSRWLockExclusive(m)\00"
@str.88 = [32 x i8] c" // Condition variable macros\00"
@str.89 = [43 x i8] c"typedef CONDITION_VARIABLE pthread_cond_t;\00"
@str.90 = [61 x i8] c"#define PTHREAD_COND_INITIALIZER RTL_CONDITION_VARIABLE_INIT\00"
@str.91 = [56 x i8] c"#define pthread_cond_signal(c) WakeConditionVariable(c)\00"
@str.92 = [62 x i8] c"#define pthread_cond_broadcast(c) WakeAllConditionVariable(c)\00"
@str.93 = [73 x i8] c"#define pthread_cond_wait(c,m) SleepConditionVariableSRW(c,m,INFINITE,0)\00"
@str.94 = [28 x i8] c" // Simple thread support\00"
@str.95 = [15 x i8] c"typedef struct\00"
@str.96 = [20 x i8] c" { HANDLE *handle;\00"
@str.97 = [28 x i8] c" void *(*fct)(void *);\00"
@str.98 = [17 x i8] c" void *arg;\00"
@str.99 = [20 x i8] c" void *retval;\00"
@str.100 = [16 x i8] c" int id;\00"
@str.101 = [14 x i8] c" } Mythread;\00"
@str.102 = [29 x i8] c"typedef Mythread *pthread_t;\00"
@str.103 = [39 x i8] c"static DWORD WINAPI MyStart(void *arg)\00"
@str.104 = [35 x i8] c"{ Mythread *tv = (Mythread *) arg;\00"
@str.105 = [33 x i8] c" tv->retval = tv->fct(tv->arg);\00"
@str.108 = [57 x i8] c"static int pthread_create(pthread_t *thread, void *attr,\00"
@str.109 = [59 x i8] c" void *(*fct)(void *), void *arg)\00"
@str.110 = [16 x i8] c"{ Mythread *tv;\00"
@str.111 = [20 x i8] c" if (attr != NULL)\00"
@str.112 = [60 x i8] c" { fprintf(stderr,\22Do not support thread attributes\\n\22);\00"
@str.114 = [6 x i8] c" }\00"
@str.115 = [46 x i8] c" tv = (Mythread *) malloc(sizeof(Mythread));\00"
@str.116 = [18 x i8] c" if (tv == NULL)\00"
@str.117 = [58 x i8] c" { fprintf(stderr,\22pthread_create: Out of memory.\\n\22);\00"
@str.118 = [16 x i8] c" exit (1);\00"
@str.119 = [7 x i8] c" };\00"
@str.120 = [20 x i8] c" tv->fct = fct;\00"
@str.121 = [20 x i8] c" tv->arg = arg;\00"
@str.122 = [58 x i8] c" tv->handle = CreateThread(NULL,0,MyStart,tv,0,&tv->id);\00"
@str.123 = [26 x i8] c" if (tv->handle == NULL)\00"
@str.124 = [21 x i8] c" return (EAGAIN);\00"
@str.125 = [7 x i8] c" else\00"
@str.126 = [16 x i8] c" return (0);\00"
@str.128 = [49 x i8] c"static int pthread_join(pthread_t t, void **ret)\00"
@str.129 = [33 x i8] c"{ Mythread *tv = (Mythread *) t;\00"
@str.130 = [44 x i8] c" WaitForSingleObject(tv->handle,INFINITE);\00"
@str.131 = [19 x i8] c" if (ret != NULL)\00"
@str.132 = [23 x i8] c" *ret = tv->retval;\00"
@str.133 = [27 x i8] c" CloseHandle(tv->handle);\00"
@str.134 = [12 x i8] c" free(tv);\00"
@str.135 = [14 x i8] c" return (0);\00"
@str.136 = [2 x i8] c"}\00"
@str.137 = [24 x i8] c"typedef int pthread_id;\00"
@str.138 = [32 x i8] c"static pthread_id pthread_tag()\00"
@str.139 = [35 x i8] c"{ return (GetCurrentThreadId()); }\00"
@str.140 = [42 x i8] c"static int pthread_is_this(pthread_id id)\00"
@str.141 = [41 x i8] c"{ return (GetCurrentThreadId() == id); }\00"
@str.142 = [41 x i8] c"#else // Small extension to pthreads!\00"
@str.143 = [21 x i8] c"#include <pthread.h>\00"
@str.144 = [30 x i8] c"typedef pthread_t pthread_id;\00"
@str.145 = [37 x i8] c"#define pthread_tag() pthread_self()\00"
@str.146 = [49 x i8] c"static inline int pthread_is_this(pthread_id id)\00"
@str.147 = [47 x i8] c"{ return (pthread_equal(pthread_self(),id)); }\00"
@str.148 = [7 x i8] c"#endif\00"
define void @prolog() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @putchar(i32 10)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.73, i64 0, i64 0))
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.74, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.75, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.148, i64 0, i64 0))
%8 = tail call i32 @putchar(i32 10)
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.77, i64 0, i64 0))
%10 = tail call i32 @putchar(i32 10)
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.78, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.79, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.80, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.81, i64 0, i64 0))
%15 = tail call i32 @putchar(i32 10)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.82, i64 0, i64 0))
%17 = tail call i32 @putchar(i32 10)
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.83, i64 0, i64 0))
%19 = tail call i32 @putchar(i32 10)
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.84, i64 0, i64 0))
%21 = tail call i32 @putchar(i32 10)
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.85, i64 0, i64 0))
%23 = tail call i32 @putchar(i32 10)
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.86, i64 0, i64 0))
%25 = tail call i32 @putchar(i32 10)
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.87, i64 0, i64 0))
%27 = tail call i32 @putchar(i32 10)
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.88, i64 0, i64 0))
%29 = tail call i32 @putchar(i32 10)
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.89, i64 0, i64 0))
%31 = tail call i32 @putchar(i32 10)
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.90, i64 0, i64 0))
%33 = tail call i32 @putchar(i32 10)
%34 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.91, i64 0, i64 0))
%35 = tail call i32 @putchar(i32 10)
%36 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.92, i64 0, i64 0))
%37 = tail call i32 @putchar(i32 10)
%38 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.93, i64 0, i64 0))
%39 = tail call i32 @putchar(i32 10)
%40 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.94, i64 0, i64 0))
%41 = tail call i32 @putchar(i32 10)
%42 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.95, i64 0, i64 0))
%43 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.96, i64 0, i64 0))
%44 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.97, i64 0, i64 0))
%45 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.98, i64 0, i64 0))
%46 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.99, i64 0, i64 0))
%47 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.100, i64 0, i64 0))
%48 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.101, i64 0, i64 0))
%49 = tail call i32 @putchar(i32 10)
%50 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.102, i64 0, i64 0))
%51 = tail call i32 @putchar(i32 10)
%52 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.103, i64 0, i64 0))
%53 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.104, i64 0, i64 0))
%54 = tail call i32 @putchar(i32 10)
%55 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.105, i64 0, i64 0))
%56 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.135, i64 0, i64 0))
%57 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.136, i64 0, i64 0))
%58 = tail call i32 @putchar(i32 10)
%59 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.108, i64 0, i64 0))
%60 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.109, i64 0, i64 0))
%61 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.110, i64 0, i64 0))
%62 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.111, i64 0, i64 0))
%63 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.112, i64 0, i64 0))
%64 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.118, i64 0, i64 0))
%65 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.114, i64 0, i64 0))
%66 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.115, i64 0, i64 0))
%67 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.116, i64 0, i64 0))
%68 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.117, i64 0, i64 0))
%69 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.118, i64 0, i64 0))
%70 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.119, i64 0, i64 0))
%71 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.120, i64 0, i64 0))
%72 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.121, i64 0, i64 0))
%73 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.122, i64 0, i64 0))
%74 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.123, i64 0, i64 0))
%75 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.124, i64 0, i64 0))
%76 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.125, i64 0, i64 0))
%77 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.126, i64 0, i64 0))
%78 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.136, i64 0, i64 0))
%79 = tail call i32 @putchar(i32 10)
%80 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.128, i64 0, i64 0))
%81 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.129, i64 0, i64 0))
%82 = tail call i32 @putchar(i32 10)
%83 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.130, i64 0, i64 0))
%84 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.131, i64 0, i64 0))
%85 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.132, i64 0, i64 0))
%86 = tail call i32 @putchar(i32 10)
%87 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.133, i64 0, i64 0))
%88 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.134, i64 0, i64 0))
%89 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.135, i64 0, i64 0))
%90 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.136, i64 0, i64 0))
%91 = tail call i32 @putchar(i32 10)
%92 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.137, i64 0, i64 0))
%93 = tail call i32 @putchar(i32 10)
%94 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.138, i64 0, i64 0))
%95 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.139, i64 0, i64 0))
%96 = tail call i32 @putchar(i32 10)
%97 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.140, i64 0, i64 0))
%98 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.141, i64 0, i64 0))
%99 = tail call i32 @putchar(i32 10)
%100 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.142, i64 0, i64 0))
%101 = tail call i32 @putchar(i32 10)
%102 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.143, i64 0, i64 0))
%103 = tail call i32 @putchar(i32 10)
%104 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.144, i64 0, i64 0))
%105 = tail call i32 @putchar(i32 10)
%106 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.145, i64 0, i64 0))
%107 = tail call i32 @putchar(i32 10)
%108 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.146, i64 0, i64 0))
%109 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.147, i64 0, i64 0))
%110 = tail call i32 @putchar(i32 10)
%111 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.148, i64 0, i64 0))
%112 = tail call i32 @putchar(i32 10)
ret void
}