#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*/ booltest1(int);
int /*<<< orphan*/ booltest2(int);
int /*<<< orphan*/ fexpect(char *, int, int, int /*<<< orphan*/);
void test_bool() {
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/function.c",
          146, 0, booltest1(256));
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/function.c",
          147, 1, booltest1(257));
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/function.c",
          148, 1, booltest2(512));
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/function.c",
          149, 1, booltest2(513));
  ;
}


x86 assembly (clang, -O0):
<test_bool>:
push   %rbp
mov    %rsp,%rbp
mov    $0x100,%edi
call   1030 <booltest1@plt>
mov    %eax,%ecx
lea    0xeb9(%rip),%rdi
mov    $0x92,%esi
xor    %edx,%edx
call   1050 <fexpect@plt>
mov    $0x101,%edi
call   1030 <booltest1@plt>
mov    %eax,%ecx
lea    0xe9a(%rip),%rdi
mov    $0x93,%esi
mov    $0x1,%edx
call   1050 <fexpect@plt>
mov    $0x200,%edi
call   1040 <booltest2@plt>
mov    %eax,%ecx
lea    0xe78(%rip),%rdi
mov    $0x94,%esi
mov    $0x1,%edx
call   1050 <fexpect@plt>
mov    $0x201,%edi
call   1040 <booltest2@plt>
mov    %eax,%ecx
lea    0xe56(%rip),%rdi
mov    $0x95,%esi
mov    $0x1,%edx
call   1050 <fexpect@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_bool>:
push   %rbx
mov    $0x100,%edi
call   1030 <booltest1@plt>
lea    0xebe(%rip),%rbx
mov    %rbx,%rdi
mov    $0x92,%esi
xor    %edx,%edx
mov    %eax,%ecx
call   1050 <fexpect@plt>
mov    $0x101,%edi
call   1030 <booltest1@plt>
mov    %rbx,%rdi
mov    $0x93,%esi
mov    $0x1,%edx
mov    %eax,%ecx
call   1050 <fexpect@plt>
mov    $0x200,%edi
call   1040 <booltest2@plt>
mov    %rbx,%rdi
mov    $0x94,%esi
mov    $0x1,%edx
mov    %eax,%ecx
call   1050 <fexpect@plt>
mov    $0x201,%edi
call   1040 <booltest2@plt>
mov    %rbx,%rdi
mov    $0x95,%esi
mov    $0x1,%edx
mov    %eax,%ecx
pop    %rbx
jmp    1050 <fexpect@plt>

LLVM IR (-O0):
@.str = [131 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/function.c\00"
define void @test_bool() {
%1 = call i32 @booltest1(i32 256)
%2 = call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 146, i32 0, i32 %1)
%3 = call i32 @booltest1(i32 257)
%4 = call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 147, i32 1, i32 %3)
%5 = call i32 @booltest2(i32 512)
%6 = call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 148, i32 1, i32 %5)
%7 = call i32 @booltest2(i32 513)
%8 = call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 149, i32 1, i32 %7)
ret void
}

LLVM IR (-O2):
@.str = [131 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/function.c\00"
define void @test_bool() {
%1 = tail call i32 @booltest1(i32 256)
%2 = tail call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 146, i32 0, i32 %1)
%3 = tail call i32 @booltest1(i32 257)
%4 = tail call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 147, i32 1, i32 %3)
%5 = tail call i32 @booltest2(i32 512)
%6 = tail call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 148, i32 1, i32 %5)
%7 = tail call i32 @booltest2(i32 513)
%8 = tail call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 149, i32 1, i32 %7)
ret void
}