int ordering_success(int ordering) {
  return (
      (((((ordering)) !=
         (((int)-(((int)0x37ED)
                  << (8 * (((!!(((!!(sizeof(int))) * ((sizeof(int)) - 1)))) *
                            ((((!!(sizeof(int))) * ((sizeof(int)) - 1))) -
                             1)))))))) &&
        (((ordering)) !=
         (((int)-(((int)0x37EE)
                  << (8 * (((!!(((!!(sizeof(int))) * ((sizeof(int)) - 1)))) *
                            ((((!!(sizeof(int))) * ((sizeof(int)) - 1))) -
                             1))))))))))
          ? (ordering)
          : ((((((ordering))) <= ((0)))
                  ? (((((ordering))) < ((0)))
                         ? (((((int)-(((int)0x37EF)
                                      << (8 * (((!!(((!!(sizeof(int))) *
                                                     ((sizeof(int)) - 1)))) *
                                                ((((!!(sizeof(int))) *
                                                   ((sizeof(int)) - 1))) -
                                                 1)))))))))
                         : (((0))))
                  : (((((int)-(((int)-(
                        ((int)0x37EF)
                        << (8 *
                            (((!!(((!!(sizeof(int))) * ((sizeof(int)) - 1)))) *
                              ((((!!(sizeof(int))) * ((sizeof(int)) - 1))) -
                               1))))))))))))));
}


x86 assembly (clang, -O0):
<ordering_success>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0xc8130000,-0x4(%rbp)
je     112c <ordering_success+0x2c>
cmpl   $0xc8120000,-0x4(%rbp)
je     112c <ordering_success+0x2c>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    1161 <ordering_success+0x61>
cmpl   $0x0,-0x4(%rbp)
jg     114e <ordering_success+0x4e>
mov    -0x4(%rbp),%edx
xor    %eax,%eax
mov    $0xc8110000,%ecx
cmp    $0x0,%edx
cmovl  %ecx,%eax
mov    %eax,-0xc(%rbp)
jmp    115b <ordering_success+0x5b>
mov    $0x37ef0000,%eax
mov    %eax,-0xc(%rbp)
jmp    115b <ordering_success+0x5b>
mov    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ordering_success>:
mov    %edi,%eax
and    $0xfffeffff,%eax
cmp    $0xc8120000,%eax
mov    $0xc8110000,%eax
cmovne %edi,%eax
ret

LLVM IR (-O0):
define i32 @ordering_success(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, -938278912
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp ne i32 %6, -938344448
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = load i32, i32* %2
br label %21
10: ; preds = %5, %1
%11 = load i32, i32* %2
%12 = icmp sle i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %10
%14 = load i32, i32* %2
%15 = icmp slt i32 %14, 0
%16 = zext i1 %15 to i64
%17 = select i1 %15, i32 -938409984, i32 0
br label %19
18: ; preds = %10
br label %19
19: ; preds = %18, %13
%20 = phi i32 [ %17, %13 ], [ 938409984, %18 ]
br label %21
21: ; preds = %19, %8
%22 = phi i32 [ %9, %8 ], [ %20, %19 ]
ret i32 %22
}

LLVM IR (-O2):
define i32 @ordering_success(i32 %0) {
%2 = and i32 %0, -65537
%3 = icmp eq i32 %2, -938344448
%4 = select i1 %3, i32 -938409984, i32 %0
ret i32 %4
}