#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*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *, int,
                           char const *, long long, char const *, ...);
int /*<<< orphan*/ stderr;
void test_fail_int(const char *xstr, long long int x, const char *ystr,
                   long long int y, const char *message, const char *file,
                   int line, int isnt) {
  if (isnt)
    fprintf(stderr,
            "%s:%d: FAILED %s\n  got: %lld = %s\n  exp: (anything else) = %s\n",
            file, line, message, x, xstr, ystr);
  else
    fprintf(stderr, "%s:%d: FAILED %s\n  got: %lld = %s\n  exp: %lld = %s\n",
            file, line, message, x, xstr, y, ystr);
  exit(1);
}


x86 assembly (clang, -O0):
<test_fail_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
cmpl   $0x0,0x18(%rbp)
je     118c <test_fail_int+0x6c>
mov    0x2e89(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rdx
mov    0x10(%rbp),%ecx
mov    -0x28(%rbp),%r8
mov    -0x10(%rbp),%r9
mov    -0x8(%rbp),%r10
mov    -0x18(%rbp),%rax
lea    0xe89(%rip),%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    11cc <test_fail_int+0xac>
mov    0x2e4d(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rdx
mov    0x10(%rbp),%ecx
mov    -0x28(%rbp),%r8
mov    -0x10(%rbp),%r9
mov    -0x8(%rbp),%r11
mov    -0x20(%rbp),%r10
mov    -0x18(%rbp),%rax
lea    0xe88(%rip),%rsi
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<test_fail_int>:
push   %rbx
mov    %r9,%rax
mov    %rcx,%rbx
mov    %rdx,%r11
mov    %rsi,%r9
mov    %rdi,%r10
mov    0x10(%rsp),%ecx
cmpl   $0x0,0x18(%rsp)
mov    0x2ea0(%rip),%rdx
mov    (%rdx),%edi
jne    116c <test_fail_int+0x4c>
sub    $0x8,%rsp
lea    0xef0(%rip),%rsi
mov    %rax,%rdx
xor    %eax,%eax
push   %r11
push   %rbx
push   %r10
call   1030 <fprintf@plt>
add    $0x20,%rsp
mov    $0x1,%edi
call   1040 <exit@plt>
lea    0xe8d(%rip),%rsi
mov    %rax,%rdx
xor    %eax,%eax
push   %r11
push   %r10
call   1030 <fprintf@plt>
add    $0x10,%rsp
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [63 x i8] c"%s:%d: FAILED %s\0A got: %lld = %s\0A exp: (anything else) = %s\0A\00"
@.str.1 = [52 x i8] c"%s:%d: FAILED %s\0A got: %lld = %s\0A exp: %lld = %s\0A\00"
define void @test_fail_int(i8* %0, i64 %1, i8* %2, i64 %3, i8* %4, i8* %5, i32 %6, i32 %7) {
%9 = alloca i8*
%10 = alloca i64
%11 = alloca i8*
%12 = alloca i64
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i32
%16 = alloca i32
store i8* %0, i8** %9
store i64 %1, i64* %10
store i8* %2, i8** %11
store i64 %3, i64* %12
store i8* %4, i8** %13
store i8* %5, i8** %14
store i32 %6, i32* %15
store i32 %7, i32* %16
%17 = load i32, i32* %16
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %28
19: ; preds = %8
%20 = load i32, i32* @stderr
%21 = load i8*, i8** %14
%22 = load i32, i32* %15
%23 = load i8*, i8** %13
%24 = load i64, i64* %10
%25 = load i8*, i8** %9
%26 = load i8*, i8** %11
%27 = call i32 (i32, i8*, i8*, i32, i8*, i64, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0), i8* %21, i32 %22, i8* %23, i64 %24, i8* %25, i8* %26)
br label %38
28: ; preds = %8
%29 = load i32, i32* @stderr
%30 = load i8*, i8** %14
%31 = load i32, i32* %15
%32 = load i8*, i8** %13
%33 = load i64, i64* %10
%34 = load i8*, i8** %9
%35 = load i64, i64* %12
%36 = load i8*, i8** %11
%37 = call i32 (i32, i8*, i8*, i32, i8*, i64, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.1, i64 0, i64 0), i8* %30, i32 %31, i8* %32, i64 %33, i8* %34, i64 %35, i8* %36)
br label %38
38: ; preds = %28, %19
%39 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [63 x i8] c"%s:%d: FAILED %s\0A got: %lld = %s\0A exp: (anything else) = %s\0A\00"
@.str.1 = [52 x i8] c"%s:%d: FAILED %s\0A got: %lld = %s\0A exp: %lld = %s\0A\00"
define void @test_fail_int(i8* %0, i64 %1, i8* %2, i64 %3, i8* %4, i8* %5, i32 %6, i32 %7) {
%9 = icmp eq i32 %7, 0
%10 = load i32, i32* @stderr
br i1 %9, label %13, label %11
11: ; preds = %8
%12 = tail call i32 (i32, i8*, i8*, i32, i8*, i64, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0), i8* %5, i32 %6, i8* %4, i64 %1, i8* %0, i8* %2)
br label %15
13: ; preds = %8
%14 = tail call i32 (i32, i8*, i8*, i32, i8*, i64, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.1, i64 0, i64 0), i8* %5, i32 %6, i8* %4, i64 %1, i8* %0, i64 %3, i8* %2)
br label %15
15: ; preds = %13, %11
%16 = tail call i32 @exit(i32 1)
unreachable
}