#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,
                          int);
int _test_MIN_smallerint_biggeruint(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))))) >= ((long long)(u))) {
    printf(
        "failed test %d MIN(%d, %uU): %lldLL == %lluULL >= u == %uU\n", 529, 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);
  }
  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, %uU): %lldLL == %lluULL > i == %d\n", 532, 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))))) != i) {
    printf(
        "failed test %d MIN(%d, %uU): %lldLL == %lluULL != i == %d\n", 535, 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);
  }
  return 0;
}


x86 assembly (clang, -O0):
<_test_MIN_smallerint_biggeruint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movslq -0x4(%rbp),%rax
mov    -0x8(%rbp),%ecx
cmp    %rcx,%rax
jge    113e <_test_MIN_smallerint_biggeruint+0x2e>
movslq -0x4(%rbp),%rax
mov    %rax,-0x10(%rbp)
jmp    1145 <_test_MIN_smallerint_biggeruint+0x35>
mov    -0x8(%rbp),%eax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%ecx
cmp    %rcx,%rax
jl     11d6 <_test_MIN_smallerint_biggeruint+0xc6>
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    117e <_test_MIN_smallerint_biggeruint+0x6e>
movslq -0x4(%rbp),%rax
mov    %rax,-0x20(%rbp)
jmp    1185 <_test_MIN_smallerint_biggeruint+0x75>
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    11aa <_test_MIN_smallerint_biggeruint+0x9a>
movslq -0x4(%rbp),%rax
mov    %rax,-0x30(%rbp)
jmp    11b1 <_test_MIN_smallerint_biggeruint+0xa1>
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    -0x8(%rbp),%eax
lea    0xe37(%rip),%rdi
mov    $0x211,%esi
mov    %eax,(%rsp)
call   1030 <printf@plt>
movslq -0x4(%rbp),%rax
mov    -0x8(%rbp),%ecx
cmp    %rcx,%rax
jge    11f3 <_test_MIN_smallerint_biggeruint+0xe3>
movslq -0x4(%rbp),%rax
mov    %rax,-0x38(%rbp)
jmp    11fa <_test_MIN_smallerint_biggeruint+0xea>
mov    -0x8(%rbp),%eax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movslq -0x4(%rbp),%rcx
cmp    %rcx,%rax
jle    128c <_test_MIN_smallerint_biggeruint+0x17c>
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    1234 <_test_MIN_smallerint_biggeruint+0x124>
movslq -0x4(%rbp),%rax
mov    %rax,-0x48(%rbp)
jmp    123b <_test_MIN_smallerint_biggeruint+0x12b>
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    1260 <_test_MIN_smallerint_biggeruint+0x150>
movslq -0x4(%rbp),%rax
mov    %rax,-0x58(%rbp)
jmp    1267 <_test_MIN_smallerint_biggeruint+0x157>
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    -0x4(%rbp),%eax
lea    0xdbd(%rip),%rdi
mov    $0x214,%esi
mov    %eax,(%rsp)
call   1030 <printf@plt>
movslq -0x4(%rbp),%rax
mov    -0x8(%rbp),%ecx
cmp    %rcx,%rax
jge    12a9 <_test_MIN_smallerint_biggeruint+0x199>
movslq -0x4(%rbp),%rax
mov    %rax,-0x60(%rbp)
jmp    12b0 <_test_MIN_smallerint_biggeruint+0x1a0>
mov    -0x8(%rbp),%eax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
movslq -0x4(%rbp),%rcx
cmp    %rcx,%rax
je     1342 <_test_MIN_smallerint_biggeruint+0x232>
mov    -0x4(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x64(%rbp)
movslq -0x4(%rbp),%rax
mov    -0x8(%rbp),%ecx
cmp    %rcx,%rax
jge    12ea <_test_MIN_smallerint_biggeruint+0x1da>
movslq -0x4(%rbp),%rax
mov    %rax,-0x70(%rbp)
jmp    12f1 <_test_MIN_smallerint_biggeruint+0x1e1>
mov    -0x8(%rbp),%eax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,-0x78(%rbp)
movslq -0x4(%rbp),%rax
mov    -0x8(%rbp),%ecx
cmp    %rcx,%rax
jge    1316 <_test_MIN_smallerint_biggeruint+0x206>
movslq -0x4(%rbp),%rax
mov    %rax,-0x80(%rbp)
jmp    131d <_test_MIN_smallerint_biggeruint+0x20d>
mov    -0x8(%rbp),%eax
mov    %rax,-0x80(%rbp)
mov    -0x78(%rbp),%r8
mov    -0x64(%rbp),%ecx
mov    -0x68(%rbp),%edx
mov    -0x80(%rbp),%r9
mov    -0x4(%rbp),%eax
lea    0xd41(%rip),%rdi
mov    $0x217,%esi
mov    %eax,(%rsp)
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_test_MIN_smallerint_biggeruint>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %esi,%r14d
mov    %edi,%r15d
movslq %edi,%r12
mov    %esi,%ebp
mov    %rbp,%rbx
cmp    %rbp,%r12
cmovl  %r12,%rbx
jl     1154 <_test_MIN_smallerint_biggeruint+0x44>
mov    %r14d,(%rsp)
lea    0xec2(%rip),%rdi
mov    $0x211,%esi
mov    %r15d,%edx
mov    %r14d,%ecx
mov    %rbx,%r8
mov    %rbx,%r9
call   1030 <printf@plt>
cmp    %rbp,%r12
jle    117a <_test_MIN_smallerint_biggeruint+0x6a>
mov    %r15d,(%rsp)
lea    0xed8(%rip),%rdi
mov    $0x217,%esi
mov    %r15d,%edx
mov    %r14d,%ecx
mov    %rbx,%r8
mov    %rbx,%r9
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [60 x i8] c"failed test %d MIN(%d, %uU): %lldLL == %lluULL >= u == %uU\0A\00"
@.str.1 = [58 x i8] c"failed test %d MIN(%d, %uU): %lldLL == %lluULL > i == %d\0A\00"
@.str.2 = [59 x i8] c"failed test %d MIN(%d, %uU): %lldLL == %lluULL != i == %d\0A\00"
define i32 @_test_MIN_smallerint_biggeruint(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* %4
%19 = zext i32 %18 to i64
%20 = icmp sge 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* %4
%51 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0), i32 529, 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* %3
%67 = sext i32 %66 to i64
%68 = icmp sgt 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* %3
%99 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.1, i64 0, i64 0), i32 532, i32 %70, i32 %71, i64 %84, i64 %97, i32 %98)
br label %100
100: ; preds = %96, %64
%101 = load i32, i32* %3
%102 = sext i32 %101 to i64
%103 = load i32, i32* %4
%104 = zext i32 %103 to i64
%105 = icmp slt i64 %102, %104
br i1 %105, label %106, label %109
106: ; preds = %100
%107 = load i32, i32* %3
%108 = sext i32 %107 to i64
br label %112
109: ; preds = %100
%110 = load i32, i32* %4
%111 = zext i32 %110 to i64
br label %112
112: ; preds = %109, %106
%113 = phi i64 [ %108, %106 ], [ %111, %109 ]
%114 = load i32, i32* %3
%115 = sext i32 %114 to i64
%116 = icmp ne i64 %113, %115
br i1 %116, label %117, label %148
117: ; preds = %112
%118 = load i32, i32* %3
%119 = load i32, i32* %4
%120 = load i32, i32* %3
%121 = sext i32 %120 to i64
%122 = load i32, i32* %4
%123 = zext i32 %122 to i64
%124 = icmp slt i64 %121, %123
br i1 %124, label %125, label %128
125: ; preds = %117
%126 = load i32, i32* %3
%127 = sext i32 %126 to i64
br label %131
128: ; preds = %117
%129 = load i32, i32* %4
%130 = zext i32 %129 to i64
br label %131
131: ; preds = %128, %125
%132 = phi i64 [ %127, %125 ], [ %130, %128 ]
%133 = load i32, i32* %3
%134 = sext i32 %133 to i64
%135 = load i32, i32* %4
%136 = zext i32 %135 to i64
%137 = icmp slt i64 %134, %136
br i1 %137, label %138, label %141
138: ; preds = %131
%139 = load i32, i32* %3
%140 = sext i32 %139 to i64
br label %144
141: ; preds = %131
%142 = load i32, i32* %4
%143 = zext i32 %142 to i64
br label %144
144: ; preds = %141, %138
%145 = phi i64 [ %140, %138 ], [ %143, %141 ]
%146 = load i32, i32* %3
%147 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.2, i64 0, i64 0), i32 535, i32 %118, i32 %119, i64 %132, i64 %145, i32 %146)
br label %148
148: ; preds = %144, %112
ret i32 0
}

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