#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, unsigned long long, int, long long,
                          long long, int);
int _test_MIN_biggerullong_smallerint(unsigned long long u, int i) {
  if ((((sizeof(u) > sizeof(long)) &&
        (!((((u) - (u)) - (((u) - (u)) + 1)) < ((u) - (u)))))
           ? (((sizeof(i) > sizeof(long)) &&
               (!((((i) - (i)) - (((i) - (i)) + 1)) < ((i) - (i)))))
                  ? ((((unsigned long long)(u)) < ((unsigned long long)(i)))
                         ? ((long long)(u))
                         : ((long long)(i)))
                  : (((i) < 0) ? ((long long)(i))
                               : ((((unsigned long long)(u)) <
                                   ((unsigned long long)(i)))
                                      ? ((long long)(u))
                                      : ((long long)(i)))))
           : (((sizeof(i) > sizeof(long)) &&
               (!((((i) - (i)) - (((i) - (i)) + 1)) < ((i) - (i)))))
                  ? (((u) < 0) ? ((long long)(u))
                               : ((((unsigned long long)(u)) <
                                   ((unsigned long long)(i)))
                                      ? ((long long)(u))
                                      : ((long long)(i))))
                  : ((((long long)(u)) < ((long long)(i)))
                         ? ((long long)(u))
                         : ((long long)(i))))) != i) {
    printf(
        "failed test %d MIN(%lluULL, %d): %lldLL == %lluULL != i == %uU\n", 627,
        u, i,
        (((sizeof(u) > sizeof(long)) &&
          (!((((u) - (u)) - (((u) - (u)) + 1)) < ((u) - (u)))))
             ? (((sizeof(i) > sizeof(long)) &&
                 (!((((i) - (i)) - (((i) - (i)) + 1)) < ((i) - (i)))))
                    ? ((((unsigned long long)(u)) < ((unsigned long long)(i)))
                           ? ((long long)(u))
                           : ((long long)(i)))
                    : (((i) < 0) ? ((long long)(i))
                                 : ((((unsigned long long)(u)) <
                                     ((unsigned long long)(i)))
                                        ? ((long long)(u))
                                        : ((long long)(i)))))
             : (((sizeof(i) > sizeof(long)) &&
                 (!((((i) - (i)) - (((i) - (i)) + 1)) < ((i) - (i)))))
                    ? (((u) < 0) ? ((long long)(u))
                                 : ((((unsigned long long)(u)) <
                                     ((unsigned long long)(i)))
                                        ? ((long long)(u))
                                        : ((long long)(i))))
                    : ((((long long)(u)) < ((long long)(i)))
                           ? ((long long)(u))
                           : ((long long)(i))))),
        (((sizeof(u) > sizeof(long)) &&
          (!((((u) - (u)) - (((u) - (u)) + 1)) < ((u) - (u)))))
             ? (((sizeof(i) > sizeof(long)) &&
                 (!((((i) - (i)) - (((i) - (i)) + 1)) < ((i) - (i)))))
                    ? ((((unsigned long long)(u)) < ((unsigned long long)(i)))
                           ? ((long long)(u))
                           : ((long long)(i)))
                    : (((i) < 0) ? ((long long)(i))
                                 : ((((unsigned long long)(u)) <
                                     ((unsigned long long)(i)))
                                        ? ((long long)(u))
                                        : ((long long)(i)))))
             : (((sizeof(i) > sizeof(long)) &&
                 (!((((i) - (i)) - (((i) - (i)) + 1)) < ((i) - (i)))))
                    ? (((u) < 0) ? ((long long)(u))
                                 : ((((unsigned long long)(u)) <
                                     ((unsigned long long)(i)))
                                        ? ((long long)(u))
                                        : ((long long)(i))))
                    : ((((long long)(u)) < ((long long)(i)))
                           ? ((long long)(u))
                           : ((long long)(i))))),
        i);
  }
  return 0;
}


x86 assembly (clang, -O0):
<_test_MIN_biggerullong_smallerint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
cmp    %rcx,%rax
jge    113d <_test_MIN_biggerullong_smallerint+0x2d>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    1145 <_test_MIN_biggerullong_smallerint+0x35>
movslq -0xc(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movslq -0xc(%rbp),%rcx
cmp    %rcx,%rax
je     11de <_test_MIN_biggerullong_smallerint+0xce>
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
cmp    %rcx,%rax
jge    1182 <_test_MIN_biggerullong_smallerint+0x72>
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
jmp    118a <_test_MIN_biggerullong_smallerint+0x7a>
movslq -0xc(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
cmp    %rcx,%rax
jge    11b0 <_test_MIN_biggerullong_smallerint+0xa0>
mov    -0x8(%rbp),%rax
mov    %rax,-0x40(%rbp)
jmp    11b8 <_test_MIN_biggerullong_smallerint+0xa8>
movslq -0xc(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x38(%rbp),%r8
mov    -0x1c(%rbp),%ecx
mov    -0x28(%rbp),%rdx
mov    -0x40(%rbp),%r9
mov    -0xc(%rbp),%eax
lea    0xe2f(%rip),%rdi
mov    $0x273,%esi
mov    %eax,(%rsp)
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_test_MIN_biggerullong_smallerint>:
movslq %esi,%rax
cmp    %rdi,%rax
jle    113c <_test_MIN_biggerullong_smallerint+0x2c>
push   %rax
mov    %esi,%ecx
mov    %rdi,%rdx
mov    %esi,(%rsp)
lea    0xed8(%rip),%rdi
mov    $0x273,%esi
mov    %rdx,%r8
mov    %rdx,%r9
call   1030 <printf@plt>
add    $0x8,%rsp
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [64 x i8] c"failed test %d MIN(%lluULL, %d): %lldLL == %lluULL != i == %uU\0A\00"
define i32 @_test_MIN_biggerullong_smallerint(i64 %0, i32 %1) {
%3 = alloca i64
%4 = alloca i32
store i64 %0, i64* %3
store i32 %1, i32* %4
%5 = load i64, i64* %3
%6 = load i32, i32* %4
%7 = sext i32 %6 to i64
%8 = icmp slt i64 %5, %7
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load i64, i64* %3
br label %14
11: ; preds = %2
%12 = load i32, i32* %4
%13 = sext i32 %12 to i64
br label %14
14: ; preds = %11, %9
%15 = phi i64 [ %10, %9 ], [ %13, %11 ]
%16 = load i32, i32* %4
%17 = sext i32 %16 to i64
%18 = icmp ne i64 %15, %17
br i1 %18, label %19, label %46
19: ; preds = %14
%20 = load i64, i64* %3
%21 = load i32, i32* %4
%22 = load i64, i64* %3
%23 = load i32, i32* %4
%24 = sext i32 %23 to i64
%25 = icmp slt i64 %22, %24
br i1 %25, label %26, label %28
26: ; preds = %19
%27 = load i64, i64* %3
br label %31
28: ; preds = %19
%29 = load i32, i32* %4
%30 = sext i32 %29 to i64
br label %31
31: ; preds = %28, %26
%32 = phi i64 [ %27, %26 ], [ %30, %28 ]
%33 = load i64, i64* %3
%34 = load i32, i32* %4
%35 = sext i32 %34 to i64
%36 = icmp slt i64 %33, %35
br i1 %36, label %37, label %39
37: ; preds = %31
%38 = load i64, i64* %3
br label %42
39: ; preds = %31
%40 = load i32, i32* %4
%41 = sext i32 %40 to i64
br label %42
42: ; preds = %39, %37
%43 = phi i64 [ %38, %37 ], [ %41, %39 ]
%44 = load i32, i32* %4
%45 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0), i32 627, i64 %20, i32 %21, i64 %32, i64 %43, i32 %44)
br label %46
46: ; preds = %42, %14
ret i32 0
}

LLVM IR (-O2):
@.str = [64 x i8] c"failed test %d MIN(%lluULL, %d): %lldLL == %lluULL != i == %uU\0A\00"
define i32 @_test_MIN_biggerullong_smallerint(i64 %0, i32 %1) {
%3 = sext i32 %1 to i64
%4 = icmp sgt i64 %3, %0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0), i32 627, i64 %0, i32 %1, i64 %0, i64 %0, i32 %1)
br label %7
7: ; preds = %5, %2
ret i32 0
}