#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 */
typedef int /*<<< orphan*/ pthread_rwlockattr_t;
typedef int /*<<< orphan*/ pthread_rwlock_t;
typedef int /*<<< orphan*/ pthread_mutexattr_t;
typedef int /*<<< orphan*/ pthread_mutex_t;
typedef int /*<<< orphan*/ pthread_condattr_t;
typedef int /*<<< orphan*/ pthread_cond_t;
typedef int /*<<< orphan*/ pthread_attr_t;

/* Variables and functions */
scalar_t__ PTHREAD_MUTEX_DEFAULT;
scalar_t__ PTHREAD_MUTEX_ERRORCHECK;
scalar_t__ PTHREAD_MUTEX_NORMAL;
scalar_t__ PTHREAD_MUTEX_RECURSIVE;
int /*<<< orphan*/ printf(char *, char *, int, ...);
int main() {
  printf("Constant named: #%s value: (UIntPointer array: %d). \"sizeof(%s) = "
         "%d\"\n",
         "pthread_attr_t",
         (int)(int)((sizeof(pthread_attr_t) + sizeof(void *) - 1) /
                    sizeof(void *)),
         "pthread_attr_t", (int)sizeof(pthread_attr_t));
  ;
  printf("Constant named: #%s value: (UIntPointer array: %d). \"sizeof(%s) = "
         "%d\"\n",
         "pthread_mutex_t",
         (int)(int)((sizeof(pthread_mutex_t) + sizeof(void *) - 1) /
                    sizeof(void *)),
         "pthread_mutex_t", (int)sizeof(pthread_mutex_t));
  ;
  printf("Constant named: #%s value: (UIntPointer array: %d). \"sizeof(%s) = "
         "%d\"\n",
         "pthread_mutexattr_t",
         (int)(int)((sizeof(pthread_mutexattr_t) + sizeof(void *) - 1) /
                    sizeof(void *)),
         "pthread_mutexattr_t", (int)sizeof(pthread_mutexattr_t));
  ;
  printf("Constant named: #%s value: (UIntPointer array: %d). \"sizeof(%s) = "
         "%d\"\n",
         "pthread_cond_t",
         (int)(int)((sizeof(pthread_cond_t) + sizeof(void *) - 1) /
                    sizeof(void *)),
         "pthread_cond_t", (int)sizeof(pthread_cond_t));
  ;
  printf("Constant named: #%s value: (UIntPointer array: %d). \"sizeof(%s) = "
         "%d\"\n",
         "pthread_condattr_t",
         (int)(int)((sizeof(pthread_condattr_t) + sizeof(void *) - 1) /
                    sizeof(void *)),
         "pthread_condattr_t", (int)sizeof(pthread_condattr_t));
  ;
  printf("Constant named: #%s value: (UIntPointer array: %d). \"sizeof(%s) = "
         "%d\"\n",
         "pthread_rwlock_t",
         (int)(int)((sizeof(pthread_rwlock_t) + sizeof(void *) - 1) /
                    sizeof(void *)),
         "pthread_rwlock_t", (int)sizeof(pthread_rwlock_t));
  ;
  printf("Constant named: #%s value: (UIntPointer array: %d). \"sizeof(%s) = "
         "%d\"\n",
         "pthread_rwlockattr_t",
         (int)(int)((sizeof(pthread_rwlockattr_t) + sizeof(void *) - 1) /
                    sizeof(void *)),
         "pthread_rwlockattr_t", (int)sizeof(pthread_rwlockattr_t));
  ;
  printf("Constant named: #%s type: LibC CInt value: %d.\n",
         "PTHREAD_MUTEX_NORMAL", (int)PTHREAD_MUTEX_NORMAL);
  ;
  printf("Constant named: #%s type: LibC CInt value: %d.\n",
         "PTHREAD_MUTEX_ERRORCHECK", (int)PTHREAD_MUTEX_ERRORCHECK);
  ;
  printf("Constant named: #%s type: LibC CInt value: %d.\n",
         "PTHREAD_MUTEX_RECURSIVE", (int)PTHREAD_MUTEX_RECURSIVE);
  ;
  printf("Constant named: #%s type: LibC CInt value: %d.\n",
         "PTHREAD_MUTEX_DEFAULT", (int)PTHREAD_MUTEX_DEFAULT);
  ;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    0xf1a(%rip),%rcx
mov    $0x1,%edx
mov    $0x4,%r8d
mov    %rcx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb7(%rip),%rdi
lea    0xf06(%rip),%rcx
mov    $0x1,%edx
mov    $0x4,%r8d
mov    %rcx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe94(%rip),%rdi
lea    0xef3(%rip),%rcx
mov    $0x1,%edx
mov    $0x4,%r8d
mov    %rcx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe71(%rip),%rdi
lea    0xee4(%rip),%rcx
mov    $0x1,%edx
mov    $0x4,%r8d
mov    %rcx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe4e(%rip),%rdi
lea    0xed0(%rip),%rcx
mov    $0x1,%edx
mov    $0x4,%r8d
mov    %rcx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe2b(%rip),%rdi
lea    0xec0(%rip),%rcx
mov    $0x1,%edx
mov    $0x4,%r8d
mov    %rcx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe08(%rip),%rdi
lea    0xeae(%rip),%rcx
mov    $0x1,%edx
mov    $0x4,%r8d
mov    %rcx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dc5(%rip),%rax
mov    (%rax),%rax
mov    %eax,%edx
lea    0xe9b(%rip),%rdi
lea    0xec4(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d84(%rip),%rax
mov    (%rax),%rax
mov    %eax,%edx
lea    0xe7a(%rip),%rdi
lea    0xeb8(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d9b(%rip),%rax
mov    (%rax),%rax
mov    %eax,%edx
lea    0xe59(%rip),%rdi
lea    0xeb0(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d52(%rip),%rax
mov    (%rax),%rax
mov    %eax,%edx
lea    0xe38(%rip),%rdi
lea    0xea7(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
lea    0xf28(%rip),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    $0x1,%edx
mov    $0x4,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf18(%rip),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    $0x1,%edx
mov    $0x4,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf09(%rip),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    $0x1,%edx
mov    $0x4,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xefe(%rip),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    $0x1,%edx
mov    $0x4,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeee(%rip),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    $0x1,%edx
mov    $0x4,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee2(%rip),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    $0x1,%edx
mov    $0x4,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed4(%rip),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    $0x1,%edx
mov    $0x4,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2de8(%rip),%rax
mov    (%rax),%edx
lea    0xec1(%rip),%rbx
lea    0xeea(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2da7(%rip),%rax
mov    (%rax),%edx
lea    0xee5(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2dc5(%rip),%rax
mov    (%rax),%edx
lea    0xee4(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2d83(%rip),%rax
mov    (%rax),%edx
lea    0xee2(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [71 x i8] c"Constant named: #%s value: (UIntPointer array: %d). \22sizeof(%s) = %d\22\0A\00"
@.str.1 = [15 x i8] c"pthread_attr_t\00"
@.str.2 = [16 x i8] c"pthread_mutex_t\00"
@.str.3 = [20 x i8] c"pthread_mutexattr_t\00"
@.str.4 = [15 x i8] c"pthread_cond_t\00"
@.str.5 = [19 x i8] c"pthread_condattr_t\00"
@.str.6 = [17 x i8] c"pthread_rwlock_t\00"
@.str.7 = [21 x i8] c"pthread_rwlockattr_t\00"
@.str.8 = [48 x i8] c"Constant named: #%s type: LibC CInt value: %d.\0A\00"
@.str.9 = [21 x i8] c"PTHREAD_MUTEX_NORMAL\00"
@PTHREAD_MUTEX_NORMAL = global i64 0
@.str.10 = [25 x i8] c"PTHREAD_MUTEX_ERRORCHECK\00"
@PTHREAD_MUTEX_ERRORCHECK = global i64 0
@.str.11 = [24 x i8] c"PTHREAD_MUTEX_RECURSIVE\00"
@PTHREAD_MUTEX_RECURSIVE = global i64 0
@.str.12 = [22 x i8] c"PTHREAD_MUTEX_DEFAULT\00"
@PTHREAD_MUTEX_DEFAULT = global i64 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 4)
%3 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 4)
%4 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 4)
%5 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 4)
%6 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 4)
%7 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 4)
%8 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 4)
%9 = load i64, i64* @PTHREAD_MUTEX_NORMAL
%10 = trunc i64 %9 to i32
%11 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i32 %10)
%12 = load i64, i64* @PTHREAD_MUTEX_ERRORCHECK
%13 = trunc i64 %12 to i32
%14 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i32 %13)
%15 = load i64, i64* @PTHREAD_MUTEX_RECURSIVE
%16 = trunc i64 %15 to i32
%17 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 %16)
%18 = load i64, i64* @PTHREAD_MUTEX_DEFAULT
%19 = trunc i64 %18 to i32
%20 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0), i32 %19)
ret i32 0
}

LLVM IR (-O2):
@.str = [71 x i8] c"Constant named: #%s value: (UIntPointer array: %d). \22sizeof(%s) = %d\22\0A\00"
@.str.1 = [15 x i8] c"pthread_attr_t\00"
@.str.2 = [16 x i8] c"pthread_mutex_t\00"
@.str.3 = [20 x i8] c"pthread_mutexattr_t\00"
@.str.4 = [15 x i8] c"pthread_cond_t\00"
@.str.5 = [19 x i8] c"pthread_condattr_t\00"
@.str.6 = [17 x i8] c"pthread_rwlock_t\00"
@.str.7 = [21 x i8] c"pthread_rwlockattr_t\00"
@.str.8 = [48 x i8] c"Constant named: #%s type: LibC CInt value: %d.\0A\00"
@.str.9 = [21 x i8] c"PTHREAD_MUTEX_NORMAL\00"
@PTHREAD_MUTEX_NORMAL = global i64 0
@.str.10 = [25 x i8] c"PTHREAD_MUTEX_ERRORCHECK\00"
@PTHREAD_MUTEX_ERRORCHECK = global i64 0
@.str.11 = [24 x i8] c"PTHREAD_MUTEX_RECURSIVE\00"
@PTHREAD_MUTEX_RECURSIVE = global i64 0
@.str.12 = [22 x i8] c"PTHREAD_MUTEX_DEFAULT\00"
@PTHREAD_MUTEX_DEFAULT = global i64 0
define i32 @main() {
%1 = tail call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 4)
%2 = tail call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 4)
%3 = tail call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 4)
%4 = tail call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 4)
%5 = tail call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 4)
%6 = tail call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 4)
%7 = tail call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 4)
%8 = load i64, i64* @PTHREAD_MUTEX_NORMAL
%9 = trunc i64 %8 to i32
%10 = tail call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i32 %9)
%11 = load i64, i64* @PTHREAD_MUTEX_ERRORCHECK
%12 = trunc i64 %11 to i32
%13 = tail call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i32 %12)
%14 = load i64, i64* @PTHREAD_MUTEX_RECURSIVE
%15 = trunc i64 %14 to i32
%16 = tail call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 %15)
%17 = load i64, i64* @PTHREAD_MUTEX_DEFAULT
%18 = trunc i64 %17 to i32
%19 = tail call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0), i32 %18)
ret i32 0
}