#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__ u;
typedef scalar_t__ i;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, long, unsigned long, long long,
                          long long, unsigned long);
int _test_MIN_equallong_equalulong(long i, unsigned long u) {
  if ((((sizeof(i) > sizeof(long)) &&
        (!((((i) - (i)) - (((i) - (i)) + 1)) < ((i) - (i)))))
           ? (((sizeof(u) > sizeof(long)) &&
               (!((((u) - (u)) - (((u) - (u)) + 1)) < ((u) - (u)))))
                  ? ((((unsigned long long)(i)) < ((unsigned long long)(u)))
                         ? ((long long)(i))
                         : ((long long)(u)))
                  : (((u) < 0) ? ((long long)(u))
                               : ((((unsigned long long)(i)) <
                                   ((unsigned long long)(u)))
                                      ? ((long long)(i))
                                      : ((long long)(u)))))
           : (((sizeof(u) > sizeof(long)) &&
               (!((((u) - (u)) - (((u) - (u)) + 1)) < ((u) - (u)))))
                  ? (((i) < 0) ? ((long long)(i))
                               : ((((unsigned long long)(i)) <
                                   ((unsigned long long)(u)))
                                      ? ((long long)(i))
                                      : ((long long)(u))))
                  : ((((long long)(i)) < ((long long)(u)))
                         ? ((long long)(i))
                         : ((long long)(u))))) != i) {
    printf(
        "failed test %d MIN(%ld, %ld): %lldLL == %lluULL != i == %ldL\n", 759,
        i, u,
        (((sizeof(i) > sizeof(long)) &&
          (!((((i) - (i)) - (((i) - (i)) + 1)) < ((i) - (i)))))
             ? (((sizeof(u) > sizeof(long)) &&
                 (!((((u) - (u)) - (((u) - (u)) + 1)) < ((u) - (u)))))
                    ? ((((unsigned long long)(i)) < ((unsigned long long)(u)))
                           ? ((long long)(i))
                           : ((long long)(u)))
                    : (((u) < 0) ? ((long long)(u))
                                 : ((((unsigned long long)(i)) <
                                     ((unsigned long long)(u)))
                                        ? ((long long)(i))
                                        : ((long long)(u)))))
             : (((sizeof(u) > sizeof(long)) &&
                 (!((((u) - (u)) - (((u) - (u)) + 1)) < ((u) - (u)))))
                    ? (((i) < 0) ? ((long long)(i))
                                 : ((((unsigned long long)(i)) <
                                     ((unsigned long long)(u)))
                                        ? ((long long)(i))
                                        : ((long long)(u))))
                    : ((((long long)(i)) < ((long long)(u)))
                           ? ((long long)(i))
                           : ((long long)(u))))),
        (((sizeof(i) > sizeof(long)) &&
          (!((((i) - (i)) - (((i) - (i)) + 1)) < ((i) - (i)))))
             ? (((sizeof(u) > sizeof(long)) &&
                 (!((((u) - (u)) - (((u) - (u)) + 1)) < ((u) - (u)))))
                    ? ((((unsigned long long)(i)) < ((unsigned long long)(u)))
                           ? ((long long)(i))
                           : ((long long)(u)))
                    : (((u) < 0) ? ((long long)(u))
                                 : ((((unsigned long long)(i)) <
                                     ((unsigned long long)(u)))
                                        ? ((long long)(i))
                                        : ((long long)(u)))))
             : (((sizeof(u) > sizeof(long)) &&
                 (!((((u) - (u)) - (((u) - (u)) + 1)) < ((u) - (u)))))
                    ? (((i) < 0) ? ((long long)(i))
                                 : ((((unsigned long long)(i)) <
                                     ((unsigned long long)(u)))
                                        ? ((long long)(i))
                                        : ((long long)(u))))
                    : ((((long long)(i)) < ((long long)(u)))
                           ? ((long long)(i))
                           : ((long long)(u))))),
        i);
  }
  if ((((sizeof(i) > sizeof(long)) &&
        (!((((i) - (i)) - (((i) - (i)) + 1)) < ((i) - (i)))))
           ? (((sizeof(u) > sizeof(long)) &&
               (!((((u) - (u)) - (((u) - (u)) + 1)) < ((u) - (u)))))
                  ? ((((unsigned long long)(i)) < ((unsigned long long)(u)))
                         ? ((long long)(i))
                         : ((long long)(u)))
                  : (((u) < 0) ? ((long long)(u))
                               : ((((unsigned long long)(i)) <
                                   ((unsigned long long)(u)))
                                      ? ((long long)(i))
                                      : ((long long)(u)))))
           : (((sizeof(u) > sizeof(long)) &&
               (!((((u) - (u)) - (((u) - (u)) + 1)) < ((u) - (u)))))
                  ? (((i) < 0) ? ((long long)(i))
                               : ((((unsigned long long)(i)) <
                                   ((unsigned long long)(u)))
                                      ? ((long long)(i))
                                      : ((long long)(u))))
                  : ((((long long)(i)) < ((long long)(u)))
                         ? ((long long)(i))
                         : ((long long)(u))))) != u) {
    printf(
        "failed test %d MIN(%ld, %ld): %lldLL == %lluULL != u == %luUL\n", 762,
        i, u,
        (((sizeof(i) > sizeof(long)) &&
          (!((((i) - (i)) - (((i) - (i)) + 1)) < ((i) - (i)))))
             ? (((sizeof(u) > sizeof(long)) &&
                 (!((((u) - (u)) - (((u) - (u)) + 1)) < ((u) - (u)))))
                    ? ((((unsigned long long)(i)) < ((unsigned long long)(u)))
                           ? ((long long)(i))
                           : ((long long)(u)))
                    : (((u) < 0) ? ((long long)(u))
                                 : ((((unsigned long long)(i)) <
                                     ((unsigned long long)(u)))
                                        ? ((long long)(i))
                                        : ((long long)(u)))))
             : (((sizeof(u) > sizeof(long)) &&
                 (!((((u) - (u)) - (((u) - (u)) + 1)) < ((u) - (u)))))
                    ? (((i) < 0) ? ((long long)(i))
                                 : ((((unsigned long long)(i)) <
                                     ((unsigned long long)(u)))
                                        ? ((long long)(i))
                                        : ((long long)(u))))
                    : ((((long long)(i)) < ((long long)(u)))
                           ? ((long long)(i))
                           : ((long long)(u))))),
        (((sizeof(i) > sizeof(long)) &&
          (!((((i) - (i)) - (((i) - (i)) + 1)) < ((i) - (i)))))
             ? (((sizeof(u) > sizeof(long)) &&
                 (!((((u) - (u)) - (((u) - (u)) + 1)) < ((u) - (u)))))
                    ? ((((unsigned long long)(i)) < ((unsigned long long)(u)))
                           ? ((long long)(i))
                           : ((long long)(u)))
                    : (((u) < 0) ? ((long long)(u))
                                 : ((((unsigned long long)(i)) <
                                     ((unsigned long long)(u)))
                                        ? ((long long)(i))
                                        : ((long long)(u)))))
             : (((sizeof(u) > sizeof(long)) &&
                 (!((((u) - (u)) - (((u) - (u)) + 1)) < ((u) - (u)))))
                    ? (((i) < 0) ? ((long long)(i))
                                 : ((((unsigned long long)(i)) <
                                     ((unsigned long long)(u)))
                                        ? ((long long)(i))
                                        : ((long long)(u))))
                    : ((((long long)(i)) < ((long long)(u)))
                           ? ((long long)(i))
                           : ((long long)(u))))),
        u);
  }
  return 0;
}


x86 assembly (clang, -O0):
<_test_MIN_equallong_equalulong>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    113e <_test_MIN_equallong_equalulong+0x2e>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    1146 <_test_MIN_equallong_equalulong+0x36>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmp    -0x8(%rbp),%rax
je     11db <_test_MIN_equallong_equalulong+0xcb>
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    117f <_test_MIN_equallong_equalulong+0x6f>
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
jmp    1187 <_test_MIN_equallong_equalulong+0x77>
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    11aa <_test_MIN_equallong_equalulong+0x9a>
mov    -0x8(%rbp),%rax
mov    %rax,-0x40(%rbp)
jmp    11b2 <_test_MIN_equallong_equalulong+0xa2>
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x38(%rbp),%r8
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%rdx
mov    -0x40(%rbp),%r9
mov    -0x8(%rbp),%rax
lea    0xe33(%rip),%rdi
mov    $0x2f7,%esi
mov    %rax,(%rsp)
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    11f6 <_test_MIN_equallong_equalulong+0xe6>
mov    -0x8(%rbp),%rax
mov    %rax,-0x48(%rbp)
jmp    11fe <_test_MIN_equallong_equalulong+0xee>
mov    -0x10(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
cmp    -0x10(%rbp),%rax
je     1293 <_test_MIN_equallong_equalulong+0x183>
mov    -0x8(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    1237 <_test_MIN_equallong_equalulong+0x127>
mov    -0x8(%rbp),%rax
mov    %rax,-0x60(%rbp)
jmp    123f <_test_MIN_equallong_equalulong+0x12f>
mov    -0x10(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    1262 <_test_MIN_equallong_equalulong+0x152>
mov    -0x8(%rbp),%rax
mov    %rax,-0x70(%rbp)
jmp    126a <_test_MIN_equallong_equalulong+0x15a>
mov    -0x10(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x68(%rbp),%r8
mov    -0x50(%rbp),%rcx
mov    -0x58(%rbp),%rdx
mov    -0x70(%rbp),%r9
mov    -0x10(%rbp),%rax
lea    0xdb9(%rip),%rdi
mov    $0x2fa,%esi
mov    %rax,(%rsp)
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_test_MIN_equallong_equalulong>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
cmp    %rsi,%rdi
jle    1140 <_test_MIN_equallong_equalulong+0x30>
mov    %r14,(%rsp)
lea    0xed6(%rip),%rdi
mov    $0x2f7,%esi
mov    %r14,%rdx
mov    %rbx,%rcx
mov    %rbx,%r8
mov    %rbx,%r9
call   1030 <printf@plt>
cmp    %rbx,%r14
jge    1166 <_test_MIN_equallong_equalulong+0x56>
mov    %rbx,(%rsp)
lea    0xeee(%rip),%rdi
mov    $0x2fa,%esi
mov    %r14,%rdx
mov    %rbx,%rcx
mov    %r14,%r8
mov    %r14,%r9
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [62 x i8] c"failed test %d MIN(%ld, %ld): %lldLL == %lluULL != i == %ldL\0A\00"
@.str.1 = [63 x i8] c"failed test %d MIN(%ld, %ld): %lldLL == %lluULL != u == %luUL\0A\00"
define i32 @_test_MIN_equallong_equalulong(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = icmp slt i64 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load i64, i64* %3
br label %12
10: ; preds = %2
%11 = load i64, i64* %4
br label %12
12: ; preds = %10, %8
%13 = phi i64 [ %9, %8 ], [ %11, %10 ]
%14 = load i64, i64* %3
%15 = icmp ne i64 %13, %14
br i1 %15, label %16, label %39
16: ; preds = %12
%17 = load i64, i64* %3
%18 = load i64, i64* %4
%19 = load i64, i64* %3
%20 = load i64, i64* %4
%21 = icmp slt i64 %19, %20
br i1 %21, label %22, label %24
22: ; preds = %16
%23 = load i64, i64* %3
br label %26
24: ; preds = %16
%25 = load i64, i64* %4
br label %26
26: ; preds = %24, %22
%27 = phi i64 [ %23, %22 ], [ %25, %24 ]
%28 = load i64, i64* %3
%29 = load i64, i64* %4
%30 = icmp slt i64 %28, %29
br i1 %30, label %31, label %33
31: ; preds = %26
%32 = load i64, i64* %3
br label %35
33: ; preds = %26
%34 = load i64, i64* %4
br label %35
35: ; preds = %33, %31
%36 = phi i64 [ %32, %31 ], [ %34, %33 ]
%37 = load i64, i64* %3
%38 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0), i32 759, i64 %17, i64 %18, i64 %27, i64 %36, i64 %37)
br label %39
39: ; preds = %35, %12
%40 = load i64, i64* %3
%41 = load i64, i64* %4
%42 = icmp slt i64 %40, %41
br i1 %42, label %43, label %45
43: ; preds = %39
%44 = load i64, i64* %3
br label %47
45: ; preds = %39
%46 = load i64, i64* %4
br label %47
47: ; preds = %45, %43
%48 = phi i64 [ %44, %43 ], [ %46, %45 ]
%49 = load i64, i64* %4
%50 = icmp ne i64 %48, %49
br i1 %50, label %51, label %74
51: ; preds = %47
%52 = load i64, i64* %3
%53 = load i64, i64* %4
%54 = load i64, i64* %3
%55 = load i64, i64* %4
%56 = icmp slt i64 %54, %55
br i1 %56, label %57, label %59
57: ; preds = %51
%58 = load i64, i64* %3
br label %61
59: ; preds = %51
%60 = load i64, i64* %4
br label %61
61: ; preds = %59, %57
%62 = phi i64 [ %58, %57 ], [ %60, %59 ]
%63 = load i64, i64* %3
%64 = load i64, i64* %4
%65 = icmp slt i64 %63, %64
br i1 %65, label %66, label %68
66: ; preds = %61
%67 = load i64, i64* %3
br label %70
68: ; preds = %61
%69 = load i64, i64* %4
br label %70
70: ; preds = %68, %66
%71 = phi i64 [ %67, %66 ], [ %69, %68 ]
%72 = load i64, i64* %4
%73 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.1, i64 0, i64 0), i32 762, i64 %52, i64 %53, i64 %62, i64 %71, i64 %72)
br label %74
74: ; preds = %70, %47
ret i32 0
}

LLVM IR (-O2):
@.str = [62 x i8] c"failed test %d MIN(%ld, %ld): %lldLL == %lluULL != i == %ldL\0A\00"
@.str.1 = [63 x i8] c"failed test %d MIN(%ld, %ld): %lldLL == %lluULL != u == %luUL\0A\00"
define i32 @_test_MIN_equallong_equalulong(i64 %0, i64 %1) {
%3 = icmp slt i64 %0, %1
%4 = icmp sgt i64 %0, %1
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0), i32 759, i64 %0, i64 %1, i64 %1, i64 %1, i64 %0)
br label %7
7: ; preds = %5, %2
br i1 %3, label %8, label %10
8: ; preds = %7
%9 = tail call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.1, i64 0, i64 0), i32 762, i64 %0, i64 %1, i64 %0, i64 %0, i64 %1)
br label %10
10: ; preds = %8, %7
ret i32 0
}