#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, int, unsigned int, long long, long long,
                          unsigned int);
int _test_MIN_equalint_equaluint(int i, unsigned 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(%d, %d): %lldLL == %lluULL != i == %d\n", 739, 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(%d, %d): %lldLL == %lluULL != u == %uU\n", 742, 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_equalint_equaluint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movslq -0x4(%rbp),%rax
mov    -0x8(%rbp),%ecx
cmp    %rcx,%rax
jge    113b <_test_MIN_equalint_equaluint+0x2b>
movslq -0x4(%rbp),%rax
mov    %rax,-0x10(%rbp)
jmp    1142 <_test_MIN_equalint_equaluint+0x32>
mov    -0x8(%rbp),%eax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x4(%rbp),%rcx
cmp    %rcx,%rax
je     11d4 <_test_MIN_equalint_equaluint+0xc4>
mov    -0x4(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
movslq -0x4(%rbp),%rax
mov    -0x8(%rbp),%ecx
cmp    %rcx,%rax
jge    117c <_test_MIN_equalint_equaluint+0x6c>
movslq -0x4(%rbp),%rax
mov    %rax,-0x20(%rbp)
jmp    1183 <_test_MIN_equalint_equaluint+0x73>
mov    -0x8(%rbp),%eax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x28(%rbp)
movslq -0x4(%rbp),%rax
mov    -0x8(%rbp),%ecx
cmp    %rcx,%rax
jge    11a8 <_test_MIN_equalint_equaluint+0x98>
movslq -0x4(%rbp),%rax
mov    %rax,-0x30(%rbp)
jmp    11af <_test_MIN_equalint_equaluint+0x9f>
mov    -0x8(%rbp),%eax
mov    %rax,-0x30(%rbp)
mov    -0x28(%rbp),%r8
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%edx
mov    -0x30(%rbp),%r9
mov    -0x4(%rbp),%eax
lea    0xe39(%rip),%rdi
mov    $0x2e3,%esi
mov    %eax,(%rsp)
call   1030 <printf@plt>
movslq -0x4(%rbp),%rax
mov    -0x8(%rbp),%ecx
cmp    %rcx,%rax
jge    11f1 <_test_MIN_equalint_equaluint+0xe1>
movslq -0x4(%rbp),%rax
mov    %rax,-0x38(%rbp)
jmp    11f8 <_test_MIN_equalint_equaluint+0xe8>
mov    -0x8(%rbp),%eax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    -0x8(%rbp),%ecx
cmp    %rcx,%rax
je     1289 <_test_MIN_equalint_equaluint+0x179>
mov    -0x4(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x3c(%rbp)
movslq -0x4(%rbp),%rax
mov    -0x8(%rbp),%ecx
cmp    %rcx,%rax
jge    1231 <_test_MIN_equalint_equaluint+0x121>
movslq -0x4(%rbp),%rax
mov    %rax,-0x48(%rbp)
jmp    1238 <_test_MIN_equalint_equaluint+0x128>
mov    -0x8(%rbp),%eax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x50(%rbp)
movslq -0x4(%rbp),%rax
mov    -0x8(%rbp),%ecx
cmp    %rcx,%rax
jge    125d <_test_MIN_equalint_equaluint+0x14d>
movslq -0x4(%rbp),%rax
mov    %rax,-0x58(%rbp)
jmp    1264 <_test_MIN_equalint_equaluint+0x154>
mov    -0x8(%rbp),%eax
mov    %rax,-0x58(%rbp)
mov    -0x50(%rbp),%r8
mov    -0x3c(%rbp),%ecx
mov    -0x40(%rbp),%edx
mov    -0x58(%rbp),%r9
mov    -0x8(%rbp),%eax
lea    0xdbe(%rip),%rdi
mov    $0x2e6,%esi
mov    %eax,(%rsp)
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_test_MIN_equalint_equaluint>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %esi,%r14d
mov    %edi,%r15d
movslq %edi,%rbx
mov    %esi,%ebp
cmp    %rbp,%rbx
jle    1148 <_test_MIN_equalint_equaluint+0x38>
mov    %r15d,(%rsp)
lea    0xece(%rip),%rdi
mov    $0x2e3,%esi
mov    %r15d,%edx
mov    %r14d,%ecx
mov    %rbp,%r8
mov    %rbp,%r9
call   1030 <printf@plt>
cmp    %rbp,%rbx
jge    116e <_test_MIN_equalint_equaluint+0x5e>
mov    %r14d,(%rsp)
lea    0xee2(%rip),%rdi
mov    $0x2e6,%esi
mov    %r15d,%edx
mov    %r14d,%ecx
mov    %rbx,%r8
mov    %rbx,%r9
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [58 x i8] c"failed test %d MIN(%d, %d): %lldLL == %lluULL != i == %d\0A\00"
@.str.1 = [59 x i8] c"failed test %d MIN(%d, %d): %lldLL == %lluULL != u == %uU\0A\00"
define i32 @_test_MIN_equalint_equaluint(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = sext i32 %5 to i64
%7 = load i32, i32* %4
%8 = zext i32 %7 to i64
%9 = icmp slt i64 %6, %8
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load i32, i32* %3
%12 = sext i32 %11 to i64
br label %16
13: ; preds = %2
%14 = load i32, i32* %4
%15 = zext i32 %14 to i64
br label %16
16: ; preds = %13, %10
%17 = phi i64 [ %12, %10 ], [ %15, %13 ]
%18 = load i32, i32* %3
%19 = sext i32 %18 to i64
%20 = icmp ne i64 %17, %19
br i1 %20, label %21, label %52
21: ; preds = %16
%22 = load i32, i32* %3
%23 = load i32, i32* %4
%24 = load i32, i32* %3
%25 = sext i32 %24 to i64
%26 = load i32, i32* %4
%27 = zext i32 %26 to i64
%28 = icmp slt i64 %25, %27
br i1 %28, label %29, label %32
29: ; preds = %21
%30 = load i32, i32* %3
%31 = sext i32 %30 to i64
br label %35
32: ; preds = %21
%33 = load i32, i32* %4
%34 = zext i32 %33 to i64
br label %35
35: ; preds = %32, %29
%36 = phi i64 [ %31, %29 ], [ %34, %32 ]
%37 = load i32, i32* %3
%38 = sext i32 %37 to i64
%39 = load i32, i32* %4
%40 = zext i32 %39 to i64
%41 = icmp slt i64 %38, %40
br i1 %41, label %42, label %45
42: ; preds = %35
%43 = load i32, i32* %3
%44 = sext i32 %43 to i64
br label %48
45: ; preds = %35
%46 = load i32, i32* %4
%47 = zext i32 %46 to i64
br label %48
48: ; preds = %45, %42
%49 = phi i64 [ %44, %42 ], [ %47, %45 ]
%50 = load i32, i32* %3
%51 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0), i32 739, i32 %22, i32 %23, i64 %36, i64 %49, i32 %50)
br label %52
52: ; preds = %48, %16
%53 = load i32, i32* %3
%54 = sext i32 %53 to i64
%55 = load i32, i32* %4
%56 = zext i32 %55 to i64
%57 = icmp slt i64 %54, %56
br i1 %57, label %58, label %61
58: ; preds = %52
%59 = load i32, i32* %3
%60 = sext i32 %59 to i64
br label %64
61: ; preds = %52
%62 = load i32, i32* %4
%63 = zext i32 %62 to i64
br label %64
64: ; preds = %61, %58
%65 = phi i64 [ %60, %58 ], [ %63, %61 ]
%66 = load i32, i32* %4
%67 = zext i32 %66 to i64
%68 = icmp ne i64 %65, %67
br i1 %68, label %69, label %100
69: ; preds = %64
%70 = load i32, i32* %3
%71 = load i32, i32* %4
%72 = load i32, i32* %3
%73 = sext i32 %72 to i64
%74 = load i32, i32* %4
%75 = zext i32 %74 to i64
%76 = icmp slt i64 %73, %75
br i1 %76, label %77, label %80
77: ; preds = %69
%78 = load i32, i32* %3
%79 = sext i32 %78 to i64
br label %83
80: ; preds = %69
%81 = load i32, i32* %4
%82 = zext i32 %81 to i64
br label %83
83: ; preds = %80, %77
%84 = phi i64 [ %79, %77 ], [ %82, %80 ]
%85 = load i32, i32* %3
%86 = sext i32 %85 to i64
%87 = load i32, i32* %4
%88 = zext i32 %87 to i64
%89 = icmp slt i64 %86, %88
br i1 %89, label %90, label %93
90: ; preds = %83
%91 = load i32, i32* %3
%92 = sext i32 %91 to i64
br label %96
93: ; preds = %83
%94 = load i32, i32* %4
%95 = zext i32 %94 to i64
br label %96
96: ; preds = %93, %90
%97 = phi i64 [ %92, %90 ], [ %95, %93 ]
%98 = load i32, i32* %4
%99 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.1, i64 0, i64 0), i32 742, i32 %70, i32 %71, i64 %84, i64 %97, i32 %98)
br label %100
100: ; preds = %96, %64
ret i32 0
}

LLVM IR (-O2):
@.str = [58 x i8] c"failed test %d MIN(%d, %d): %lldLL == %lluULL != i == %d\0A\00"
@.str.1 = [59 x i8] c"failed test %d MIN(%d, %d): %lldLL == %lluULL != u == %uU\0A\00"
define i32 @_test_MIN_equalint_equaluint(i32 %0, i32 %1) {
%3 = sext i32 %0 to i64
%4 = zext i32 %1 to i64
%5 = icmp slt i64 %3, %4
%6 = icmp sgt i64 %3, %4
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0), i32 739, i32 %0, i32 %1, i64 %4, i64 %4, i32 %0)
br label %9
9: ; preds = %7, %2
br i1 %5, label %10, label %12
10: ; preds = %9
%11 = tail call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.1, i64 0, i64 0), i32 742, i32 %0, i32 %1, i64 %3, i64 %3, i32 %1)
br label %12
12: ; preds = %10, %9
ret i32 0
}