#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*/ printf(char *, long, long);
int /*<<< orphan*/ s_test_ng_(char const *, char const *, int);
int /*<<< orphan*/ s_test_ok_(char const *, char const *, int);
void s_test_long_eq_(long a, long b, const char *msg, const char *file,
                     int lineno) {
  if (a == b) {
    s_test_ok_(msg, file, lineno);
  } else {
    s_test_ng_(msg, file, lineno);
    printf("\t\t[%ld]!=[%ld]\n", a, b);
  }
}


x86 assembly (clang, -O0):
<s_test_long_eq_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jne    116f <s_test_long_eq_+0x3f>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
call   1040 <s_test_ok_@plt>
jmp    1193 <s_test_long_eq_+0x63>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
call   1050 <s_test_ng_@plt>
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xe72(%rip),%rdi
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<s_test_long_eq_>:
cmp    %rsi,%rdi
jne    1143 <s_test_long_eq_+0x13>
mov    %rdx,%rdi
mov    %rcx,%rsi
mov    %r8d,%edx
jmp    1040 <s_test_ok_@plt>
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    %rdx,%rdi
mov    %rcx,%rsi
mov    %r8d,%edx
call   1050 <s_test_ng_@plt>
lea    0xe9e(%rip),%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"\09\09[%ld]!=[%ld]\0A\00"
define void @s_test_long_eq_(i64 %0, i64 %1, i8* %2, i8* %3, i32 %4) {
%6 = alloca i64
%7 = alloca i64
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i32
store i64 %0, i64* %6
store i64 %1, i64* %7
store i8* %2, i8** %8
store i8* %3, i8** %9
store i32 %4, i32* %10
%11 = load i64, i64* %6
%12 = load i64, i64* %7
%13 = icmp eq i64 %11, %12
br i1 %13, label %14, label %19
14: ; preds = %5
%15 = load i8*, i8** %8
%16 = load i8*, i8** %9
%17 = load i32, i32* %10
%18 = call i32 @s_test_ok_(i8* %15, i8* %16, i32 %17)
br label %27
19: ; preds = %5
%20 = load i8*, i8** %8
%21 = load i8*, i8** %9
%22 = load i32, i32* %10
%23 = call i32 @s_test_ng_(i8* %20, i8* %21, i32 %22)
%24 = load i64, i64* %6
%25 = load i64, i64* %7
%26 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i64 %24, i64 %25)
br label %27
27: ; preds = %19, %14
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"\09\09[%ld]!=[%ld]\0A\00"
define void @s_test_long_eq_(i64 %0, i64 %1, i8* %2, i8* %3, i32 %4) {
%6 = icmp eq i64 %0, %1
br i1 %6, label %7, label %9
7: ; preds = %5
%8 = tail call i32 @s_test_ok_(i8* %2, i8* %3, i32 %4)
br label %12
9: ; preds = %5
%10 = tail call i32 @s_test_ng_(i8* %2, i8* %3, i32 %4)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i64 %0, i64 %1)
br label %12
12: ; preds = %9, %7
ret void
}