#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 */
struct sched_param {
  int sched_priority;
};
typedef int /*<<< orphan*/ pthread_attr_t;

/* Variables and functions */
int PTHREAD_CREATE_DETACHED;
int PTHREAD_CREATE_JOINABLE;
int PTHREAD_EXPLICIT_SCHED;
int PTHREAD_INHERIT_SCHED;
int PTHREAD_SCOPE_PROCESS;
int PTHREAD_SCOPE_SYSTEM;
int SCHED_FIFO;
int SCHED_OTHER;
int SCHED_RR;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ pthread_attr_destroy(int /*<<< orphan*/ *);
int /*<<< orphan*/ pthread_attr_getdetachstate(int /*<<< orphan*/ *, int *);
int /*<<< orphan*/ pthread_attr_getguardsize(int /*<<< orphan*/ *, size_t *);
int /*<<< orphan*/ pthread_attr_getinheritsched(int /*<<< orphan*/ *, int *);
int /*<<< orphan*/ pthread_attr_getschedparam(int /*<<< orphan*/ *,
                                              struct sched_param *);
int /*<<< orphan*/ pthread_attr_getschedpolicy(int /*<<< orphan*/ *, int *);
int /*<<< orphan*/ pthread_attr_getscope(int /*<<< orphan*/ *, int *);
int /*<<< orphan*/ pthread_attr_getstacksize(int /*<<< orphan*/ *, size_t *);
int /*<<< orphan*/ pthread_attr_init(int /*<<< orphan*/ *);
int pthread_getconcurrency();
int main(void) {
  pthread_attr_t attr;
  pthread_attr_init(&attr);
  int state;
  pthread_attr_getdetachstate(&attr, &state);
  if (state == PTHREAD_CREATE_JOINABLE)
    printf("detachstate:PTHREAD_CREATE_JOINABLE\n");
  else if (state == PTHREAD_CREATE_DETACHED)
    printf("detachstate:PTHREAD_CREATE_DETACHED");
  size_t size;
  pthread_attr_getstacksize(&attr, &size);
  printf("stacksize:%d\n", size);
  pthread_attr_getguardsize(&attr, &size);
  printf("guardsize:%d\n", size);
  int scope;
  pthread_attr_getscope(&attr, &scope);
  if (scope == PTHREAD_SCOPE_PROCESS)
    printf("scope:PTHREAD_SCOPE_PROCESS\n");
  if (scope == PTHREAD_SCOPE_SYSTEM)
    printf("scope:PTHREAD_SCOPE_SYSTEM\n");
  int policy;
  pthread_attr_getschedpolicy(&attr, &policy);
  if (policy == SCHED_FIFO)
    printf("policy:SCHED_FIFO\n");
  else if (policy == SCHED_RR)
    printf("policy:SCHED_RR\n");
  else if (policy == SCHED_OTHER)
    printf("policy:SCHED_OTHER\n");
  int inheritsched;
  pthread_attr_getinheritsched(&attr, &inheritsched);
  if (inheritsched == PTHREAD_INHERIT_SCHED)
    printf("inheritsched:PTHREAD_INHERIT_SCHED\n");
  else if (inheritsched == PTHREAD_EXPLICIT_SCHED)
    printf("inheritsched:PTHREAD_EXPLICIT_SCHED\n");
  struct sched_param param;
  pthread_attr_getschedparam(&attr, &param);
  printf("sched_priority:%d\n", param.sched_priority);
  pthread_attr_destroy(&attr);
  int level;
  level = pthread_getconcurrency();
  printf("level:%d\n", level);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x8(%rbp),%rdi
call   1060 <pthread_attr_init@plt>
lea    -0x8(%rbp),%rdi
lea    -0xc(%rbp),%rsi
call   10c0 <pthread_attr_getdetachstate@plt>
mov    -0xc(%rbp),%eax
mov    0x2e09(%rip),%rcx
cmp    (%rcx),%eax
jne    11fa <main+0x4a>
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    121f <main+0x6f>
mov    -0xc(%rbp),%eax
mov    0x2dbc(%rip),%rcx
cmp    (%rcx),%eax
jne    121a <main+0x6a>
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    121f <main+0x6f>
lea    -0x8(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   10d0 <pthread_attr_getstacksize@plt>
mov    -0x18(%rbp),%rsi
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x8(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1070 <pthread_attr_getguardsize@plt>
mov    -0x18(%rbp),%rsi
lea    0xe01(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x8(%rbp),%rdi
lea    -0x1c(%rbp),%rsi
call   1030 <pthread_attr_getscope@plt>
mov    -0x1c(%rbp),%eax
mov    0x2d3c(%rip),%rcx
cmp    (%rcx),%eax
jne    128a <main+0xda>
lea    0xde2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1c(%rbp),%eax
mov    0x2d44(%rip),%rcx
cmp    (%rcx),%eax
jne    12aa <main+0xfa>
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x8(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1090 <pthread_attr_getschedpolicy@plt>
mov    -0x20(%rbp),%eax
mov    0x2d0f(%rip),%rcx
cmp    (%rcx),%eax
jne    12dc <main+0x12c>
lea    0xdce(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    132b <main+0x17b>
mov    -0x20(%rbp),%eax
mov    0x2cb2(%rip),%rcx
cmp    (%rcx),%eax
jne    1301 <main+0x151>
lea    0xdbc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1326 <main+0x176>
mov    -0x20(%rbp),%eax
mov    0x2cad(%rip),%rcx
cmp    (%rcx),%eax
jne    1321 <main+0x171>
lea    0xda8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1326 <main+0x176>
jmp    132b <main+0x17b>
lea    -0x8(%rbp),%rdi
lea    -0x24(%rbp),%rsi
call   1080 <pthread_attr_getinheritsched@plt>
mov    -0x24(%rbp),%eax
mov    0x2c66(%rip),%rcx
cmp    (%rcx),%eax
jne    135d <main+0x1ad>
lea    0xd85(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1382 <main+0x1d2>
mov    -0x24(%rbp),%eax
mov    0x2c79(%rip),%rcx
cmp    (%rcx),%eax
jne    137d <main+0x1cd>
lea    0xd84(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1382 <main+0x1d2>
lea    -0x8(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1050 <pthread_attr_getschedparam@plt>
mov    -0x28(%rbp),%esi
lea    0xd86(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x8(%rbp),%rdi
call   10b0 <pthread_attr_destroy@plt>
mov    $0x0,%al
call   10a0 <pthread_getconcurrency@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%esi
lea    0xd75(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x28,%rsp
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <pthread_attr_init@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   10d0 <pthread_attr_getdetachstate@plt>
mov    0x1c(%rsp),%eax
mov    0x2dfc(%rip),%rcx
cmp    (%rcx),%eax
jne    11fe <main+0x3e>
lea    0xf19(%rip),%rdi
call   1040 <puts@plt>
jmp    1217 <main+0x57>
mov    0x2dbb(%rip),%rcx
cmp    (%rcx),%eax
jne    1217 <main+0x57>
lea    0xdf0(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x8(%rsp),%rbx
lea    0x20(%rsp),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   10e0 <pthread_attr_getstacksize@plt>
mov    0x20(%rsp),%rsi
lea    0xdec(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1080 <pthread_attr_getguardsize@plt>
mov    0x20(%rsp),%rsi
lea    0xddc(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <pthread_attr_getscope@plt>
mov    0xc(%rsp),%eax
mov    0x2d3b(%rip),%rcx
cmp    (%rcx),%eax
jne    1289 <main+0xc9>
lea    0xe74(%rip),%rdi
call   1040 <puts@plt>
mov    0xc(%rsp),%eax
mov    0x2d48(%rip),%rcx
cmp    (%rcx),%eax
jne    12a0 <main+0xe0>
lea    0xe3e(%rip),%rdi
call   1040 <puts@plt>
lea    0x8(%rsp),%rdi
lea    0x18(%rsp),%rsi
call   10a0 <pthread_attr_getschedpolicy@plt>
mov    0x18(%rsp),%eax
mov    0x2d16(%rip),%rcx
cmp    (%rcx),%eax
jne    12c7 <main+0x107>
lea    0xe02(%rip),%rdi
jmp    12ed <main+0x12d>
mov    0x2cca(%rip),%rcx
cmp    (%rcx),%eax
jne    12db <main+0x11b>
lea    0xdde(%rip),%rdi
jmp    12ed <main+0x12d>
mov    0x2cd6(%rip),%rcx
cmp    (%rcx),%eax
jne    12f2 <main+0x132>
lea    0xdb7(%rip),%rdi
call   1040 <puts@plt>
lea    0x8(%rsp),%rdi
lea    0x14(%rsp),%rsi
call   1090 <pthread_attr_getinheritsched@plt>
mov    0x14(%rsp),%eax
mov    0x2c9c(%rip),%rcx
cmp    (%rcx),%eax
jne    1319 <main+0x159>
lea    0xd6a(%rip),%rdi
jmp    132b <main+0x16b>
mov    0x2cc0(%rip),%rcx
cmp    (%rcx),%eax
jne    1330 <main+0x170>
lea    0xd32(%rip),%rdi
call   1040 <puts@plt>
lea    0x8(%rsp),%rbx
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <pthread_attr_getschedparam@plt>
mov    0x10(%rsp),%esi
lea    0xcf3(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10c0 <pthread_attr_destroy@plt>
xor    %eax,%eax
call   10b0 <pthread_getconcurrency@plt>
lea    0xce9(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.sched_param = type { i32 }
@PTHREAD_CREATE_JOINABLE = global i32 0
@.str = [37 x i8] c"detachstate:PTHREAD_CREATE_JOINABLE\0A\00"
@PTHREAD_CREATE_DETACHED = global i32 0
@.str.1 = [36 x i8] c"detachstate:PTHREAD_CREATE_DETACHED\00"
@.str.2 = [14 x i8] c"stacksize:%d\0A\00"
@.str.3 = [14 x i8] c"guardsize:%d\0A\00"
@PTHREAD_SCOPE_PROCESS = global i32 0
@.str.4 = [29 x i8] c"scope:PTHREAD_SCOPE_PROCESS\0A\00"
@PTHREAD_SCOPE_SYSTEM = global i32 0
@.str.5 = [28 x i8] c"scope:PTHREAD_SCOPE_SYSTEM\0A\00"
@SCHED_FIFO = global i32 0
@.str.6 = [19 x i8] c"policy:SCHED_FIFO\0A\00"
@SCHED_RR = global i32 0
@.str.7 = [17 x i8] c"policy:SCHED_RR\0A\00"
@SCHED_OTHER = global i32 0
@.str.8 = [20 x i8] c"policy:SCHED_OTHER\0A\00"
@PTHREAD_INHERIT_SCHED = global i32 0
@.str.9 = [36 x i8] c"inheritsched:PTHREAD_INHERIT_SCHED\0A\00"
@PTHREAD_EXPLICIT_SCHED = global i32 0
@.str.10 = [37 x i8] c"inheritsched:PTHREAD_EXPLICIT_SCHED\0A\00"
@.str.11 = [19 x i8] c"sched_priority:%d\0A\00"
@.str.12 = [10 x i8] c"level:%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i64
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca %struct.sched_param
%9 = alloca i32
store i32 0, i32* %1
%10 = call i32 @pthread_attr_init(i32* %2)
%11 = call i32 @pthread_attr_getdetachstate(i32* %2, i32* %3)
%12 = load i32, i32* %3
%13 = load i32, i32* @PTHREAD_CREATE_JOINABLE
%14 = icmp eq i32 %12, %13
br i1 %14, label %15, label %17
15: ; preds = %0
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
br label %24
17: ; preds = %0
%18 = load i32, i32* %3
%19 = load i32, i32* @PTHREAD_CREATE_DETACHED
%20 = icmp eq i32 %18, %19
br i1 %20, label %21, label %23
21: ; preds = %17
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
br label %23
23: ; preds = %21, %17
br label %24
24: ; preds = %23, %15
%25 = call i32 @pthread_attr_getstacksize(i32* %2, i64* %4)
%26 = load i64, i64* %4
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i64 %26)
%28 = call i32 @pthread_attr_getguardsize(i32* %2, i64* %4)
%29 = load i64, i64* %4
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i64 %29)
%31 = call i32 @pthread_attr_getscope(i32* %2, i32* %5)
%32 = load i32, i32* %5
%33 = load i32, i32* @PTHREAD_SCOPE_PROCESS
%34 = icmp eq i32 %32, %33
br i1 %34, label %35, label %37
35: ; preds = %24
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
br label %37
37: ; preds = %35, %24
%38 = load i32, i32* %5
%39 = load i32, i32* @PTHREAD_SCOPE_SYSTEM
%40 = icmp eq i32 %38, %39
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
br label %43
43: ; preds = %41, %37
%44 = call i32 @pthread_attr_getschedpolicy(i32* %2, i32* %6)
%45 = load i32, i32* %6
%46 = load i32, i32* @SCHED_FIFO
%47 = icmp eq i32 %45, %46
br i1 %47, label %48, label %50
48: ; preds = %43
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
br label %64
50: ; preds = %43
%51 = load i32, i32* %6
%52 = load i32, i32* @SCHED_RR
%53 = icmp eq i32 %51, %52
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0))
br label %63
56: ; preds = %50
%57 = load i32, i32* %6
%58 = load i32, i32* @SCHED_OTHER
%59 = icmp eq i32 %57, %58
br i1 %59, label %60, label %62
60: ; preds = %56
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
br label %62
62: ; preds = %60, %56
br label %63
63: ; preds = %62, %54
br label %64
64: ; preds = %63, %48
%65 = call i32 @pthread_attr_getinheritsched(i32* %2, i32* %7)
%66 = load i32, i32* %7
%67 = load i32, i32* @PTHREAD_INHERIT_SCHED
%68 = icmp eq i32 %66, %67
br i1 %68, label %69, label %71
69: ; preds = %64
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0))
br label %78
71: ; preds = %64
%72 = load i32, i32* %7
%73 = load i32, i32* @PTHREAD_EXPLICIT_SCHED
%74 = icmp eq i32 %72, %73
br i1 %74, label %75, label %77
75: ; preds = %71
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i64 0, i64 0))
br label %77
77: ; preds = %75, %71
br label %78
78: ; preds = %77, %69
%79 = call i32 @pthread_attr_getschedparam(i32* %2, %struct.sched_param* %8)
%80 = getelementptr inbounds %struct.sched_param, %struct.sched_param* %8, i32 0, i32 0
%81 = load i32, i32* %80
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i32 %81)
%83 = call i32 @pthread_attr_destroy(i32* %2)
%84 = call i32 (...) @pthread_getconcurrency()
store i32 %84, i32* %9
%85 = load i32, i32* %9
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %85)
ret i32 0
}

LLVM IR (-O2):
%struct.sched_param = type { i32 }
@PTHREAD_CREATE_JOINABLE = global i32 0
@PTHREAD_CREATE_DETACHED = global i32 0
@.str.1 = [36 x i8] c"detachstate:PTHREAD_CREATE_DETACHED\00"
@.str.2 = [14 x i8] c"stacksize:%d\0A\00"
@.str.3 = [14 x i8] c"guardsize:%d\0A\00"
@PTHREAD_SCOPE_PROCESS = global i32 0
@PTHREAD_SCOPE_SYSTEM = global i32 0
@SCHED_FIFO = global i32 0
@SCHED_RR = global i32 0
@SCHED_OTHER = global i32 0
@PTHREAD_INHERIT_SCHED = global i32 0
@PTHREAD_EXPLICIT_SCHED = global i32 0
@.str.11 = [19 x i8] c"sched_priority:%d\0A\00"
@.str.12 = [10 x i8] c"level:%d\0A\00"
@str = [36 x i8] c"inheritsched:PTHREAD_EXPLICIT_SCHED\00"
@str.13 = [35 x i8] c"inheritsched:PTHREAD_INHERIT_SCHED\00"
@str.14 = [19 x i8] c"policy:SCHED_OTHER\00"
@str.15 = [16 x i8] c"policy:SCHED_RR\00"
@str.16 = [18 x i8] c"policy:SCHED_FIFO\00"
@str.17 = [27 x i8] c"scope:PTHREAD_SCOPE_SYSTEM\00"
@str.18 = [28 x i8] c"scope:PTHREAD_SCOPE_PROCESS\00"
@str.19 = [36 x i8] c"detachstate:PTHREAD_CREATE_JOINABLE\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i64
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca %struct.sched_param
%8 = bitcast i32* %1 to i8*
%9 = call i32 @pthread_attr_init(i32* %1)
%10 = bitcast i32* %2 to i8*
%11 = call i32 @pthread_attr_getdetachstate(i32* %1, i32* %2)
%12 = load i32, i32* %2
%13 = load i32, i32* @PTHREAD_CREATE_JOINABLE
%14 = icmp eq i32 %12, %13
br i1 %14, label %15, label %17
15: ; preds = %0
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.19, i64 0, i64 0))
br label %22
17: ; preds = %0
%18 = load i32, i32* @PTHREAD_CREATE_DETACHED
%19 = icmp eq i32 %12, %18
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
br label %22
22: ; preds = %17, %20, %15
%23 = bitcast i64* %3 to i8*
%24 = call i32 @pthread_attr_getstacksize(i32* %1, i64* %3)
%25 = load i64, i64* %3
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i64 %25)
%27 = call i32 @pthread_attr_getguardsize(i32* %1, i64* %3)
%28 = load i64, i64* %3
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i64 %28)
%30 = bitcast i32* %4 to i8*
%31 = call i32 @pthread_attr_getscope(i32* %1, i32* %4)
%32 = load i32, i32* %4
%33 = load i32, i32* @PTHREAD_SCOPE_PROCESS
%34 = icmp eq i32 %32, %33
br i1 %34, label %35, label %38
35: ; preds = %22
%36 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.18, i64 0, i64 0))
%37 = load i32, i32* %4
br label %38
38: ; preds = %35, %22
%39 = phi i32 [ %37, %35 ], [ %32, %22 ]
%40 = load i32, i32* @PTHREAD_SCOPE_SYSTEM
%41 = icmp eq i32 %39, %40
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.17, i64 0, i64 0))
br label %44
44: ; preds = %42, %38
%45 = bitcast i32* %5 to i8*
%46 = call i32 @pthread_attr_getschedpolicy(i32* %1, i32* %5)
%47 = load i32, i32* %5
%48 = load i32, i32* @SCHED_FIFO
%49 = icmp eq i32 %47, %48
br i1 %49, label %56, label %50
50: ; preds = %44
%51 = load i32, i32* @SCHED_RR
%52 = icmp eq i32 %47, %51
br i1 %52, label %56, label %53
53: ; preds = %50
%54 = load i32, i32* @SCHED_OTHER
%55 = icmp eq i32 %47, %54
br i1 %55, label %56, label %59
56: ; preds = %53, %50, %44
%57 = phi i8* [ getelementptr inbounds ([18 x i8], [18 x i8]* @str.16, i64 0, i64 0), %44 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @str.15, i64 0, i64 0), %50 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @str.14, i64 0, i64 0), %53 ]
%58 = call i32 @puts(i8* dereferenceable(1) %57)
br label %59
59: ; preds = %56, %53
%60 = bitcast i32* %6 to i8*
%61 = call i32 @pthread_attr_getinheritsched(i32* %1, i32* %6)
%62 = load i32, i32* %6
%63 = load i32, i32* @PTHREAD_INHERIT_SCHED
%64 = icmp eq i32 %62, %63
br i1 %64, label %68, label %65
65: ; preds = %59
%66 = load i32, i32* @PTHREAD_EXPLICIT_SCHED
%67 = icmp eq i32 %62, %66
br i1 %67, label %68, label %71
68: ; preds = %65, %59
%69 = phi i8* [ getelementptr inbounds ([35 x i8], [35 x i8]* @str.13, i64 0, i64 0), %59 ], [ getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0), %65 ]
%70 = call i32 @puts(i8* dereferenceable(1) %69)
br label %71
71: ; preds = %68, %65
%72 = bitcast %struct.sched_param* %7 to i8*
%73 = call i32 @pthread_attr_getschedparam(i32* %1, %struct.sched_param* %7)
%74 = getelementptr inbounds %struct.sched_param, %struct.sched_param* %7, i64 0, i32 0
%75 = load i32, i32* %74
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i32 %75)
%77 = call i32 @pthread_attr_destroy(i32* %1)
%78 = call i32 (...) @pthread_getconcurrency()
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %78)
ret i32 0
}