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

/* Variables and functions */
scalar_t__ UINT32_MAX;
int /*<<< orphan*/ assert_uint32_eq(scalar_t__, scalar_t__, char *, int);
int /*<<< orphan*/ assert_uint32_not_eq(scalar_t__, scalar_t__, char *, int);
int /*<<< orphan*/ test_case_end();
int /*<<< orphan*/ test_case_start(char *);
void test_uint32_asserts(void) {
  test_case_start("Test uint32 asserts, these should pass");
  uint32_t actual = UINT32_MAX;
  uint32_t expected = actual;
  (assert_uint32_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",
                    331));
  expected = 0;
  (assert_uint32_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",
                        333));
  test_case_end();
  test_case_start("Test uint32 asserts, these should fail");
  actual = UINT32_MAX;
  expected = 0;
  (assert_uint32_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",
                    341));
  expected = actual;
  (assert_uint32_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",
                        343));
  test_case_end();
}


x86 assembly (clang, -O0):
<test_uint32_asserts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xeb1(%rip),%rdi
call   1040 <test_case_start@plt>
mov    0x2e9d(%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    $0x14b,%ecx
call   1050 <assert_uint32_eq@plt>
movq   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
lea    0xe8d(%rip),%rdx
mov    $0x14d,%ecx
call   1030 <assert_uint32_not_eq@plt>
mov    $0x0,%al
call   1060 <test_case_end@plt>
lea    0xf03(%rip),%rdi
call   1040 <test_case_start@plt>
mov    0x2e3a(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
lea    0xe4b(%rip),%rdx
mov    $0x155,%ecx
call   1050 <assert_uint32_eq@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
lea    0xe2a(%rip),%rdx
mov    $0x157,%ecx
call   1030 <assert_uint32_not_eq@plt>
mov    $0x0,%al
call   1060 <test_case_end@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_uint32_asserts>:
push   %r15
push   %r14
push   %rbx
lea    0xeb4(%rip),%rdi
call   1040 <test_case_start@plt>
mov    0x2ea0(%rip),%r15
mov    (%r15),%rbx
lea    0xec5(%rip),%r14
mov    %rbx,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x14b,%ecx
call   1050 <assert_uint32_eq@plt>
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x14d,%ecx
call   1030 <assert_uint32_not_eq@plt>
xor    %eax,%eax
call   1060 <test_case_end@plt>
lea    0xf20(%rip),%rdi
call   1040 <test_case_start@plt>
mov    (%r15),%rbx
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x155,%ecx
call   1050 <assert_uint32_eq@plt>
mov    %rbx,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x157,%ecx
call   1030 <assert_uint32_not_eq@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1060 <test_case_end@plt>

LLVM IR (-O0):
@.str = [39 x i8] c"Test uint32 asserts, these should pass\00"
@UINT32_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 uint32 asserts, these should fail\00"
define void @test_uint32_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* @UINT32_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_uint32_eq(i64 %6, i64 %7, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 331)
store i64 0, i64* %2
%9 = load i64, i64* %2
%10 = load i64, i64* %1
%11 = call i32 @assert_uint32_not_eq(i64 %9, i64 %10, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 333)
%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))
%14 = load i64, i64* @UINT32_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_uint32_eq(i64 %15, i64 %16, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 341)
%18 = load i64, i64* %1
store i64 %18, i64* %2
%19 = load i64, i64* %2
%20 = load i64, i64* %1
%21 = call i32 @assert_uint32_not_eq(i64 %19, i64 %20, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 343)
%22 = call i32 (...) @test_case_end()
ret void
}

LLVM IR (-O2):
@.str = [39 x i8] c"Test uint32 asserts, these should pass\00"
@UINT32_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 uint32 asserts, these should fail\00"
define void @test_uint32_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* @UINT32_MAX
%3 = tail call i32 @assert_uint32_eq(i64 %2, i64 %2, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 331)
%4 = tail call i32 @assert_uint32_not_eq(i64 0, i64 %2, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 333)
%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* @UINT32_MAX
%8 = tail call i32 @assert_uint32_eq(i64 0, i64 %7, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 341)
%9 = tail call i32 @assert_uint32_not_eq(i64 %7, i64 %7, i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.1, i64 0, i64 0), i32 343)
%10 = tail call i32 (...) @test_case_end()
ret void
}