#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 scalar_t__ uint8_t;

/* Variables and functions */
scalar_t__ UINT8_MAX;
int /*<<< orphan*/ assert_uint8_eq(scalar_t__, scalar_t__, char *, int);
int /*<<< orphan*/ assert_uint8_not_eq(scalar_t__, scalar_t__, char *, int);
int /*<<< orphan*/ test_case_end();
int /*<<< orphan*/ test_case_start(char *);
void test_uint8_asserts(void) {
  test_case_start("Test uint8 asserts, these should pass");
  uint8_t actual = UINT8_MAX;
  uint8_t expected = actual;
  (assert_uint8_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",
                   199));
  expected = 0;
  (assert_uint8_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",
                       201));
  test_case_end();
  test_case_start("Test uint8 asserts, these should fail");
  actual = UINT8_MAX;
  expected = 0;
  (assert_uint8_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",
                   209));
  expected = actual;
  (assert_uint8_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",
                       211));
  test_case_end();
}


x86 assembly (clang, -O0):
<test_uint8_asserts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xeb1(%rip),%rdi
call   1030 <test_case_start@plt>
mov    0x2e85(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
lea    0xead(%rip),%rdx
mov    $0xc7,%ecx
call   1050 <assert_uint8_eq@plt>
movq   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
lea    0xe8c(%rip),%rdx
mov    $0xc9,%ecx
call   1060 <assert_uint8_not_eq@plt>
mov    $0x0,%al
call   1040 <test_case_end@plt>
lea    0xf02(%rip),%rdi
call   1030 <test_case_start@plt>
mov    0x2e22(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
lea    0xe4a(%rip),%rdx
mov    $0xd1,%ecx
call   1050 <assert_uint8_eq@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
lea    0xe29(%rip),%rdx
mov    $0xd3,%ecx
call   1060 <assert_uint8_not_eq@plt>
mov    $0x0,%al
call   1040 <test_case_end@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_uint8_asserts>:
push   %r15
push   %r14
push   %rbx
lea    0xeb4(%rip),%rdi
call   1030 <test_case_start@plt>
mov    0x2e88(%rip),%r15
mov    (%r15),%rbx
lea    0xec4(%rip),%r14
mov    %rbx,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0xc7,%ecx
call   1050 <assert_uint8_eq@plt>
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0xc9,%ecx
call   1060 <assert_uint8_not_eq@plt>
xor    %eax,%eax
call   1040 <test_case_end@plt>
lea    0xf1f(%rip),%rdi
call   1030 <test_case_start@plt>
mov    (%r15),%rbx
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0xd1,%ecx
call   1050 <assert_uint8_eq@plt>
mov    %rbx,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0xd3,%ecx
call   1060 <assert_uint8_not_eq@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <test_case_end@plt>

LLVM IR (-O0):
@.str = [38 x i8] c"Test uint8 asserts, these should pass\00"
@UINT8_MAX = global i64 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"
@.str.2 = [38 x i8] c"Test uint8 asserts, these should fail\00"
define void @test_uint8_asserts() {
%1 = alloca i64
%2 = alloca i64
%3 = call i32 @test_case_start(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%4 = load i64, i64* @UINT8_MAX
store i64 %4, i64* %1
%5 = load i64, i64* %1
store i64 %5, i64* %2
%6 = load i64, i64* %2
%7 = load i64, i64* %1
%8 = call i32 @assert_uint8_eq(i64 %6, i64 %7, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 199)
store i64 0, i64* %2
%9 = load i64, i64* %2
%10 = load i64, i64* %1
%11 = call i32 @assert_uint8_not_eq(i64 %9, i64 %10, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 201)
%12 = call i32 (...) @test_case_end()
%13 = call i32 @test_case_start(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%14 = load i64, i64* @UINT8_MAX
store i64 %14, i64* %1
store i64 0, i64* %2
%15 = load i64, i64* %2
%16 = load i64, i64* %1
%17 = call i32 @assert_uint8_eq(i64 %15, i64 %16, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 209)
%18 = load i64, i64* %1
store i64 %18, i64* %2
%19 = load i64, i64* %2
%20 = load i64, i64* %1
%21 = call i32 @assert_uint8_not_eq(i64 %19, i64 %20, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 211)
%22 = call i32 (...) @test_case_end()
ret void
}

LLVM IR (-O2):
@.str = [38 x i8] c"Test uint8 asserts, these should pass\00"
@UINT8_MAX = global i64 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"
@.str.2 = [38 x i8] c"Test uint8 asserts, these should fail\00"
define void @test_uint8_asserts() {
%1 = tail call i32 @test_case_start(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%2 = load i64, i64* @UINT8_MAX
%3 = tail call i32 @assert_uint8_eq(i64 %2, i64 %2, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 199)
%4 = tail call i32 @assert_uint8_not_eq(i64 0, i64 %2, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 201)
%5 = tail call i32 (...) @test_case_end()
%6 = tail call i32 @test_case_start(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%7 = load i64, i64* @UINT8_MAX
%8 = tail call i32 @assert_uint8_eq(i64 0, i64 %7, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 209)
%9 = tail call i32 @assert_uint8_not_eq(i64 %7, i64 %7, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 211)
%10 = tail call i32 (...) @test_case_end()
ret void
}