#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(void) {
  int n = 2012;
  int leap = ((n % 4) == 0);
  assert(leap == 1);
  int number = 70;
  int ascii = number > 65 && number < 91;
  assert(ascii == 1);
  char ch = 'S';
  int uppercase = ch >= 65 && ch <= 90;
  assert(uppercase == 1);
  ch = 's';
  uppercase = ch >= 65 && ch <= 90;
  assert(uppercase == 0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x7dc,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x1,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x46,-0x10(%rbp)
xor    %eax,%eax
cmpl   $0x41,-0x10(%rbp)
mov    %al,-0x1d(%rbp)
jle    1170 <main+0x60>
cmpl   $0x5b,-0x10(%rbp)
setl   %al
mov    %al,-0x1d(%rbp)
mov    -0x1d(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x1,-0x14(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movb   $0x53,-0x15(%rbp)
movsbl -0x15(%rbp),%ecx
xor    %eax,%eax
cmp    $0x41,%ecx
mov    %al,-0x1e(%rbp)
jl     11af <main+0x9f>
movsbl -0x15(%rbp),%eax
cmp    $0x5a,%eax
setle  %al
mov    %al,-0x1e(%rbp)
mov    -0x1e(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movb   $0x73,-0x15(%rbp)
movsbl -0x15(%rbp),%ecx
xor    %eax,%eax
cmp    $0x41,%ecx
mov    %al,-0x1f(%rbp)
jl     11ee <main+0xde>
movsbl -0x15(%rbp),%eax
cmp    $0x5a,%eax
setle  %al
mov    %al,-0x1f(%rbp)
mov    -0x1f(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x20,%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>
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 i8
%7 = alloca i32
store i32 0, i32* %1
store i32 2012, i32* %2
%8 = load i32, i32* %2
%9 = srem i32 %8, 4
%10 = icmp eq i32 %9, 0
%11 = zext i1 %10 to i32
store i32 %11, i32* %3
%12 = load i32, i32* %3
%13 = icmp eq i32 %12, 1
%14 = zext i1 %13 to i32
%15 = call i32 @assert(i32 %14)
store i32 70, i32* %4
%16 = load i32, i32* %4
%17 = icmp sgt i32 %16, 65
br i1 %17, label %18, label %21
18: ; preds = %0
%19 = load i32, i32* %4
%20 = icmp slt i32 %19, 91
br label %21
21: ; preds = %18, %0
%22 = phi i1 [ false, %0 ], [ %20, %18 ]
%23 = zext i1 %22 to i32
store i32 %23, i32* %5
%24 = load i32, i32* %5
%25 = icmp eq i32 %24, 1
%26 = zext i1 %25 to i32
%27 = call i32 @assert(i32 %26)
store i8 83, i8* %6
%28 = load i8, i8* %6
%29 = sext i8 %28 to i32
%30 = icmp sge i32 %29, 65
br i1 %30, label %31, label %35
31: ; preds = %21
%32 = load i8, i8* %6
%33 = sext i8 %32 to i32
%34 = icmp sle i32 %33, 90
br label %35
35: ; preds = %31, %21
%36 = phi i1 [ false, %21 ], [ %34, %31 ]
%37 = zext i1 %36 to i32
store i32 %37, i32* %7
%38 = load i32, i32* %7
%39 = icmp eq i32 %38, 1
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 %40)
store i8 115, i8* %6
%42 = load i8, i8* %6
%43 = sext i8 %42 to i32
%44 = icmp sge i32 %43, 65
br i1 %44, label %45, label %49
45: ; preds = %35
%46 = load i8, i8* %6
%47 = sext i8 %46 to i32
%48 = icmp sle i32 %47, 90
br label %49
49: ; preds = %45, %35
%50 = phi i1 [ false, %35 ], [ %48, %45 ]
%51 = zext i1 %50 to i32
store i32 %51, i32* %7
%52 = load i32, i32* %7
%53 = icmp eq i32 %52, 0
%54 = zext i1 %53 to i32
%55 = call i32 @assert(i32 %54)
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)
ret i32 0
}