#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*/ printf(char *, ...);
int test_minmax_fast() {
  unsigned int unsignedthree = 3;
  unsigned char unsignedcharthree = 3;
  long long signedllthree = 3;
  int negone = -1;
  if (((unsignedthree) < (negone) ? (unsignedthree) : (negone)) != negone) {
  } else {
    printf(
        "???_MIN_UNSAFE() should not have been able to correctly answer this "
        "question featuring a negative operand and an unsigned int operand.\n");
  }
  if (((unsignedthree) > (negone) ? (unsignedthree) : (negone)) !=
      unsignedthree) {
  } else {
    printf(
        "???_MAX_UNSAFE() should not have been able to correctly answer this "
        "question featuring a negative operand and an unsigned int operand.\n");
  }
  if (((signedllthree) < (negone) ? (signedllthree) : (negone)) != negone) {
    printf("???_MIN_UNSAFE() should have been able to correctly answer this "
           "question featuring a negative operand and a long long operand.  "
           "_MIN_UNSAFE(%lldLL, %d) != %d\n\n",
           signedllthree, negone, negone);
  } else {
  }
  if (((unsignedcharthree) < (negone) ? (unsignedcharthree) : (negone)) !=
      negone) {
    printf("???_MIN_UNSAFE() should have been able to correctly answer this "
           "question featuring a negative operand and an unsigned char "
           "operand. _MIN_UNSAFE(%uc, %d) != %d\n\n",
           unsignedcharthree, negone, negone);
  } else {
  }
  return 0;
}


x86 assembly (clang, -O0):
<test_minmax_fast>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x3,-0x4(%rbp)
movb   $0x3,-0x5(%rbp)
movq   $0x3,-0x10(%rbp)
movl   $0xffffffff,-0x14(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    1149 <test_minmax_fast+0x39>
mov    -0x4(%rbp),%eax
mov    %eax,-0x18(%rbp)
jmp    114f <test_minmax_fast+0x3f>
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
je     1160 <test_minmax_fast+0x50>
jmp    116e <test_minmax_fast+0x5e>
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
cmp    -0x14(%rbp),%eax
jbe    1185 <test_minmax_fast+0x75>
mov    -0x4(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    118b <test_minmax_fast+0x7b>
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
je     119c <test_minmax_fast+0x8c>
jmp    11aa <test_minmax_fast+0x9a>
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
cmp    %rcx,%rax
jge    11c8 <test_minmax_fast+0xb8>
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
jmp    11d0 <test_minmax_fast+0xc0>
movslq -0x14(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x14(%rbp),%rcx
cmp    %rcx,%rax
je     11fe <test_minmax_fast+0xee>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x14(%rbp),%ecx
lea    0xf1e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1203 <test_minmax_fast+0xf3>
jmp    1203 <test_minmax_fast+0xf3>
movzbl -0x5(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    121c <test_minmax_fast+0x10c>
movzbl -0x5(%rbp),%eax
mov    %eax,-0x2c(%rbp)
jmp    1222 <test_minmax_fast+0x112>
mov    -0x14(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x14(%rbp),%eax
je     124b <test_minmax_fast+0x13b>
movzbl -0x5(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x14(%rbp),%ecx
lea    0xf71(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1250 <test_minmax_fast+0x140>
jmp    1250 <test_minmax_fast+0x140>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_minmax_fast>:
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [136 x i8] c"???_MIN_UNSAFE() should not have been able to correctly answer this question featuring a negative operand and an unsigned int operand.\0A\00"
@.str.1 = [136 x i8] c"???_MAX_UNSAFE() should not have been able to correctly answer this question featuring a negative operand and an unsigned int operand.\0A\00"
@.str.2 = [160 x i8] c"???_MIN_UNSAFE() should have been able to correctly answer this question featuring a negative operand and a long long operand. _MIN_UNSAFE(%lldLL, %d) != %d\0A\0A\00"
@.str.3 = [161 x i8] c"???_MIN_UNSAFE() should have been able to correctly answer this question featuring a negative operand and an unsigned char operand. _MIN_UNSAFE(%uc, %d) != %d\0A\0A\00"
define i32 @test_minmax_fast() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i64
%4 = alloca i32
store i32 3, i32* %1
store i8 3, i8* %2
store i64 3, i64* %3
store i32 -1, i32* %4
%5 = load i32, i32* %1
%6 = load i32, i32* %4
%7 = icmp ult i32 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = load i32, i32* %1
br label %12
10: ; preds = %0
%11 = load i32, i32* %4
br label %12
12: ; preds = %10, %8
%13 = phi i32 [ %9, %8 ], [ %11, %10 ]
%14 = load i32, i32* %4
%15 = icmp ne i32 %13, %14
br i1 %15, label %16, label %17
16: ; preds = %12
br label %19
17: ; preds = %12
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str, i64 0, i64 0))
br label %19
19: ; preds = %17, %16
%20 = load i32, i32* %1
%21 = load i32, i32* %4
%22 = icmp ugt i32 %20, %21
br i1 %22, label %23, label %25
23: ; preds = %19
%24 = load i32, i32* %1
br label %27
25: ; preds = %19
%26 = load i32, i32* %4
br label %27
27: ; preds = %25, %23
%28 = phi i32 [ %24, %23 ], [ %26, %25 ]
%29 = load i32, i32* %1
%30 = icmp ne i32 %28, %29
br i1 %30, label %31, label %32
31: ; preds = %27
br label %34
32: ; preds = %27
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.1, i64 0, i64 0))
br label %34
34: ; preds = %32, %31
%35 = load i64, i64* %3
%36 = load i32, i32* %4
%37 = sext i32 %36 to i64
%38 = icmp slt i64 %35, %37
br i1 %38, label %39, label %41
39: ; preds = %34
%40 = load i64, i64* %3
br label %44
41: ; preds = %34
%42 = load i32, i32* %4
%43 = sext i32 %42 to i64
br label %44
44: ; preds = %41, %39
%45 = phi i64 [ %40, %39 ], [ %43, %41 ]
%46 = load i32, i32* %4
%47 = sext i32 %46 to i64
%48 = icmp ne i64 %45, %47
br i1 %48, label %49, label %54
49: ; preds = %44
%50 = load i64, i64* %3
%51 = load i32, i32* %4
%52 = load i32, i32* %4
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str.2, i64 0, i64 0), i64 %50, i32 %51, i32 %52)
br label %55
54: ; preds = %44
br label %55
55: ; preds = %54, %49
%56 = load i8, i8* %2
%57 = zext i8 %56 to i32
%58 = load i32, i32* %4
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %63
60: ; preds = %55
%61 = load i8, i8* %2
%62 = zext i8 %61 to i32
br label %65
63: ; preds = %55
%64 = load i32, i32* %4
br label %65
65: ; preds = %63, %60
%66 = phi i32 [ %62, %60 ], [ %64, %63 ]
%67 = load i32, i32* %4
%68 = icmp ne i32 %66, %67
br i1 %68, label %69, label %75
69: ; preds = %65
%70 = load i8, i8* %2
%71 = zext i8 %70 to i32
%72 = load i32, i32* %4
%73 = load i32, i32* %4
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str.3, i64 0, i64 0), i32 %71, i32 %72, i32 %73)
br label %76
75: ; preds = %65
br label %76
76: ; preds = %75, %69
ret i32 0
}

LLVM IR (-O2):
define i32 @test_minmax_fast() {
ret i32 0
}