#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*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int a, b, temp;
  scanf("%d", &a);
  if (a < 0 && b > 7)
    return 1;
  scanf("%d", &b);
  if (a < 0 && b > 200)
    return 1;
  temp = (b >> a) & 1;
  printf("%d", temp);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jge    115f <main+0x3f>
cmpl   $0x7,-0xc(%rbp)
jle    115f <main+0x3f>
movl   $0x1,-0x4(%rbp)
jmp    11b6 <main+0x96>
lea    0xe9a(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jge    1192 <main+0x72>
cmpl   $0xc8,-0xc(%rbp)
jle    1192 <main+0x72>
movl   $0x1,-0x4(%rbp)
jmp    11b6 <main+0x96>
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%ecx
sar    %cl,%eax
and    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%esi
lea    0xe56(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0xc(%rsp),%ecx
mov    0x8(%rsp),%esi
test   %ecx,%ecx
jns    115f <main+0x3f>
mov    $0x1,%eax
cmp    $0xc8,%esi
jg     1172 <main+0x52>
shr    %cl,%esi
and    $0x1,%esi
lea    0xe95(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%6 = load i32, i32* %2
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %0
%9 = load i32, i32* %3
%10 = icmp sgt i32 %9, 7
br i1 %10, label %11, label %12
11: ; preds = %8
store i32 1, i32* %1
br label %27
12: ; preds = %8, %0
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%14 = load i32, i32* %2
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %12
%17 = load i32, i32* %3
%18 = icmp sgt i32 %17, 200
br i1 %18, label %19, label %20
19: ; preds = %16
store i32 1, i32* %1
br label %27
20: ; preds = %16, %12
%21 = load i32, i32* %3
%22 = load i32, i32* %2
%23 = ashr i32 %21, %22
%24 = and i32 %23, 1
store i32 %24, i32* %4
%25 = load i32, i32* %4
%26 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %25)
store i32 0, i32* %1
br label %27
27: ; preds = %20, %19, %11
%28 = load i32, i32* %1
ret i32 %28
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%7 = load i32, i32* %1
%8 = icmp slt i32 %7, 0
%9 = load i32, i32* %2
%10 = icmp sgt i32 %9, 200
%11 = select i1 %8, i1 %10, i1 false
br i1 %11, label %16, label %12
12: ; preds = %0
%13 = lshr i32 %9, %7
%14 = and i32 %13, 1
%15 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %14)
br label %16
16: ; preds = %0, %12
%17 = phi i32 [ 0, %12 ], [ 1, %0 ]
ret i32 %17
}