#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*/ abort();
int main() {
  unsigned char x1[1] = {0};
  unsigned int s1 = 8;
  int a1 = x1[0] < (unsigned char)(1 << s1);
  unsigned char y1 = (unsigned char)(1 << s1);
  int b1 = x1[0] < y1;
  if (a1 != b1)
    abort();
  unsigned long long x2[1] = {2ULL << (sizeof(int) * 8)};
  unsigned int s2 = sizeof(int) * 8 - 1;
  int a2 = x2[0] >= (unsigned long long)(1 << s2);
  unsigned long long y2 = 1 << s2;
  int b2 = x2[0] >= y2;
  if (a2 != b2)
    abort();
  unsigned long long x3[1] = {2ULL << (sizeof(int) * 8)};
  unsigned int s3 = sizeof(int) * 8 - 1;
  int a3 = x3[0] >= (unsigned long long)(1U << s3);
  unsigned long long y3 = 1U << s3;
  int b3 = x3[0] >= y3;
  if (a3 != b3)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x5(%rbp),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1040 <memset@plt>
movl   $0x8,-0xc(%rbp)
movzbl -0x5(%rbp),%eax
mov    -0xc(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
movzbl %cl,%ecx
cmp    %ecx,%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    %al,-0x11(%rbp)
movzbl -0x5(%rbp),%eax
movzbl -0x11(%rbp),%ecx
cmp    %ecx,%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x18(%rbp),%eax
je     119b <main+0x7b>
mov    $0x0,%al
call   1030 <abort@plt>
mov    0xe5e(%rip),%rax
mov    %rax,-0x20(%rbp)
movl   $0x1f,-0x24(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
movslq %ecx,%rcx
cmp    %rcx,%rax
setae  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x28(%rbp)
mov    -0x24(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
cltq
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x30(%rbp),%rax
setae  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x34(%rbp),%eax
je     1204 <main+0xe4>
mov    $0x0,%al
call   1030 <abort@plt>
mov    0xdf5(%rip),%rax
mov    %rax,-0x40(%rbp)
movl   $0x1f,-0x44(%rbp)
mov    -0x40(%rbp),%rax
mov    -0x44(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
mov    %ecx,%ecx
cmp    %rcx,%rax
setae  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x48(%rbp)
mov    -0x44(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    %eax,%eax
mov    %rax,-0x50(%rbp)
mov    -0x40(%rbp),%rax
cmp    -0x50(%rbp),%rax
setae  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x54(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x54(%rbp),%eax
je     126c <main+0x14c>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@__const.main.x2 = [1 x i64] [i64 8589934592]
@__const.main.x3 = [1 x i64] [i64 8589934592]
define i32 @main() {
%1 = alloca i32
%2 = alloca [1 x i8]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8
%6 = alloca i32
%7 = alloca [1 x i64]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i64
%11 = alloca i32
%12 = alloca [1 x i64]
%13 = alloca i32
%14 = alloca i32
%15 = alloca i64
%16 = alloca i32
store i32 0, i32* %1
%17 = bitcast [1 x i8]* %2 to i8*
store i32 8, i32* %3
%18 = getelementptr inbounds [1 x i8], [1 x i8]* %2, i64 0, i64 0
%19 = load i8, i8* %18
%20 = zext i8 %19 to i32
%21 = load i32, i32* %3
%22 = shl i32 1, %21
%23 = trunc i32 %22 to i8
%24 = zext i8 %23 to i32
%25 = icmp slt i32 %20, %24
%26 = zext i1 %25 to i32
store i32 %26, i32* %4
%27 = load i32, i32* %3
%28 = shl i32 1, %27
%29 = trunc i32 %28 to i8
store i8 %29, i8* %5
%30 = getelementptr inbounds [1 x i8], [1 x i8]* %2, i64 0, i64 0
%31 = load i8, i8* %30
%32 = zext i8 %31 to i32
%33 = load i8, i8* %5
%34 = zext i8 %33 to i32
%35 = icmp slt i32 %32, %34
%36 = zext i1 %35 to i32
store i32 %36, i32* %6
%37 = load i32, i32* %4
%38 = load i32, i32* %6
%39 = icmp ne i32 %37, %38
br i1 %39, label %40, label %42
40: ; preds = %0
%41 = call i32 (...) @abort()
unreachable
42: ; preds = %0
%43 = bitcast [1 x i64]* %7 to i8*
store i32 31, i32* %8
%44 = getelementptr inbounds [1 x i64], [1 x i64]* %7, i64 0, i64 0
%45 = load i64, i64* %44
%46 = load i32, i32* %8
%47 = shl i32 1, %46
%48 = sext i32 %47 to i64
%49 = icmp uge i64 %45, %48
%50 = zext i1 %49 to i32
store i32 %50, i32* %9
%51 = load i32, i32* %8
%52 = shl i32 1, %51
%53 = sext i32 %52 to i64
store i64 %53, i64* %10
%54 = getelementptr inbounds [1 x i64], [1 x i64]* %7, i64 0, i64 0
%55 = load i64, i64* %54
%56 = load i64, i64* %10
%57 = icmp uge i64 %55, %56
%58 = zext i1 %57 to i32
store i32 %58, i32* %11
%59 = load i32, i32* %9
%60 = load i32, i32* %11
%61 = icmp ne i32 %59, %60
br i1 %61, label %62, label %64
62: ; preds = %42
%63 = call i32 (...) @abort()
unreachable
64: ; preds = %42
%65 = bitcast [1 x i64]* %12 to i8*
store i32 31, i32* %13
%66 = getelementptr inbounds [1 x i64], [1 x i64]* %12, i64 0, i64 0
%67 = load i64, i64* %66
%68 = load i32, i32* %13
%69 = shl i32 1, %68
%70 = zext i32 %69 to i64
%71 = icmp uge i64 %67, %70
%72 = zext i1 %71 to i32
store i32 %72, i32* %14
%73 = load i32, i32* %13
%74 = shl i32 1, %73
%75 = zext i32 %74 to i64
store i64 %75, i64* %15
%76 = getelementptr inbounds [1 x i64], [1 x i64]* %12, i64 0, i64 0
%77 = load i64, i64* %76
%78 = load i64, i64* %15
%79 = icmp uge i64 %77, %78
%80 = zext i1 %79 to i32
store i32 %80, i32* %16
%81 = load i32, i32* %14
%82 = load i32, i32* %16
%83 = icmp ne i32 %81, %82
br i1 %83, label %84, label %86
84: ; preds = %64
%85 = call i32 (...) @abort()
unreachable
86: ; preds = %64
ret i32 0
}

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