#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*/ PRIO_PROCESS;
int do_nothing();
scalar_t__ errno;
int fork();
int getpriority(int /*<<< orphan*/, int);
int /*<<< orphan*/ kill_all(int *, int);
scalar_t__ setpriority(int /*<<< orphan*/, int, int);
int /*<<< orphan*/ strerror(scalar_t__);
int /*<<< orphan*/ test_daemon();
int /*<<< orphan*/ test_init(int, char **);
int /*<<< orphan*/ test_msg(char *, ...);
int /*<<< orphan*/ test_waitsig();
int main(int argc, char **argv) {
  int pid[3], i, parm[3], ret;
  test_init(argc, argv);
  parm[0] = -20;
  parm[1] = 19;
  parm[2] = 1;
  for (i = 0; i < 3; i++) {
    pid[i] = fork();
    if (!pid[i])
      return do_nothing();
    if (setpriority(PRIO_PROCESS, pid[i], parm[i])) {
      test_msg("ERR: %s:%d: "
               "Can't set prio %d"
               " (errno = %d (%s))\n",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/AuthenticEshkinKot/criu/refs/"
               "heads/master/test/zdtm/live/static/sched_prio00.c",
               51, i, errno, strerror(errno));
      kill_all(pid, i);
      return -1;
    }
  }
  test_daemon();
  test_waitsig();
  for (i = 0; i < 3; i++) {
    errno = 0;
    ret = getpriority(PRIO_PROCESS, pid[i]);
    if (errno) {
      test_msg("FAIL: %s:%d: "
               "No prio for task %d"
               " (errno = %d (%s))\n",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/AuthenticEshkinKot/criu/refs/"
               "heads/master/test/zdtm/live/static/sched_prio00.c",
               64, i, errno, strerror(errno));
      break;
    }
    if (ret != parm[i]) {
      test_msg("FAIL: %s:%d: "
               "Broken nice for %d"
               " (errno = %d (%s))\n",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/AuthenticEshkinKot/criu/refs/"
               "heads/master/test/zdtm/live/static/sched_prio00.c",
               69, i, errno, strerror(errno));
      break;
    }
  }
  if (i == 3)
    test_msg("PASS\n");
  kill_all(pid, 3);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1040 <test_init@plt>
movl   $0xffffffec,-0x2c(%rbp)
movl   $0x13,-0x28(%rbp)
movl   $0x1,-0x24(%rbp)
movl   $0x0,-0x20(%rbp)
cmpl   $0x3,-0x20(%rbp)
jge    12b1 <main+0x111>
mov    $0x0,%al
call   10c0 <fork@plt>
mov    %eax,%ecx
movslq -0x20(%rbp),%rax
mov    %ecx,-0x1c(%rbp,%rax,4)
movslq -0x20(%rbp),%rax
cmpl   $0x0,-0x1c(%rbp,%rax,4)
jne    1217 <main+0x77>
mov    $0x0,%al
call   1060 <do_nothing@plt>
mov    %eax,-0x4(%rbp)
jmp    13f1 <main+0x251>
mov    0x2dc2(%rip),%rax
mov    (%rax),%edi
movslq -0x20(%rbp),%rax
mov    -0x1c(%rbp,%rax,4),%esi
movslq -0x20(%rbp),%rax
mov    -0x2c(%rbp,%rax,4),%edx
call   1070 <setpriority@plt>
cmp    $0x0,%rax
je     129e <main+0xfe>
mov    -0x20(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    0x2d8c(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
mov    0x2d7e(%rip),%rax
mov    (%rax),%rdi
call   10b0 <strerror@plt>
mov    -0x3c(%rbp),%ecx
mov    -0x38(%rbp),%r8
mov    %eax,%r9d
lea    0xd8d(%rip),%rdi
lea    0xdb7(%rip),%rsi
mov    $0x33,%edx
mov    $0x0,%al
call   1080 <test_msg@plt>
lea    -0x1c(%rbp),%rdi
mov    -0x20(%rbp),%esi
call   1090 <kill_all@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13f1 <main+0x251>
jmp    12a3 <main+0x103>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11de <main+0x3e>
mov    $0x0,%al
call   1050 <test_daemon@plt>
mov    $0x0,%al
call   10a0 <test_waitsig@plt>
movl   $0x0,-0x20(%rbp)
cmpl   $0x3,-0x20(%rbp)
jge    13c4 <main+0x224>
mov    0x2d01(%rip),%rax
movq   $0x0,(%rax)
mov    0x2cfb(%rip),%rax
mov    (%rax),%edi
movslq -0x20(%rbp),%rax
mov    -0x1c(%rbp,%rax,4),%esi
call   1030 <getpriority@plt>
mov    %eax,-0x30(%rbp)
mov    0x2cda(%rip),%rax
cmpq   $0x0,(%rax)
je     1354 <main+0x1b4>
mov    -0x20(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    0x2cc3(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x48(%rbp)
mov    0x2cb5(%rip),%rax
mov    (%rax),%rdi
call   10b0 <strerror@plt>
mov    -0x4c(%rbp),%ecx
mov    -0x48(%rbp),%r8
mov    %eax,%r9d
lea    0xd9e(%rip),%rdi
lea    0xcee(%rip),%rsi
mov    $0x40,%edx
mov    $0x0,%al
call   1080 <test_msg@plt>
jmp    13c4 <main+0x224>
mov    -0x30(%rbp),%eax
movslq -0x20(%rbp),%rcx
cmp    -0x2c(%rbp,%rcx,4),%eax
je     13b1 <main+0x211>
mov    -0x20(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    0x2c66(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x58(%rbp)
mov    0x2c58(%rip),%rax
mov    (%rax),%rdi
call   10b0 <strerror@plt>
mov    -0x5c(%rbp),%ecx
mov    -0x58(%rbp),%r8
mov    %eax,%r9d
lea    0xd75(%rip),%rdi
lea    0xc91(%rip),%rsi
mov    $0x45,%edx
mov    $0x0,%al
call   1080 <test_msg@plt>
jmp    13c4 <main+0x224>
jmp    13b6 <main+0x216>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12c6 <main+0x126>
cmpl   $0x3,-0x20(%rbp)
jne    13dc <main+0x23c>
lea    0xd6c(%rip),%rdi
mov    $0x0,%al
call   1080 <test_msg@plt>
lea    -0x1c(%rbp),%rdi
mov    $0x3,%esi
call   1090 <kill_all@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
call   1040 <test_init@plt>
xor    %ebp,%ebp
xor    %eax,%eax
call   10c0 <fork@plt>
mov    %eax,0xc(%rsp)
test   %eax,%eax
je     12f6 <main+0x156>
mov    %eax,%ebx
mov    0x2e0f(%rip),%r12
mov    (%r12),%edi
mov    %eax,%esi
mov    $0xffffffec,%edx
call   1070 <setpriority@plt>
test   %rax,%rax
je     123a <main+0x9a>
mov    0x2deb(%rip),%rax
mov    (%rax),%rbx
mov    %rbx,%rdi
call   10b0 <strerror@plt>
lea    0xe01(%rip),%rdi
lea    0xe2b(%rip),%rsi
mov    $0x33,%edx
mov    %ebp,%ecx
mov    %rbx,%r8
mov    %eax,%r9d
xor    %eax,%eax
call   1080 <test_msg@plt>
lea    0xc(%rsp),%rdi
mov    %ebp,%esi
call   1090 <kill_all@plt>
mov    $0xffffffff,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
call   10c0 <fork@plt>
mov    %eax,0x10(%rsp)
test   %eax,%eax
je     12f6 <main+0x156>
mov    %eax,%r15d
mov    (%r12),%edi
mov    %eax,%esi
mov    $0x13,%edx
call   1070 <setpriority@plt>
mov    $0x1,%ebp
test   %rax,%rax
jne    11e6 <main+0x46>
xor    %eax,%eax
call   10c0 <fork@plt>
mov    %eax,0x14(%rsp)
test   %eax,%eax
je     12f6 <main+0x156>
mov    %eax,%r14d
mov    (%r12),%edi
mov    %eax,%esi
mov    $0x1,%edx
call   1070 <setpriority@plt>
mov    $0x2,%ebp
test   %rax,%rax
jne    11e6 <main+0x46>
xor    %ebp,%ebp
xor    %eax,%eax
call   1050 <test_daemon@plt>
xor    %eax,%eax
call   10a0 <test_waitsig@plt>
mov    0x2d23(%rip),%r13
movq   $0x0,0x0(%r13)
mov    (%r12),%edi
mov    %ebx,%esi
call   1030 <getpriority@plt>
mov    0x0(%r13),%rbx
test   %rbx,%rbx
je     130b <main+0x16b>
mov    %rbx,%rdi
call   10b0 <strerror@plt>
lea    0xdfa(%rip),%rdi
lea    0xd4a(%rip),%rsi
mov    $0x40,%edx
mov    %ebp,%ecx
mov    %rbx,%r8
jmp    139d <main+0x1fd>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <do_nothing@plt>
xor    %ebx,%ebx
cmp    $0xffffffec,%eax
jne    137e <main+0x1de>
movq   $0x0,0x0(%r13)
mov    (%r12),%edi
mov    %r15d,%esi
call   1030 <getpriority@plt>
mov    0x0(%r13),%rbx
mov    $0x1,%ebp
test   %rbx,%rbx
jne    12d1 <main+0x131>
mov    $0x1,%ebx
cmp    $0x13,%eax
jne    137e <main+0x1de>
movq   $0x0,0x0(%r13)
mov    (%r12),%edi
mov    %r14d,%esi
call   1030 <getpriority@plt>
mov    0x0(%r13),%rbx
mov    $0x2,%ebp
test   %rbx,%rbx
jne    12d1 <main+0x131>
mov    $0x2,%ebx
cmp    $0x1,%eax
jne    137e <main+0x1de>
lea    0xdcc(%rip),%rdi
xor    %eax,%eax
call   1080 <test_msg@plt>
jmp    13a7 <main+0x207>
xor    %edi,%edi
call   10b0 <strerror@plt>
lea    0xd82(%rip),%rdi
lea    0xc9e(%rip),%rsi
mov    $0x45,%edx
mov    %ebx,%ecx
xor    %r8d,%r8d
mov    %eax,%r9d
xor    %eax,%eax
call   1080 <test_msg@plt>
lea    0xc(%rsp),%rdi
mov    $0x3,%esi
call   1090 <kill_all@plt>
xor    %eax,%eax
jmp    122b <main+0x8b>

LLVM IR (-O0):
@PRIO_PROCESS = global i32 0
@.str = [49 x i8] c"ERR: %s:%d: Can't set prio %d (errno = %d (%s))\0A\00"
@.str.1 = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AuthenticEshkinKot/criu/refs/heads/master/test/zdtm/live/static/sched_prio00.c\00"
@errno = global i64 0
@.str.2 = [52 x i8] c"FAIL: %s:%d: No prio for task %d (errno = %d (%s))\0A\00"
@.str.3 = [51 x i8] c"FAIL: %s:%d: Broken nice for %d (errno = %d (%s))\0A\00"
@.str.4 = [6 x i8] c"PASS\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [3 x i32]
%7 = alloca i32
%8 = alloca [3 x i32]
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i32, i32* %4
%11 = load i8**, i8*** %5
%12 = call i32 @test_init(i32 %10, i8** %11)
%13 = getelementptr inbounds [3 x i32], [3 x i32]* %8, i64 0, i64 0
store i32 -20, i32* %13
%14 = getelementptr inbounds [3 x i32], [3 x i32]* %8, i64 0, i64 1
store i32 19, i32* %14
%15 = getelementptr inbounds [3 x i32], [3 x i32]* %8, i64 0, i64 2
store i32 1, i32* %15
store i32 0, i32* %7
br label %16
16: ; preds = %53, %2
%17 = load i32, i32* %7
%18 = icmp slt i32 %17, 3
br i1 %18, label %19, label %56
19: ; preds = %16
%20 = call i32 (...) @fork()
%21 = load i32, i32* %7
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 %22
store i32 %20, i32* %23
%24 = load i32, i32* %7
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 %25
%27 = load i32, i32* %26
%28 = icmp ne i32 %27, 0
br i1 %28, label %31, label %29
29: ; preds = %19
%30 = call i32 (...) @do_nothing()
store i32 %30, i32* %3
br label %102
31: ; preds = %19
%32 = load i32, i32* @PRIO_PROCESS
%33 = load i32, i32* %7
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 %34
%36 = load i32, i32* %35
%37 = load i32, i32* %7
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [3 x i32], [3 x i32]* %8, i64 0, i64 %38
%40 = load i32, i32* %39
%41 = call i64 @setpriority(i32 %32, i32 %36, i32 %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %52
43: ; preds = %31
%44 = load i32, i32* %7
%45 = load i64, i64* @errno
%46 = load i64, i64* @errno
%47 = call i32 @strerror(i64 %46)
%48 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str.1, i64 0, i64 0), i32 51, i32 %44, i64 %45, i32 %47)
%49 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%50 = load i32, i32* %7
%51 = call i32 @kill_all(i32* %49, i32 %50)
store i32 -1, i32* %3
br label %102
52: ; preds = %31
br label %53
53: ; preds = %52
%54 = load i32, i32* %7
%55 = add nsw i32 %54, 1
store i32 %55, i32* %7
br label %16
56: ; preds = %16
%57 = call i32 (...) @test_daemon()
%58 = call i32 (...) @test_waitsig()
store i32 0, i32* %7
br label %59
59: ; preds = %91, %56
%60 = load i32, i32* %7
%61 = icmp slt i32 %60, 3
br i1 %61, label %62, label %94
62: ; preds = %59
store i64 0, i64* @errno
%63 = load i32, i32* @PRIO_PROCESS
%64 = load i32, i32* %7
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 %65
%67 = load i32, i32* %66
%68 = call i32 @getpriority(i32 %63, i32 %67)
store i32 %68, i32* %9
%69 = load i64, i64* @errno
%70 = icmp ne i64 %69, 0
br i1 %70, label %71, label %77
71: ; preds = %62
%72 = load i32, i32* %7
%73 = load i64, i64* @errno
%74 = load i64, i64* @errno
%75 = call i32 @strerror(i64 %74)
%76 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str.1, i64 0, i64 0), i32 64, i32 %72, i64 %73, i32 %75)
br label %94
77: ; preds = %62
%78 = load i32, i32* %9
%79 = load i32, i32* %7
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [3 x i32], [3 x i32]* %8, i64 0, i64 %80
%82 = load i32, i32* %81
%83 = icmp ne i32 %78, %82
br i1 %83, label %84, label %90
84: ; preds = %77
%85 = load i32, i32* %7
%86 = load i64, i64* @errno
%87 = load i64, i64* @errno
%88 = call i32 @strerror(i64 %87)
%89 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str.1, i64 0, i64 0), i32 69, i32 %85, i64 %86, i32 %88)
br label %94
90: ; preds = %77
br label %91
91: ; preds = %90
%92 = load i32, i32* %7
%93 = add nsw i32 %92, 1
store i32 %93, i32* %7
br label %59
94: ; preds = %84, %71, %59
%95 = load i32, i32* %7
%96 = icmp eq i32 %95, 3
br i1 %96, label %97, label %99
97: ; preds = %94
%98 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %99
99: ; preds = %97, %94
%100 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%101 = call i32 @kill_all(i32* %100, i32 3)
store i32 0, i32* %3
br label %102
102: ; preds = %99, %43, %29
%103 = load i32, i32* %3
ret i32 %103
}

LLVM IR (-O2):
@PRIO_PROCESS = global i32 0
@.str = [49 x i8] c"ERR: %s:%d: Can't set prio %d (errno = %d (%s))\0A\00"
@.str.1 = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AuthenticEshkinKot/criu/refs/heads/master/test/zdtm/live/static/sched_prio00.c\00"
@errno = global i64 0
@.str.2 = [52 x i8] c"FAIL: %s:%d: No prio for task %d (errno = %d (%s))\0A\00"
@.str.3 = [51 x i8] c"FAIL: %s:%d: Broken nice for %d (errno = %d (%s))\0A\00"
@.str.4 = [6 x i8] c"PASS\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca [3 x i32]
%4 = bitcast [3 x i32]* %3 to i8*
%5 = tail call i32 @test_init(i32 %0, i8** %1)
%6 = tail call i32 (...) @fork()
%7 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
store i32 %6, i32* %7
%8 = icmp eq i32 %6, 0
br i1 %8, label %9, label %11
9: ; preds = %29, %21, %2
%10 = tail call i32 (...) @do_nothing()
br label %73
11: ; preds = %2
%12 = load i32, i32* @PRIO_PROCESS
%13 = tail call i64 @setpriority(i32 %12, i32 %6, i32 -20)
%14 = icmp eq i64 %13, 0
br i1 %14, label %21, label %15
15: ; preds = %33, %25, %11
%16 = phi i32 [ 0, %11 ], [ 1, %25 ], [ 2, %33 ]
%17 = load i64, i64* @errno
%18 = tail call i32 @strerror(i64 %17)
%19 = tail call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str.1, i64 0, i64 0), i32 51, i32 %16, i64 %17, i32 %18)
%20 = call i32 @kill_all(i32* %7, i32 %16)
br label %73
21: ; preds = %11
%22 = tail call i32 (...) @fork()
%23 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 1
store i32 %22, i32* %23
%24 = icmp eq i32 %22, 0
br i1 %24, label %9, label %25
25: ; preds = %21
%26 = load i32, i32* @PRIO_PROCESS
%27 = tail call i64 @setpriority(i32 %26, i32 %22, i32 19)
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %15
29: ; preds = %25
%30 = tail call i32 (...) @fork()
%31 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
store i32 %30, i32* %31
%32 = icmp eq i32 %30, 0
br i1 %32, label %9, label %33
33: ; preds = %29
%34 = load i32, i32* @PRIO_PROCESS
%35 = tail call i64 @setpriority(i32 %34, i32 %30, i32 1)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %15
37: ; preds = %33
%38 = tail call i32 (...) @test_daemon()
%39 = tail call i32 (...) @test_waitsig()
store i64 0, i64* @errno
%40 = load i32, i32* @PRIO_PROCESS
%41 = tail call i32 @getpriority(i32 %40, i32 %6)
%42 = load i64, i64* @errno
%43 = icmp eq i64 %42, 0
br i1 %43, label %49, label %44
44: ; preds = %62, %55, %37
%45 = phi i32 [ 0, %37 ], [ 1, %55 ], [ 2, %62 ]
%46 = phi i64 [ %42, %37 ], [ %58, %55 ], [ %65, %62 ]
%47 = tail call i32 @strerror(i64 %46)
%48 = tail call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str.1, i64 0, i64 0), i32 64, i32 %45, i64 %46, i32 %47)
br label %71
49: ; preds = %37
%50 = icmp eq i32 %41, -20
br i1 %50, label %55, label %51
51: ; preds = %67, %60, %49
%52 = phi i32 [ 0, %49 ], [ 1, %60 ], [ 2, %67 ]
%53 = tail call i32 @strerror(i64 0)
%54 = tail call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str.1, i64 0, i64 0), i32 69, i32 %52, i64 0, i32 %53)
br label %71
55: ; preds = %49
store i64 0, i64* @errno
%56 = load i32, i32* @PRIO_PROCESS
%57 = tail call i32 @getpriority(i32 %56, i32 %22)
%58 = load i64, i64* @errno
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %44
60: ; preds = %55
%61 = icmp eq i32 %57, 19
br i1 %61, label %62, label %51
62: ; preds = %60
store i64 0, i64* @errno
%63 = load i32, i32* @PRIO_PROCESS
%64 = tail call i32 @getpriority(i32 %63, i32 %30)
%65 = load i64, i64* @errno
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %44
67: ; preds = %62
%68 = icmp eq i32 %64, 1
br i1 %68, label %69, label %51
69: ; preds = %67
%70 = tail call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %71
71: ; preds = %44, %51, %69
%72 = call i32 @kill_all(i32* %7, i32 3)
br label %73
73: ; preds = %71, %15, %9
%74 = phi i32 [ -1, %15 ], [ %10, %9 ], [ 0, %71 ]
ret i32 %74
}