#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_EXPLICIT_SCHED;
int PTHREAD_INHERIT_SCHED;
int SCHED_FIFO;
int SCHED_OTHER;
int /*<<< orphan*/ SCHED_RR;
int errno;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ pthread_attr_destroy(int /*<<< orphan*/ *);
int /*<<< orphan*/ pthread_attr_getinheritsched(int /*<<< orphan*/ *, int *);
int /*<<< orphan*/ pthread_attr_init(int /*<<< orphan*/ *);
scalar_t__ pthread_attr_setinheritsched(int /*<<< orphan*/ *, int);
int /*<<< orphan*/ pthread_attr_setschedparam(int /*<<< orphan*/ *,
                                              struct sched_param *);
int pthread_attr_setschedpolicy(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ sched_get_priority_max(int);
void *child_thread(void *arg) {
  int policy;
  int max_priority = 0, min_priority = 0;
  struct sched_param param;
  pthread_attr_t attr;
  pthread_attr_init(&attr);
  if (pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED) != 0) {
    printf("setinheritsched %d\n", errno);
  }
  pthread_attr_getinheritsched(&attr, &policy);
  printf("getinheritsched %s\n",
         policy == PTHREAD_EXPLICIT_SCHED  ? "PTHREAD_EXPLICIT_SCHED"
         : policy == PTHREAD_INHERIT_SCHED ? "PTHREAD_INHERIT_SCHED"
                                           : "error");
  int res = pthread_attr_setschedpolicy(&attr, SCHED_RR);
  if (res != 0) {
    printf("policy:errno %d,real value%d\n", errno, res);
  }
  printf("res %d\n", res);
  if (res != 0) {
    printf("policy:errno %d,%d\n", errno, res);
  }
  printf("schedpolicy %s\n", policy == SCHED_FIFO    ? "SCHED_FIFO"
                             : policy == SCHED_FIFO  ? "SCHED_FIFO"
                             : policy == SCHED_OTHER ? "SCHED_OTHER"
                                                     : "err");
  sched_get_priority_max(max_priority);
  sched_get_priority_max(min_priority);
  printf("max_priority:%d\n", max_priority);
  printf("min_priority:%d\n", min_priority);
  param.sched_priority = max_priority;
  pthread_attr_setschedparam(&attr, &param);
  printf("sched_priority:%d\n", param.sched_priority);
  pthread_attr_destroy(&attr);
  return 0;
}


x86 assembly (clang, -O0):
<child_thread>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
lea    -0x1c(%rbp),%rdi
call   1060 <pthread_attr_init@plt>
mov    0x2e3e(%rip),%rax
mov    (%rax),%esi
lea    -0x1c(%rbp),%rdi
call   1030 <pthread_attr_setinheritsched@plt>
cmp    $0x0,%rax
je     11d6 <child_thread+0x56>
mov    0x2e02(%rip),%rax
mov    (%rax),%esi
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x1c(%rbp),%rdi
lea    -0xc(%rbp),%rsi
call   1070 <pthread_attr_getinheritsched@plt>
mov    -0xc(%rbp),%eax
mov    0x2dfb(%rip),%rcx
cmp    (%rcx),%eax
jne    1205 <child_thread+0x85>
lea    0xe2c(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    1229 <child_thread+0xa9>
mov    -0xc(%rbp),%edx
mov    0x2db1(%rip),%rax
mov    (%rax),%esi
lea    0xe3d(%rip),%rax
lea    0xe20(%rip),%rcx
cmp    %esi,%edx
cmove  %rcx,%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rsi
lea    0xde0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2d6e(%rip),%rax
mov    (%rax),%esi
lea    -0x1c(%rbp),%rdi
call   1050 <pthread_attr_setschedpolicy@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
je     1274 <child_thread+0xf4>
mov    0x2d67(%rip),%rax
mov    (%rax),%esi
mov    -0x20(%rbp),%edx
lea    0xdee(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%esi
lea    0xdfb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x0,-0x20(%rbp)
je     12a9 <child_thread+0x129>
mov    0x2d32(%rip),%rax
mov    (%rax),%esi
mov    -0x20(%rbp),%edx
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
mov    0x2d2d(%rip),%rcx
cmp    (%rcx),%eax
jne    12cb <child_thread+0x14b>
lea    0xde3(%rip),%rax
mov    %rax,-0x30(%rbp)
jmp    1319 <child_thread+0x199>
mov    -0xc(%rbp),%eax
mov    0x2d0b(%rip),%rcx
cmp    (%rcx),%eax
jne    12ed <child_thread+0x16d>
lea    0xdc1(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    1311 <child_thread+0x191>
mov    -0xc(%rbp),%edx
mov    0x2cd9(%rip),%rax
mov    (%rax),%esi
lea    0xdbc(%rip),%rax
lea    0xda9(%rip),%rcx
cmp    %esi,%edx
cmove  %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rsi
lea    0xd71(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%edi
call   10a0 <sched_get_priority_max@plt>
mov    -0x14(%rbp),%edi
call   10a0 <sched_get_priority_max@plt>
mov    -0x10(%rbp),%esi
lea    0xd7b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xd7b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%eax
mov    %eax,-0x18(%rbp)
lea    -0x1c(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1090 <pthread_attr_setschedparam@plt>
mov    -0x18(%rbp),%esi
lea    0xd68(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x1c(%rbp),%rdi
call   1080 <pthread_attr_destroy@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<child_thread>:
push   %r14
push   %rbx
sub    $0x18,%rsp
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1060 <pthread_attr_init@plt>
mov    0x2e4d(%rip),%r14
mov    (%r14),%esi
mov    %rbx,%rdi
call   1030 <pthread_attr_setinheritsched@plt>
test   %rax,%rax
je     11c2 <child_thread+0x42>
mov    0x2e16(%rip),%rax
mov    (%rax),%esi
lea    0xe45(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10(%rsp),%rbx
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <pthread_attr_getinheritsched@plt>
mov    0x14(%rsp),%eax
mov    0x2de1(%rip),%rcx
cmp    (%rcx),%eax
lea    0xe57(%rip),%rcx
lea    0xe66(%rip),%rdx
cmove  %rcx,%rdx
cmp    (%r14),%eax
lea    0xe2b(%rip),%rsi
cmovne %rdx,%rsi
lea    0xe0c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2d9a(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1050 <pthread_attr_setschedpolicy@plt>
test   %eax,%eax
je     1265 <child_thread+0xe5>
mov    %eax,%ebx
mov    0x2d9b(%rip),%r14
mov    (%r14),%esi
lea    0xe24(%rip),%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe32(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r14),%esi
lea    0xe27(%rip),%rdi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1275 <child_thread+0xf5>
lea    0xe0d(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%eax
mov    0x2d60(%rip),%rcx
mov    0x2d49(%rip),%rdx
cmp    (%rdx),%eax
lea    0xe20(%rip),%rdx
lea    0xe25(%rip),%rdi
cmove  %rdx,%rdi
cmp    (%rcx),%eax
lea    0xe01(%rip),%rsi
cmovne %rdi,%rsi
lea    0xde6(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
call   10a0 <sched_get_priority_max@plt>
xor    %edi,%edi
call   10a0 <sched_get_priority_max@plt>
lea    0xdf5(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdf6(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x8(%rsp)
lea    0x10(%rsp),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1090 <pthread_attr_setschedparam@plt>
mov    0x8(%rsp),%esi
lea    0xdd9(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1080 <pthread_attr_destroy@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.sched_param = type { i32 }
@PTHREAD_EXPLICIT_SCHED = global i32 0
@.str = [20 x i8] c"setinheritsched %d\0A\00"
@errno = global i32 0
@.str.1 = [20 x i8] c"getinheritsched %s\0A\00"
@.str.2 = [23 x i8] c"PTHREAD_EXPLICIT_SCHED\00"
@PTHREAD_INHERIT_SCHED = global i32 0
@.str.3 = [22 x i8] c"PTHREAD_INHERIT_SCHED\00"
@.str.4 = [6 x i8] c"error\00"
@SCHED_RR = global i32 0
@.str.5 = [30 x i8] c"policy:errno %d,real value%d\0A\00"
@.str.6 = [8 x i8] c"res %d\0A\00"
@.str.7 = [20 x i8] c"policy:errno %d,%d\0A\00"
@.str.8 = [16 x i8] c"schedpolicy %s\0A\00"
@SCHED_FIFO = global i32 0
@.str.9 = [11 x i8] c"SCHED_FIFO\00"
@SCHED_OTHER = global i32 0
@.str.10 = [12 x i8] c"SCHED_OTHER\00"
@.str.11 = [4 x i8] c"err\00"
@.str.12 = [17 x i8] c"max_priority:%d\0A\00"
@.str.13 = [17 x i8] c"min_priority:%d\0A\00"
@.str.14 = [19 x i8] c"sched_priority:%d\0A\00"
define i8* @child_thread(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca %struct.sched_param
%7 = alloca i32
%8 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %4
store i32 0, i32* %5
%9 = call i32 @pthread_attr_init(i32* %7)
%10 = load i32, i32* @PTHREAD_EXPLICIT_SCHED
%11 = call i64 @pthread_attr_setinheritsched(i32* %7, i32 %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %1
%14 = load i32, i32* @errno
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %14)
br label %16
16: ; preds = %13, %1
%17 = call i32 @pthread_attr_getinheritsched(i32* %7, i32* %3)
%18 = load i32, i32* %3
%19 = load i32, i32* @PTHREAD_EXPLICIT_SCHED
%20 = icmp eq i32 %18, %19
br i1 %20, label %21, label %22
21: ; preds = %16
br label %28
22: ; preds = %16
%23 = load i32, i32* %3
%24 = load i32, i32* @PTHREAD_INHERIT_SCHED
%25 = icmp eq i32 %23, %24
%26 = zext i1 %25 to i64
%27 = select i1 %25, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
br label %28
28: ; preds = %22, %21
%29 = phi i8* [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), %21 ], [ %27, %22 ]
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i8* %29)
%31 = load i32, i32* @SCHED_RR
%32 = call i32 @pthread_attr_setschedpolicy(i32* %7, i32 %31)
store i32 %32, i32* %8
%33 = load i32, i32* %8
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %39
35: ; preds = %28
%36 = load i32, i32* @errno
%37 = load i32, i32* %8
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 %36, i32 %37)
br label %39
39: ; preds = %35, %28
%40 = load i32, i32* %8
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 %40)
%42 = load i32, i32* %8
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %48
44: ; preds = %39
%45 = load i32, i32* @errno
%46 = load i32, i32* %8
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %45, i32 %46)
br label %48
48: ; preds = %44, %39
%49 = load i32, i32* %3
%50 = load i32, i32* @SCHED_FIFO
%51 = icmp eq i32 %49, %50
br i1 %51, label %52, label %53
52: ; preds = %48
br label %66
53: ; preds = %48
%54 = load i32, i32* %3
%55 = load i32, i32* @SCHED_FIFO
%56 = icmp eq i32 %54, %55
br i1 %56, label %57, label %58
57: ; preds = %53
br label %64
58: ; preds = %53
%59 = load i32, i32* %3
%60 = load i32, i32* @SCHED_OTHER
%61 = icmp eq i32 %59, %60
%62 = zext i1 %61 to i64
%63 = select i1 %61, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0)
br label %64
64: ; preds = %58, %57
%65 = phi i8* [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), %57 ], [ %63, %58 ]
br label %66
66: ; preds = %64, %52
%67 = phi i8* [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), %52 ], [ %65, %64 ]
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i8* %67)
%69 = load i32, i32* %4
%70 = call i32 @sched_get_priority_max(i32 %69)
%71 = load i32, i32* %5
%72 = call i32 @sched_get_priority_max(i32 %71)
%73 = load i32, i32* %4
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i32 %73)
%75 = load i32, i32* %5
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0), i32 %75)
%77 = load i32, i32* %4
%78 = getelementptr inbounds %struct.sched_param, %struct.sched_param* %6, i32 0, i32 0
store i32 %77, i32* %78
%79 = call i32 @pthread_attr_setschedparam(i32* %7, %struct.sched_param* %6)
%80 = getelementptr inbounds %struct.sched_param, %struct.sched_param* %6, i32 0, i32 0
%81 = load i32, i32* %80
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0), i32 %81)
%83 = call i32 @pthread_attr_destroy(i32* %7)
ret i8* null
}

LLVM IR (-O2):
%struct.sched_param = type { i32 }
@PTHREAD_EXPLICIT_SCHED = global i32 0
@.str = [20 x i8] c"setinheritsched %d\0A\00"
@errno = global i32 0
@.str.1 = [20 x i8] c"getinheritsched %s\0A\00"
@.str.2 = [23 x i8] c"PTHREAD_EXPLICIT_SCHED\00"
@PTHREAD_INHERIT_SCHED = global i32 0
@.str.3 = [22 x i8] c"PTHREAD_INHERIT_SCHED\00"
@.str.4 = [6 x i8] c"error\00"
@SCHED_RR = global i32 0
@.str.5 = [30 x i8] c"policy:errno %d,real value%d\0A\00"
@.str.6 = [8 x i8] c"res %d\0A\00"
@.str.7 = [20 x i8] c"policy:errno %d,%d\0A\00"
@.str.8 = [16 x i8] c"schedpolicy %s\0A\00"
@SCHED_FIFO = global i32 0
@.str.9 = [11 x i8] c"SCHED_FIFO\00"
@SCHED_OTHER = global i32 0
@.str.10 = [12 x i8] c"SCHED_OTHER\00"
@.str.11 = [4 x i8] c"err\00"
@.str.12 = [17 x i8] c"max_priority:%d\0A\00"
@.str.13 = [17 x i8] c"min_priority:%d\0A\00"
@.str.14 = [19 x i8] c"sched_priority:%d\0A\00"
define noalias i8* @child_thread(i8* nocapture readnone %0) {
%2 = alloca i32
%3 = alloca %struct.sched_param
%4 = alloca i32
%5 = bitcast i32* %2 to i8*
%6 = bitcast %struct.sched_param* %3 to i8*
%7 = bitcast i32* %4 to i8*
%8 = call i32 @pthread_attr_init(i32* %4)
%9 = load i32, i32* @PTHREAD_EXPLICIT_SCHED
%10 = call i64 @pthread_attr_setinheritsched(i32* %4, i32 %9)
%11 = icmp eq i64 %10, 0
br i1 %11, label %15, label %12
12: ; preds = %1
%13 = load i32, i32* @errno
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %13)
br label %15
15: ; preds = %12, %1
%16 = call i32 @pthread_attr_getinheritsched(i32* %4, i32* %2)
%17 = load i32, i32* %2
%18 = load i32, i32* @PTHREAD_EXPLICIT_SCHED
%19 = icmp eq i32 %17, %18
%20 = load i32, i32* @PTHREAD_INHERIT_SCHED
%21 = icmp eq i32 %17, %20
%22 = select i1 %21, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%23 = select i1 %19, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* %22
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i8* %23)
%25 = load i32, i32* @SCHED_RR
%26 = call i32 @pthread_attr_setschedpolicy(i32* %4, i32 %25)
%27 = icmp eq i32 %26, 0
br i1 %27, label %34, label %28
28: ; preds = %15
%29 = load i32, i32* @errno
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 %29, i32 %26)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 %26)
%32 = load i32, i32* @errno
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %32, i32 %26)
br label %36
34: ; preds = %15
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 0)
br label %36
36: ; preds = %34, %28
%37 = load i32, i32* %2
%38 = load i32, i32* @SCHED_FIFO
%39 = icmp eq i32 %37, %38
%40 = load i32, i32* @SCHED_OTHER
%41 = icmp eq i32 %37, %40
%42 = select i1 %41, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0)
%43 = select i1 %39, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* %42
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i8* %43)
%45 = call i32 @sched_get_priority_max(i32 0)
%46 = call i32 @sched_get_priority_max(i32 0)
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i32 0)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0), i32 0)
%49 = getelementptr inbounds %struct.sched_param, %struct.sched_param* %3, i64 0, i32 0
store i32 0, i32* %49
%50 = call i32 @pthread_attr_setschedparam(i32* %4, %struct.sched_param* %3)
%51 = load i32, i32* %49
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0), i32 %51)
%53 = call i32 @pthread_attr_destroy(i32* %4)
ret i8* null
}