#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 */
typedef int /*<<< orphan*/ int8_t;

/* Variables and functions */
int /*<<< orphan*/ INT8_MAX;
int /*<<< orphan*/ INT8_MIN;
int /*<<< orphan*/ assert_int8_eq(int /*<<< orphan*/, int /*<<< orphan*/,
                                  char *, int);
int /*<<< orphan*/ assert_int8_not_eq(int /*<<< orphan*/, int /*<<< orphan*/,
                                      char *, int);
int /*<<< orphan*/ test_case_end();
int /*<<< orphan*/ test_case_start(char *);
void test_int8_asserts(void) {
  test_case_start("Test int8 asserts, these should pass");
  int8_t actual = INT8_MAX;
  int8_t expected = actual;
  (assert_int8_eq(expected, actual,
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/Rebelstack/simplyc/refs/"
                  "heads/master/simplyc_test.c",
                  160));
  expected = INT8_MIN;
  (assert_int8_not_eq(expected, actual,
                      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                      "outputs/2022-01-22/02-19-57/repos/Rebelstack/simplyc/"
                      "refs/heads/master/simplyc_test.c",
                      162));
  actual = INT8_MIN;
  expected = actual;
  (assert_int8_eq(expected, actual,
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/Rebelstack/simplyc/refs/"
                  "heads/master/simplyc_test.c",
                  166));
  expected = INT8_MAX;
  (assert_int8_not_eq(expected, actual,
                      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                      "outputs/2022-01-22/02-19-57/repos/Rebelstack/simplyc/"
                      "refs/heads/master/simplyc_test.c",
                      168));
  test_case_end();
  test_case_start("Test int8 asserts, these should fail");
  actual = INT8_MAX;
  expected = INT8_MIN;
  (assert_int8_eq(expected, actual,
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/Rebelstack/simplyc/refs/"
                  "heads/master/simplyc_test.c",
                  176));
  expected = actual;
  (assert_int8_not_eq(expected, actual,
                      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                      "outputs/2022-01-22/02-19-57/repos/Rebelstack/simplyc/"
                      "refs/heads/master/simplyc_test.c",
                      178));
  actual = INT8_MIN;
  expected = INT8_MAX;
  (assert_int8_eq(expected, actual,
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/Rebelstack/simplyc/refs/"
                  "heads/master/simplyc_test.c",
                  182));
  expected = actual;
  (assert_int8_not_eq(expected, actual,
                      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                      "outputs/2022-01-22/02-19-57/repos/Rebelstack/simplyc/"
                      "refs/heads/master/simplyc_test.c",
                      184));
  test_case_end();
}


x86 assembly (clang, -O0):
<test_int8_asserts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xeb1(%rip),%rdi
call   1040 <test_case_start@plt>
mov    0x2e7d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    0xeb2(%rip),%rdx
mov    $0xa0,%ecx
call   1060 <assert_int8_eq@plt>
mov    0x2e64(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    0xe8f(%rip),%rdx
mov    $0xa2,%ecx
call   1030 <assert_int8_not_eq@plt>
mov    0x2e41(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    0xe66(%rip),%rdx
mov    $0xa6,%ecx
call   1060 <assert_int8_eq@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    0xe43(%rip),%rdx
mov    $0xa8,%ecx
call   1030 <assert_int8_not_eq@plt>
mov    $0x0,%al
call   1050 <test_case_end@plt>
lea    0xeb9(%rip),%rdi
call   1040 <test_case_start@plt>
mov    0x2dd2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    0x2dd6(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    0xe01(%rip),%rdx
mov    $0xb0,%ecx
call   1060 <assert_int8_eq@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    0xde4(%rip),%rdx
mov    $0xb2,%ecx
call   1030 <assert_int8_not_eq@plt>
mov    0x2d96(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    0x2d7a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    0xdb5(%rip),%rdx
mov    $0xb6,%ecx
call   1060 <assert_int8_eq@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    0xd98(%rip),%rdx
mov    $0xb8,%ecx
call   1030 <assert_int8_not_eq@plt>
mov    $0x0,%al
call   1050 <test_case_end@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_int8_asserts>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
lea    0xeb2(%rip),%rdi
call   1040 <test_case_start@plt>
mov    0x2e7e(%rip),%r14
mov    (%r14),%ebp
lea    0xec1(%rip),%rbx
mov    %ebp,%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0xa0,%ecx
call   1060 <assert_int8_eq@plt>
mov    0x2e6c(%rip),%r15
mov    (%r15),%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0xa2,%ecx
call   1030 <assert_int8_not_eq@plt>
mov    (%r15),%ebp
mov    %ebp,%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0xa6,%ecx
call   1060 <assert_int8_eq@plt>
mov    (%r14),%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0xa8,%ecx
call   1030 <assert_int8_not_eq@plt>
xor    %eax,%eax
call   1050 <test_case_end@plt>
lea    0xef1(%rip),%rdi
call   1040 <test_case_start@plt>
mov    (%r14),%ebp
mov    (%r15),%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0xb0,%ecx
call   1060 <assert_int8_eq@plt>
mov    %ebp,%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0xb2,%ecx
call   1030 <assert_int8_not_eq@plt>
mov    (%r15),%ebp
mov    (%r14),%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0xb6,%ecx
call   1060 <assert_int8_eq@plt>
mov    %ebp,%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0xb8,%ecx
call   1030 <assert_int8_not_eq@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <test_case_end@plt>

LLVM IR (-O0):
@.str = [37 x i8] c"Test int8 asserts, these should pass\00"
@INT8_MAX = global i32 0
@.str.1 = [142 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Rebelstack/simplyc/refs/heads/master/simplyc_test.c\00"
@INT8_MIN = global i32 0
@.str.2 = [37 x i8] c"Test int8 asserts, these should fail\00"
define void @test_int8_asserts() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @test_case_start(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* @INT8_MAX
store i32 %4, i32* %1
%5 = load i32, i32* %1
store i32 %5, i32* %2
%6 = load i32, i32* %2
%7 = load i32, i32* %1
%8 = call i32 @assert_int8_eq(i32 %6, i32 %7, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 160)
%9 = load i32, i32* @INT8_MIN
store i32 %9, i32* %2
%10 = load i32, i32* %2
%11 = load i32, i32* %1
%12 = call i32 @assert_int8_not_eq(i32 %10, i32 %11, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 162)
%13 = load i32, i32* @INT8_MIN
store i32 %13, i32* %1
%14 = load i32, i32* %1
store i32 %14, i32* %2
%15 = load i32, i32* %2
%16 = load i32, i32* %1
%17 = call i32 @assert_int8_eq(i32 %15, i32 %16, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 166)
%18 = load i32, i32* @INT8_MAX
store i32 %18, i32* %2
%19 = load i32, i32* %2
%20 = load i32, i32* %1
%21 = call i32 @assert_int8_not_eq(i32 %19, i32 %20, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 168)
%22 = call i32 (...) @test_case_end()
%23 = call i32 @test_case_start(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%24 = load i32, i32* @INT8_MAX
store i32 %24, i32* %1
%25 = load i32, i32* @INT8_MIN
store i32 %25, i32* %2
%26 = load i32, i32* %2
%27 = load i32, i32* %1
%28 = call i32 @assert_int8_eq(i32 %26, i32 %27, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 176)
%29 = load i32, i32* %1
store i32 %29, i32* %2
%30 = load i32, i32* %2
%31 = load i32, i32* %1
%32 = call i32 @assert_int8_not_eq(i32 %30, i32 %31, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 178)
%33 = load i32, i32* @INT8_MIN
store i32 %33, i32* %1
%34 = load i32, i32* @INT8_MAX
store i32 %34, i32* %2
%35 = load i32, i32* %2
%36 = load i32, i32* %1
%37 = call i32 @assert_int8_eq(i32 %35, i32 %36, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 182)
%38 = load i32, i32* %1
store i32 %38, i32* %2
%39 = load i32, i32* %2
%40 = load i32, i32* %1
%41 = call i32 @assert_int8_not_eq(i32 %39, i32 %40, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 184)
%42 = call i32 (...) @test_case_end()
ret void
}

LLVM IR (-O2):
@.str = [37 x i8] c"Test int8 asserts, these should pass\00"
@INT8_MAX = global i32 0
@.str.1 = [142 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Rebelstack/simplyc/refs/heads/master/simplyc_test.c\00"
@INT8_MIN = global i32 0
@.str.2 = [37 x i8] c"Test int8 asserts, these should fail\00"
define void @test_int8_asserts() {
%1 = tail call i32 @test_case_start(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%2 = load i32, i32* @INT8_MAX
%3 = tail call i32 @assert_int8_eq(i32 %2, i32 %2, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 160)
%4 = load i32, i32* @INT8_MIN
%5 = tail call i32 @assert_int8_not_eq(i32 %4, i32 %2, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 162)
%6 = load i32, i32* @INT8_MIN
%7 = tail call i32 @assert_int8_eq(i32 %6, i32 %6, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 166)
%8 = load i32, i32* @INT8_MAX
%9 = tail call i32 @assert_int8_not_eq(i32 %8, i32 %6, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 168)
%10 = tail call i32 (...) @test_case_end()
%11 = tail call i32 @test_case_start(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%12 = load i32, i32* @INT8_MAX
%13 = load i32, i32* @INT8_MIN
%14 = tail call i32 @assert_int8_eq(i32 %13, i32 %12, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 176)
%15 = tail call i32 @assert_int8_not_eq(i32 %12, i32 %12, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 178)
%16 = load i32, i32* @INT8_MIN
%17 = load i32, i32* @INT8_MAX
%18 = tail call i32 @assert_int8_eq(i32 %17, i32 %16, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 182)
%19 = tail call i32 @assert_int8_not_eq(i32 %16, i32 %16, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 184)
%20 = tail call i32 (...) @test_case_end()
ret void
}