#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 *, char *, int);
int test_pool(int, int);
int main() {
  if (test_pool(4, 8) == -1)
    printf("test_pool failure %s %d \n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/jobtalle/pool/refs/heads/master/test.c",
           43);
  if (test_pool(8, 8) == -1)
    printf("test_pool failure %s %d \n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/jobtalle/pool/refs/heads/master/test.c",
           46);
  if (test_pool(16, 8) == -1)
    printf("test_pool failure %s %d \n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/jobtalle/pool/refs/heads/master/test.c",
           49);
  if (test_pool(32, 8) == -1)
    printf("test_pool failure %s %d \n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/jobtalle/pool/refs/heads/master/test.c",
           52);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x4,%edi
mov    $0x8,%esi
call   1030 <test_pool@plt>
cmp    $0xffffffff,%eax
jne    115f <main+0x3f>
lea    0xeb2(%rip),%rdi
lea    0xec5(%rip),%rsi
mov    $0x2b,%edx
call   1040 <printf@plt>
mov    $0x8,%esi
mov    %esi,%edi
call   1030 <test_pool@plt>
cmp    $0xffffffff,%eax
jne    118c <main+0x6c>
lea    0xe85(%rip),%rdi
lea    0xe98(%rip),%rsi
mov    $0x2e,%edx
call   1040 <printf@plt>
mov    $0x10,%edi
mov    $0x8,%esi
call   1030 <test_pool@plt>
cmp    $0xffffffff,%eax
jne    11bc <main+0x9c>
lea    0xe55(%rip),%rdi
lea    0xe68(%rip),%rsi
mov    $0x31,%edx
call   1040 <printf@plt>
mov    $0x20,%edi
mov    $0x8,%esi
call   1030 <test_pool@plt>
cmp    $0xffffffff,%eax
jne    11ec <main+0xcc>
lea    0xe25(%rip),%rdi
lea    0xe38(%rip),%rsi
mov    $0x34,%edx
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x4,%edi
mov    $0x8,%esi
call   1030 <test_pool@plt>
cmp    $0xffffffff,%eax
jne    114d <main+0x2d>
lea    0xec4(%rip),%rdi
lea    0xed7(%rip),%rsi
mov    $0x2b,%edx
call   1040 <printf@plt>
mov    $0x8,%edi
mov    $0x8,%esi
call   1030 <test_pool@plt>
cmp    $0xffffffff,%eax
jne    1179 <main+0x59>
lea    0xe98(%rip),%rdi
lea    0xeab(%rip),%rsi
mov    $0x2e,%edx
call   1040 <printf@plt>
mov    $0x10,%edi
mov    $0x8,%esi
call   1030 <test_pool@plt>
cmp    $0xffffffff,%eax
jne    11a5 <main+0x85>
lea    0xe6c(%rip),%rdi
lea    0xe7f(%rip),%rsi
mov    $0x31,%edx
call   1040 <printf@plt>
mov    $0x20,%edi
mov    $0x8,%esi
call   1030 <test_pool@plt>
cmp    $0xffffffff,%eax
jne    11d1 <main+0xb1>
lea    0xe40(%rip),%rdi
lea    0xe53(%rip),%rsi
mov    $0x34,%edx
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [26 x i8] c"test_pool failure %s %d \0A\00"
@.str.1 = [129 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jobtalle/pool/refs/heads/master/test.c\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @test_pool(i32 4, i32 8)
%3 = icmp eq i32 %2, -1
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str.1, i64 0, i64 0), i32 43)
br label %6
6: ; preds = %4, %0
%7 = call i32 @test_pool(i32 8, i32 8)
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str.1, i64 0, i64 0), i32 46)
br label %11
11: ; preds = %9, %6
%12 = call i32 @test_pool(i32 16, i32 8)
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str.1, i64 0, i64 0), i32 49)
br label %16
16: ; preds = %14, %11
%17 = call i32 @test_pool(i32 32, i32 8)
%18 = icmp eq i32 %17, -1
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str.1, i64 0, i64 0), i32 52)
br label %21
21: ; preds = %19, %16
ret i32 0
}

LLVM IR (-O2):
@.str = [26 x i8] c"test_pool failure %s %d \0A\00"
@.str.1 = [129 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jobtalle/pool/refs/heads/master/test.c\00"
define i32 @main() {
%1 = tail call i32 @test_pool(i32 4, i32 8)
%2 = icmp eq i32 %1, -1
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str.1, i64 0, i64 0), i32 43)
br label %5
5: ; preds = %3, %0
%6 = tail call i32 @test_pool(i32 8, i32 8)
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str.1, i64 0, i64 0), i32 46)
br label %10
10: ; preds = %8, %5
%11 = tail call i32 @test_pool(i32 16, i32 8)
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str.1, i64 0, i64 0), i32 49)
br label %15
15: ; preds = %13, %10
%16 = tail call i32 @test_pool(i32 32, i32 8)
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str.1, i64 0, i64 0), i32 52)
br label %20
20: ; preds = %18, %15
ret i32 0
}