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

/* Variables and functions */
int /*<<< orphan*/ INT32_MAX;
int /*<<< orphan*/ INT32_MIN;
int /*<<< orphan*/ assert_int32_eq(int /*<<< orphan*/, int /*<<< orphan*/,
                                   char *, int);
int /*<<< orphan*/ assert_int32_not_eq(int /*<<< orphan*/, int /*<<< orphan*/,
                                       char *, int);
int /*<<< orphan*/ test_case_end();
int /*<<< orphan*/ test_case_start(char *);
void test_int32_asserts(void) {
  test_case_start("Test int32 asserts, these should pass");
  int32_t actual = INT32_MAX;
  int32_t expected = actual;
  (assert_int32_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",
                   292));
  expected = INT32_MIN;
  (assert_int32_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",
                       294));
  actual = INT32_MIN;
  expected = actual;
  (assert_int32_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",
                   298));
  expected = INT32_MAX;
  (assert_int32_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",
                       300));
  test_case_end();
  test_case_start("Test int32 asserts, these should fail");
  actual = INT32_MAX;
  expected = INT32_MIN;
  (assert_int32_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",
                   308));
  expected = actual;
  (assert_int32_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",
                       310));
  actual = INT32_MIN;
  expected = INT32_MAX;
  (assert_int32_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",
                   314));
  expected = actual;
  (assert_int32_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",
                       316));
  test_case_end();
}


x86 assembly (clang, -O0):
<test_int32_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    $0x124,%ecx
call   1050 <assert_int32_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    $0x126,%ecx
call   1060 <assert_int32_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    $0x12a,%ecx
call   1050 <assert_int32_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    $0x12c,%ecx
call   1060 <assert_int32_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    $0x134,%ecx
call   1050 <assert_int32_eq@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    0xde5(%rip),%rdx
mov    $0x136,%ecx
call   1060 <assert_int32_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    $0x13a,%ecx
call   1050 <assert_int32_eq@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    0xd99(%rip),%rdx
mov    $0x13c,%ecx
call   1060 <assert_int32_not_eq@plt>
mov    $0x0,%al
call   1040 <test_case_end@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_int32_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    $0x124,%ecx
call   1050 <assert_int32_eq@plt>
mov    0x2e5c(%rip),%r15
mov    (%r15),%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0x126,%ecx
call   1060 <assert_int32_not_eq@plt>
mov    (%r15),%ebp
mov    %ebp,%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0x12a,%ecx
call   1050 <assert_int32_eq@plt>
mov    (%r14),%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0x12c,%ecx
call   1060 <assert_int32_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    $0x134,%ecx
call   1050 <assert_int32_eq@plt>
mov    %ebp,%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0x136,%ecx
call   1060 <assert_int32_not_eq@plt>
mov    (%r15),%ebp
mov    (%r14),%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0x13a,%ecx
call   1050 <assert_int32_eq@plt>
mov    %ebp,%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    $0x13c,%ecx
call   1060 <assert_int32_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 int32 asserts, these should pass\00"
@INT32_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"
@INT32_MIN = global i32 0
@.str.2 = [38 x i8] c"Test int32 asserts, these should fail\00"
define void @test_int32_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* @INT32_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_int32_eq(i32 %6, i32 %7, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 292)
%9 = load i32, i32* @INT32_MIN
store i32 %9, i32* %2
%10 = load i32, i32* %2
%11 = load i32, i32* %1
%12 = call i32 @assert_int32_not_eq(i32 %10, i32 %11, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 294)
%13 = load i32, i32* @INT32_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_int32_eq(i32 %15, i32 %16, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 298)
%18 = load i32, i32* @INT32_MAX
store i32 %18, i32* %2
%19 = load i32, i32* %2
%20 = load i32, i32* %1
%21 = call i32 @assert_int32_not_eq(i32 %19, i32 %20, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 300)
%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* @INT32_MAX
store i32 %24, i32* %1
%25 = load i32, i32* @INT32_MIN
store i32 %25, i32* %2
%26 = load i32, i32* %2
%27 = load i32, i32* %1
%28 = call i32 @assert_int32_eq(i32 %26, i32 %27, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 308)
%29 = load i32, i32* %1
store i32 %29, i32* %2
%30 = load i32, i32* %2
%31 = load i32, i32* %1
%32 = call i32 @assert_int32_not_eq(i32 %30, i32 %31, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 310)
%33 = load i32, i32* @INT32_MIN
store i32 %33, i32* %1
%34 = load i32, i32* @INT32_MAX
store i32 %34, i32* %2
%35 = load i32, i32* %2
%36 = load i32, i32* %1
%37 = call i32 @assert_int32_eq(i32 %35, i32 %36, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 314)
%38 = load i32, i32* %1
store i32 %38, i32* %2
%39 = load i32, i32* %2
%40 = load i32, i32* %1
%41 = call i32 @assert_int32_not_eq(i32 %39, i32 %40, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 316)
%42 = call i32 (...) @test_case_end()
ret void
}

LLVM IR (-O2):
@.str = [38 x i8] c"Test int32 asserts, these should pass\00"
@INT32_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"
@INT32_MIN = global i32 0
@.str.2 = [38 x i8] c"Test int32 asserts, these should fail\00"
define void @test_int32_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* @INT32_MAX
%3 = tail call i32 @assert_int32_eq(i32 %2, i32 %2, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 292)
%4 = load i32, i32* @INT32_MIN
%5 = tail call i32 @assert_int32_not_eq(i32 %4, i32 %2, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 294)
%6 = load i32, i32* @INT32_MIN
%7 = tail call i32 @assert_int32_eq(i32 %6, i32 %6, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 298)
%8 = load i32, i32* @INT32_MAX
%9 = tail call i32 @assert_int32_not_eq(i32 %8, i32 %6, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 300)
%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* @INT32_MAX
%13 = load i32, i32* @INT32_MIN
%14 = tail call i32 @assert_int32_eq(i32 %13, i32 %12, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 308)
%15 = tail call i32 @assert_int32_not_eq(i32 %12, i32 %12, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 310)
%16 = load i32, i32* @INT32_MIN
%17 = load i32, i32* @INT32_MAX
%18 = tail call i32 @assert_int32_eq(i32 %17, i32 %16, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 314)
%19 = tail call i32 @assert_int32_not_eq(i32 %16, i32 %16, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 316)
%20 = tail call i32 (...) @test_case_end()
ret void
}