#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*/ cm_print_error(char *, unsigned long const,
                                  unsigned long const, unsigned long const);
int integer_not_in_range_display_error(const unsigned long int value,
                                       const unsigned long int range_min,
                                       const unsigned long int range_max) {
  if (value < range_min || value > range_max) {
    return 1;
  }
  cm_print_error("%lu"
                 " is within the range "
                 "%lu"
                 "-"
                 "%lu"
                 "\n",
                 value, range_min, range_max);
  return 0;
}


x86 assembly (clang, -O0):
<integer_not_in_range_display_error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
jb     1140 <integer_not_in_range_display_error+0x30>
mov    -0x10(%rbp),%rax
cmp    -0x20(%rbp),%rax
jbe    114c <integer_not_in_range_display_error+0x3c>
movl   $0x1,-0x4(%rbp)
jmp    116b <integer_not_in_range_display_error+0x5b>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
lea    0xea1(%rip),%rdi
call   1030 <cm_print_error@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<integer_not_in_range_display_error>:
mov    %rdx,%rcx
mov    %rsi,%rdx
mov    $0x1,%eax
cmp    %rsi,%rdi
jb     113b <integer_not_in_range_display_error+0x2b>
mov    %rdi,%rsi
cmp    %rcx,%rdi
ja     113b <integer_not_in_range_display_error+0x2b>
push   %rax
lea    0xed0(%rip),%rdi
call   1030 <cm_print_error@plt>
xor    %eax,%eax
add    $0x8,%rsp
ret

LLVM IR (-O0):
@.str = [33 x i8] c"%lu is within the range %lu-%lu\0A\00"
define i32 @integer_not_in_range_display_error(i64 %0, i64 %1, i64 %2) {
%4 = alloca i32
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
store i64 %0, i64* %5
store i64 %1, i64* %6
store i64 %2, i64* %7
%8 = load i64, i64* %5
%9 = load i64, i64* %6
%10 = icmp ult i64 %8, %9
br i1 %10, label %15, label %11
11: ; preds = %3
%12 = load i64, i64* %5
%13 = load i64, i64* %7
%14 = icmp ugt i64 %12, %13
br i1 %14, label %15, label %16
15: ; preds = %11, %3
store i32 1, i32* %4
br label %21
16: ; preds = %11
%17 = load i64, i64* %5
%18 = load i64, i64* %6
%19 = load i64, i64* %7
%20 = call i32 @cm_print_error(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i64 %17, i64 %18, i64 %19)
store i32 0, i32* %4
br label %21
21: ; preds = %16, %15
%22 = load i32, i32* %4
ret i32 %22
}

LLVM IR (-O2):
@.str = [33 x i8] c"%lu is within the range %lu-%lu\0A\00"
define i32 @integer_not_in_range_display_error(i64 %0, i64 %1, i64 %2) {
%4 = icmp ult i64 %0, %1
%5 = icmp ugt i64 %0, %2
%6 = or i1 %4, %5
br i1 %6, label %9, label %7
7: ; preds = %3
%8 = tail call i32 @cm_print_error(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i64 %0, i64 %1, i64 %2)
br label %9
9: ; preds = %3, %7
%10 = phi i32 [ 0, %7 ], [ 1, %3 ]
ret i32 %10
}