#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*/ test_fail_message(int /*<<< orphan*/ *, char const *, int,
                                     char *, char const *, char const *, char *,
                                     char *, unsigned int const,
                                     unsigned int const);
int test_uint_le(const char *file, int line, const char *s1, const char *s2,
                 const unsigned int t1, const unsigned int t2) {
  if (t1 <= t2)
    return 1;
  test_fail_message(NULL, file, line, "unsigned int", s1, s2, "<=",
                    "["
                    "%u"
                    "] compared to ["
                    "%u"
                    "]",
                    t1, t2);
  return 0;
}


x86 assembly (clang, -O0):
<test_uint_le>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x58,%rsp
mov    %rdi,-0x18(%rbp)
mov    %esi,-0x1c(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    %r8d,-0x34(%rbp)
mov    %r9d,-0x38(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x38(%rbp),%eax
ja     1148 <test_uint_le+0x38>
movl   $0x1,-0xc(%rbp)
jmp    1195 <test_uint_le+0x85>
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
mov    -0x34(%rbp),%r10d
mov    -0x38(%rbp),%eax
xor    %ecx,%ecx
mov    %ecx,%edi
lea    0xe97(%rip),%rcx
lea    0xe9d(%rip),%rbx
lea    0xe99(%rip),%r11
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
call   1030 <test_fail_message@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x58,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_uint_le>:
push   %r14
push   %rbx
push   %rax
mov    %r9d,%ebx
mov    %r8d,%eax
mov    $0x1,%r14d
cmp    %r9d,%r8d
jbe    1159 <test_uint_le+0x49>
mov    %rcx,%r9
mov    %rdx,%r8
mov    %esi,%edx
mov    %rdi,%rsi
lea    0xed9(%rip),%r10
lea    0xecf(%rip),%r11
lea    0xebb(%rip),%rcx
xor    %r14d,%r14d
xor    %edi,%edi
push   %rbx
push   %rax
push   %r10
push   %r11
call   1030 <test_fail_message@plt>
add    $0x20,%rsp
mov    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [13 x i8] c"unsigned int\00"
@.str.1 = [3 x i8] c"<=\00"
@.str.2 = [22 x i8] c"[%u] compared to [%u]\00"
define i32 @test_uint_le(i8* %0, i32 %1, i8* %2, i8* %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
store i8* %0, i8** %8
store i32 %1, i32* %9
store i8* %2, i8** %10
store i8* %3, i8** %11
store i32 %4, i32* %12
store i32 %5, i32* %13
%14 = load i32, i32* %12
%15 = load i32, i32* %13
%16 = icmp ule i32 %14, %15
br i1 %16, label %17, label %18
17: ; preds = %6
store i32 1, i32* %7
br label %26
18: ; preds = %6
%19 = load i8*, i8** %8
%20 = load i32, i32* %9
%21 = load i8*, i8** %10
%22 = load i8*, i8** %11
%23 = load i32, i32* %12
%24 = load i32, i32* %13
%25 = call i32 @test_fail_message(i32* null, i8* %19, i32 %20, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %21, i8* %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 %23, i32 %24)
store i32 0, i32* %7
br label %26
26: ; preds = %18, %17
%27 = load i32, i32* %7
ret i32 %27
}

LLVM IR (-O2):
@.str = [13 x i8] c"unsigned int\00"
@.str.1 = [3 x i8] c"<=\00"
@.str.2 = [22 x i8] c"[%u] compared to [%u]\00"
define i32 @test_uint_le(i8* %0, i32 %1, i8* %2, i8* %3, i32 %4, i32 %5) {
%7 = icmp ugt i32 %4, %5
br i1 %7, label %8, label %10
8: ; preds = %6
%9 = tail call i32 @test_fail_message(i32* null, i8* %0, i32 %1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %2, i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 %4, i32 %5)
br label %10
10: ; preds = %6, %8
%11 = phi i32 [ 0, %8 ], [ 1, %6 ]
ret i32 %11
}