#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*/ assert(int);
int main() {
  unsigned int plus_one = 1;
  int minus_one = -1;
  int v1 = 0;
  int v2 = 0;
  int v3 = 0;
  int v4 = 0;
  if (plus_one < minus_one) {
    v1 = 1;
    assert(1);
  }
  assert(v1 == 1);
  unsigned char port = 0x5a;
  unsigned char result_8 = (~port) >> 4;
  if (result_8 == 0xfa) {
    v2 = 2;
  }
  assert(v2 == 2);
  unsigned short int allbits = -1;
  short int signedallbits = allbits;
  int unsignedtosigned = allbits;
  unsigned int unsignedtounsigned = allbits;
  int signedtosigned = signedallbits;
  unsigned int signedtounsigned = signedallbits;
  if (unsignedtosigned == 65535 && unsignedtounsigned == 65535 &&
      signedtosigned == -1 && signedtounsigned == 4294967295) {
    v3 = 3;
  }
  assert(v3 == 3);
  unsigned int allOne = -1;
  int castToInt = allOne;
  long castToLong = allOne;
  long castToLong2 = castToInt;
  unsigned long castToULong = allOne;
  if (castToInt == -1 && castToLong == 4294967295UL && castToLong2 == -1 &&
      castToULong == 4294967295UL) {
    v4 = 4;
  }
  assert(v4 == 4);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0xffffffff,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jae    1166 <main+0x56>
movl   $0x1,-0x10(%rbp)
mov    $0x1,%edi
call   1030 <assert@plt>
cmpl   $0x1,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movb   $0x5a,-0x1d(%rbp)
movzbl -0x1d(%rbp),%eax
xor    $0xffffffff,%eax
sar    $0x4,%eax
mov    %al,-0x1e(%rbp)
movzbl -0x1e(%rbp),%eax
cmp    $0xfa,%eax
jne    119e <main+0x8e>
movl   $0x2,-0x14(%rbp)
cmpl   $0x2,-0x14(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movw   $0xffff,-0x20(%rbp)
mov    -0x20(%rbp),%ax
mov    %ax,-0x22(%rbp)
movzwl -0x20(%rbp),%eax
mov    %eax,-0x28(%rbp)
movzwl -0x20(%rbp),%eax
mov    %eax,-0x2c(%rbp)
movswl -0x22(%rbp),%eax
mov    %eax,-0x30(%rbp)
movswl -0x22(%rbp),%eax
mov    %eax,-0x34(%rbp)
cmpl   $0xffff,-0x28(%rbp)
jne    1215 <main+0x105>
cmpl   $0xffff,-0x2c(%rbp)
jne    1215 <main+0x105>
cmpl   $0xffffffff,-0x30(%rbp)
jne    1215 <main+0x105>
mov    -0x34(%rbp),%eax
mov    $0xffffffff,%ecx
cmp    %rcx,%rax
jne    1215 <main+0x105>
movl   $0x3,-0x18(%rbp)
cmpl   $0x3,-0x18(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0xffffffff,-0x38(%rbp)
mov    -0x38(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x38(%rbp),%eax
mov    %rax,-0x48(%rbp)
movslq -0x3c(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x38(%rbp),%eax
mov    %rax,-0x58(%rbp)
cmpl   $0xffffffff,-0x3c(%rbp)
jne    1283 <main+0x173>
mov    $0xffffffff,%eax
cmp    %rax,-0x48(%rbp)
jne    1283 <main+0x173>
cmpq   $0xffffffffffffffff,-0x50(%rbp)
jne    1283 <main+0x173>
mov    $0xffffffff,%eax
cmp    %rax,-0x58(%rbp)
jne    1283 <main+0x173>
movl   $0x4,-0x1c(%rbp)
cmpl   $0x4,-0x1c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8
%9 = alloca i8
%10 = alloca i16
%11 = alloca i16
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i64
%19 = alloca i64
%20 = alloca i64
store i32 0, i32* %1
store i32 1, i32* %2
store i32 -1, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
%21 = load i32, i32* %2
%22 = load i32, i32* %3
%23 = icmp ult i32 %21, %22
br i1 %23, label %24, label %26
24: ; preds = %0
store i32 1, i32* %4
%25 = call i32 @assert(i32 1)
br label %26
26: ; preds = %24, %0
%27 = load i32, i32* %4
%28 = icmp eq i32 %27, 1
%29 = zext i1 %28 to i32
%30 = call i32 @assert(i32 %29)
store i8 90, i8* %8
%31 = load i8, i8* %8
%32 = zext i8 %31 to i32
%33 = xor i32 %32, -1
%34 = ashr i32 %33, 4
%35 = trunc i32 %34 to i8
store i8 %35, i8* %9
%36 = load i8, i8* %9
%37 = zext i8 %36 to i32
%38 = icmp eq i32 %37, 250
br i1 %38, label %39, label %40
39: ; preds = %26
store i32 2, i32* %5
br label %40
40: ; preds = %39, %26
%41 = load i32, i32* %5
%42 = icmp eq i32 %41, 2
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 %43)
store i16 -1, i16* %10
%45 = load i16, i16* %10
store i16 %45, i16* %11
%46 = load i16, i16* %10
%47 = zext i16 %46 to i32
store i32 %47, i32* %12
%48 = load i16, i16* %10
%49 = zext i16 %48 to i32
store i32 %49, i32* %13
%50 = load i16, i16* %11
%51 = sext i16 %50 to i32
store i32 %51, i32* %14
%52 = load i16, i16* %11
%53 = sext i16 %52 to i32
store i32 %53, i32* %15
%54 = load i32, i32* %12
%55 = icmp eq i32 %54, 65535
br i1 %55, label %56, label %67
56: ; preds = %40
%57 = load i32, i32* %13
%58 = icmp eq i32 %57, 65535
br i1 %58, label %59, label %67
59: ; preds = %56
%60 = load i32, i32* %14
%61 = icmp eq i32 %60, -1
br i1 %61, label %62, label %67
62: ; preds = %59
%63 = load i32, i32* %15
%64 = zext i32 %63 to i64
%65 = icmp eq i64 %64, 4294967295
br i1 %65, label %66, label %67
66: ; preds = %62
store i32 3, i32* %6
br label %67
67: ; preds = %66, %62, %59, %56, %40
%68 = load i32, i32* %6
%69 = icmp eq i32 %68, 3
%70 = zext i1 %69 to i32
%71 = call i32 @assert(i32 %70)
store i32 -1, i32* %16
%72 = load i32, i32* %16
store i32 %72, i32* %17
%73 = load i32, i32* %16
%74 = zext i32 %73 to i64
store i64 %74, i64* %18
%75 = load i32, i32* %17
%76 = sext i32 %75 to i64
store i64 %76, i64* %19
%77 = load i32, i32* %16
%78 = zext i32 %77 to i64
store i64 %78, i64* %20
%79 = load i32, i32* %17
%80 = icmp eq i32 %79, -1
br i1 %80, label %81, label %91
81: ; preds = %67
%82 = load i64, i64* %18
%83 = icmp eq i64 %82, 4294967295
br i1 %83, label %84, label %91
84: ; preds = %81
%85 = load i64, i64* %19
%86 = icmp eq i64 %85, -1
br i1 %86, label %87, label %91
87: ; preds = %84
%88 = load i64, i64* %20
%89 = icmp eq i64 %88, 4294967295
br i1 %89, label %90, label %91
90: ; preds = %87
store i32 4, i32* %7
br label %91
91: ; preds = %90, %87, %84, %81, %67
%92 = load i32, i32* %7
%93 = icmp eq i32 %92, 4
%94 = zext i1 %93 to i32
%95 = call i32 @assert(i32 %94)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @assert(i32 1)
%2 = tail call i32 @assert(i32 1)
%3 = tail call i32 @assert(i32 1)
%4 = tail call i32 @assert(i32 1)
%5 = tail call i32 @assert(i32 1)
ret i32 0
}