#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__ uint16_t;

/* Variables and functions */
scalar_t__ UINT16_MAX;
int /*<<< orphan*/ assert_uint16_eq(scalar_t__, scalar_t__, char *, int);
int /*<<< orphan*/ assert_uint16_not_eq(scalar_t__, scalar_t__, char *, int);
int /*<<< orphan*/ test_case_end();
int /*<<< orphan*/ test_case_start(char *);
void test_uint16_asserts(void) {
  test_case_start("Test uint16 asserts, these should pass");
  uint16_t actual = UINT16_MAX;
  uint16_t expected = actual;
  (assert_uint16_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",
                    265));
  expected = 0;
  (assert_uint16_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",
                        267));
  test_case_end();
  test_case_start("Test uint16 asserts, these should fail");
  actual = 0;
  expected = UINT16_MAX;
  (assert_uint16_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",
                    275));
  expected = actual;
  (assert_uint16_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",
                        277));
  test_case_end();
}


x86 assembly (clang, -O0):
<test_uint16_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    0xeae(%rip),%rdx
mov    $0x109,%ecx
call   1050 <assert_uint16_eq@plt>
movq   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
lea    0xe8d(%rip),%rdx
mov    $0x10b,%ecx
call   1060 <assert_uint16_not_eq@plt>
mov    $0x0,%al
call   1040 <test_case_end@plt>
lea    0xf03(%rip),%rdi
call   1030 <test_case_start@plt>
movq   $0x0,-0x8(%rbp)
mov    0x2e1a(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
lea    0xe4b(%rip),%rdx
mov    $0x113,%ecx
call   1050 <assert_uint16_eq@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
lea    0xe2a(%rip),%rdx
mov    $0x115,%ecx
call   1060 <assert_uint16_not_eq@plt>
mov    $0x0,%al
call   1040 <test_case_end@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_uint16_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    0xec5(%rip),%r14
mov    %rbx,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x109,%ecx
call   1050 <assert_uint16_eq@plt>
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x10b,%ecx
call   1060 <assert_uint16_not_eq@plt>
xor    %eax,%eax
call   1040 <test_case_end@plt>
lea    0xf20(%rip),%rdi
call   1030 <test_case_start@plt>
mov    (%r15),%rdi
xor    %esi,%esi
mov    %r14,%rdx
mov    $0x113,%ecx
call   1050 <assert_uint16_eq@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    %r14,%rdx
mov    $0x115,%ecx
call   1060 <assert_uint16_not_eq@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <test_case_end@plt>

LLVM IR (-O0):
@.str = [39 x i8] c"Test uint16 asserts, these should pass\00"
@UINT16_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 = [39 x i8] c"Test uint16 asserts, these should fail\00"
define void @test_uint16_asserts() {
%1 = alloca i64
%2 = alloca i64
%3 = call i32 @test_case_start(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%4 = load i64, i64* @UINT16_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_uint16_eq(i64 %6, i64 %7, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 265)
store i64 0, i64* %2
%9 = load i64, i64* %2
%10 = load i64, i64* %1
%11 = call i32 @assert_uint16_not_eq(i64 %9, i64 %10, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 267)
%12 = call i32 (...) @test_case_end()
%13 = call i32 @test_case_start(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0))
store i64 0, i64* %1
%14 = load i64, i64* @UINT16_MAX
store i64 %14, i64* %2
%15 = load i64, i64* %2
%16 = load i64, i64* %1
%17 = call i32 @assert_uint16_eq(i64 %15, i64 %16, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 275)
%18 = load i64, i64* %1
store i64 %18, i64* %2
%19 = load i64, i64* %2
%20 = load i64, i64* %1
%21 = call i32 @assert_uint16_not_eq(i64 %19, i64 %20, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 277)
%22 = call i32 (...) @test_case_end()
ret void
}

LLVM IR (-O2):
@.str = [39 x i8] c"Test uint16 asserts, these should pass\00"
@UINT16_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 = [39 x i8] c"Test uint16 asserts, these should fail\00"
define void @test_uint16_asserts() {
%1 = tail call i32 @test_case_start(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%2 = load i64, i64* @UINT16_MAX
%3 = tail call i32 @assert_uint16_eq(i64 %2, i64 %2, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 265)
%4 = tail call i32 @assert_uint16_not_eq(i64 0, i64 %2, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 267)
%5 = tail call i32 (...) @test_case_end()
%6 = tail call i32 @test_case_start(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0))
%7 = load i64, i64* @UINT16_MAX
%8 = tail call i32 @assert_uint16_eq(i64 %7, i64 0, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 275)
%9 = tail call i32 @assert_uint16_not_eq(i64 0, i64 0, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 277)
%10 = tail call i32 (...) @test_case_end()
ret void
}