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

/* Variables and functions */
int /*<<< orphan*/ seatest_simple_test_result(int, char *, char const *,
                                              unsigned int);
int /*<<< orphan*/ sprintf(char *, char *, int, int);
void seatest_assert_int_equal(int expected, int actual, const char *function,
                              unsigned int line) {
  char s[100000];
  sprintf(s, "Expected %d but was %d", expected, actual);
  seatest_simple_test_result(expected == actual, s, function, line);
}


x86 assembly (clang, -O0):
<seatest_assert_int_equal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x186c0,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
lea    -0x186c0(%rbp),%rdi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xeb4(%rip),%rsi
call   1040 <sprintf@plt>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    -0x186c0(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
call   1030 <seatest_simple_test_result@plt>
add    $0x186c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<seatest_assert_int_equal>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x186a0,%rsp
mov    %ecx,%r14d
mov    %rdx,%r15
mov    %esi,%ebp
mov    %edi,%ebx
lea    0xec0(%rip),%rsi
mov    %rsp,%r12
mov    %r12,%rdi
mov    %ebx,%edx
mov    %ebp,%ecx
call   1040 <sprintf@plt>
xor    %edi,%edi
cmp    %ebp,%ebx
sete   %dil
mov    %r12,%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
call   1030 <seatest_simple_test_result@plt>
add    $0x186a0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [23 x i8] c"Expected %d but was %d\00"
define void @seatest_assert_int_equal(i32 %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
%9 = alloca [100000 x i8]
store i32 %0, i32* %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%10 = getelementptr inbounds [100000 x i8], [100000 x i8]* %9, i64 0, i64 0
%11 = load i32, i32* %5
%12 = load i32, i32* %6
%13 = call i32 @sprintf(i8* %10, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %11, i32 %12)
%14 = load i32, i32* %5
%15 = load i32, i32* %6
%16 = icmp eq i32 %14, %15
%17 = zext i1 %16 to i32
%18 = getelementptr inbounds [100000 x i8], [100000 x i8]* %9, i64 0, i64 0
%19 = load i8*, i8** %7
%20 = load i32, i32* %8
%21 = call i32 @seatest_simple_test_result(i32 %17, i8* %18, i8* %19, i32 %20)
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"Expected %d but was %d\00"
define void @seatest_assert_int_equal(i32 %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca [100000 x i8]
%6 = getelementptr inbounds [100000 x i8], [100000 x i8]* %5, i64 0, i64 0
%7 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1)
%8 = icmp eq i32 %0, %1
%9 = zext i1 %8 to i32
%10 = call i32 @seatest_simple_test_result(i32 %9, i8* %6, i8* %2, i32 %3)
ret void
}