#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*/ int16_t;

/* Variables and functions */
int /*<<< orphan*/ INT16_MAX;
int /*<<< orphan*/ INT16_MIN;
int /*<<< orphan*/ assert_int16_eq(int /*<<< orphan*/, int /*<<< orphan*/,
                                   char *, int);
int /*<<< orphan*/ assert_int16_not_eq(int /*<<< orphan*/, int /*<<< orphan*/,
                                       char *, int);
int /*<<< orphan*/ test_case_end();
int /*<<< orphan*/ test_case_start(char *);
void test_int16_asserts(void) {
  test_case_start("Test int16 asserts, these should pass");
  int16_t actual = INT16_MAX;
  int16_t expected = actual;
  (assert_int16_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",
                   226));
  expected = INT16_MIN;
  (assert_int16_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",
                       228));
  actual = INT16_MIN;
  expected = actual;
  (assert_int16_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",
                   232));
  expected = INT16_MAX;
  (assert_int16_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",
                       234));
  test_case_end();
  test_case_start("Test int16 asserts, these should fail");
  actual = INT16_MAX;
  expected = INT16_MIN;
  (assert_int16_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",
                   242));
  expected = actual;
  (assert_int16_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",
                       244));
  actual = INT16_MIN;
  expected = INT16_MAX;
  (assert_int16_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",
                   248));
  expected = actual;
  (assert_int16_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",
                       250));
  test_case_end();
}


x86 assembly (clang, -O0):
<test_int16_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),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    0xeb3(%rip),%rdx
mov    $0xe2,%ecx
call   1050 <assert_int16_eq@plt>
mov    0x2e54(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    0xe90(%rip),%rdx
mov    $0xe4,%ecx
call   1060 <assert_int16_not_eq@plt>
mov    0x2e31(%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    0xe67(%rip),%rdx
mov    $0xe8,%ecx
call   1050 <assert_int16_eq@plt>
mov    0x2e10(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    0xe44(%rip),%rdx
mov    $0xea,%ecx
call   1060 <assert_int16_not_eq@plt>
mov    $0x0,%al
call   1040 <test_case_end@plt>
lea    0xeba(%rip),%rdi
call   1030 <test_case_start@plt>
mov    0x2dda(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    0x2dc6(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    0xe02(%rip),%rdx
mov    $0xf2,%ecx
call   1050 <assert_int16_eq@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    0xde5(%rip),%rdx
mov    $0xf4,%ecx
call   1060 <assert_int16_not_eq@plt>
mov    0x2d86(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    0x2d82(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    0xdb6(%rip),%rdx
mov    $0xf8,%ecx
call   1050 <assert_int16_eq@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    0xd99(%rip),%rdx
mov    $0xfa,%ecx
call   1060 <assert_int16_not_eq@plt>
mov    $0x0,%al
call   1040 <test_case_end@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_int16_asserts>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
lea    0xeb2(%rip),%rdi
call   1030 <test_case_start@plt>
mov    0x2e86(%rip),%r14
mov    (%r14),%ebp
lea    0xec2(%rip),%rbx
mov    %ebp,%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0xe2,%ecx
call   1050 <assert_int16_eq@plt>
mov    0x2e5c(%rip),%r15
mov    (%r15),%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0xe4,%ecx
call   1060 <assert_int16_not_eq@plt>
mov    (%r15),%ebp
mov    %ebp,%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0xe8,%ecx
call   1050 <assert_int16_eq@plt>
mov    (%r14),%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0xea,%ecx
call   1060 <assert_int16_not_eq@plt>
xor    %eax,%eax
call   1040 <test_case_end@plt>
lea    0xef2(%rip),%rdi
call   1030 <test_case_start@plt>
mov    (%r14),%ebp
mov    (%r15),%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0xf2,%ecx
call   1050 <assert_int16_eq@plt>
mov    %ebp,%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0xf4,%ecx
call   1060 <assert_int16_not_eq@plt>
mov    (%r15),%ebp
mov    (%r14),%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0xf8,%ecx
call   1050 <assert_int16_eq@plt>
mov    %ebp,%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0xfa,%ecx
call   1060 <assert_int16_not_eq@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <test_case_end@plt>

LLVM IR (-O0):
@.str = [38 x i8] c"Test int16 asserts, these should pass\00"
@INT16_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"
@INT16_MIN = global i32 0
@.str.2 = [38 x i8] c"Test int16 asserts, these should fail\00"
define void @test_int16_asserts() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @test_case_start(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* @INT16_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_int16_eq(i32 %6, i32 %7, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 226)
%9 = load i32, i32* @INT16_MIN
store i32 %9, i32* %2
%10 = load i32, i32* %2
%11 = load i32, i32* %1
%12 = call i32 @assert_int16_not_eq(i32 %10, i32 %11, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 228)
%13 = load i32, i32* @INT16_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_int16_eq(i32 %15, i32 %16, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 232)
%18 = load i32, i32* @INT16_MAX
store i32 %18, i32* %2
%19 = load i32, i32* %2
%20 = load i32, i32* %1
%21 = call i32 @assert_int16_not_eq(i32 %19, i32 %20, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 234)
%22 = call i32 (...) @test_case_end()
%23 = call i32 @test_case_start(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%24 = load i32, i32* @INT16_MAX
store i32 %24, i32* %1
%25 = load i32, i32* @INT16_MIN
store i32 %25, i32* %2
%26 = load i32, i32* %2
%27 = load i32, i32* %1
%28 = call i32 @assert_int16_eq(i32 %26, i32 %27, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 242)
%29 = load i32, i32* %1
store i32 %29, i32* %2
%30 = load i32, i32* %2
%31 = load i32, i32* %1
%32 = call i32 @assert_int16_not_eq(i32 %30, i32 %31, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 244)
%33 = load i32, i32* @INT16_MIN
store i32 %33, i32* %1
%34 = load i32, i32* @INT16_MAX
store i32 %34, i32* %2
%35 = load i32, i32* %2
%36 = load i32, i32* %1
%37 = call i32 @assert_int16_eq(i32 %35, i32 %36, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 248)
%38 = load i32, i32* %1
store i32 %38, i32* %2
%39 = load i32, i32* %2
%40 = load i32, i32* %1
%41 = call i32 @assert_int16_not_eq(i32 %39, i32 %40, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 250)
%42 = call i32 (...) @test_case_end()
ret void
}

LLVM IR (-O2):
@.str = [38 x i8] c"Test int16 asserts, these should pass\00"
@INT16_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"
@INT16_MIN = global i32 0
@.str.2 = [38 x i8] c"Test int16 asserts, these should fail\00"
define void @test_int16_asserts() {
%1 = tail call i32 @test_case_start(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%2 = load i32, i32* @INT16_MAX
%3 = tail call i32 @assert_int16_eq(i32 %2, i32 %2, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 226)
%4 = load i32, i32* @INT16_MIN
%5 = tail call i32 @assert_int16_not_eq(i32 %4, i32 %2, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 228)
%6 = load i32, i32* @INT16_MIN
%7 = tail call i32 @assert_int16_eq(i32 %6, i32 %6, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 232)
%8 = load i32, i32* @INT16_MAX
%9 = tail call i32 @assert_int16_not_eq(i32 %8, i32 %6, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 234)
%10 = tail call i32 (...) @test_case_end()
%11 = tail call i32 @test_case_start(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%12 = load i32, i32* @INT16_MAX
%13 = load i32, i32* @INT16_MIN
%14 = tail call i32 @assert_int16_eq(i32 %13, i32 %12, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 242)
%15 = tail call i32 @assert_int16_not_eq(i32 %12, i32 %12, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 244)
%16 = load i32, i32* @INT16_MIN
%17 = load i32, i32* @INT16_MAX
%18 = tail call i32 @assert_int16_eq(i32 %17, i32 %16, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 248)
%19 = tail call i32 @assert_int16_not_eq(i32 %16, i32 %16, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 250)
%20 = tail call i32 (...) @test_case_end()
ret void
}