#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 *);
int main() {
  int a, b;
  scanf("%d%d", &a, &b);
  if (a > 7) {
    return -1;
  }
  if (b > 200) {
    return -1;
  }
  b = (b >> a) & 1;
  printf("%d", b);
  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
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
cmpl   $0x7,-0x8(%rbp)
jle    1159 <main+0x39>
movl   $0xffffffff,-0x4(%rbp)
jmp    1196 <main+0x76>
cmpl   $0xc8,-0xc(%rbp)
jle    1172 <main+0x52>
movl   $0xffffffff,-0x4(%rbp)
jmp    1196 <main+0x76>
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%ecx
sar    %cl,%eax
and    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xe78(%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   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%ecx
mov    $0xffffffff,%eax
cmp    $0x7,%ecx
jg     1164 <main+0x44>
mov    (%rsp),%esi
cmp    $0xc8,%esi
jg     1164 <main+0x44>
shr    %cl,%esi
and    $0x1,%esi
mov    %esi,(%rsp)
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [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 ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = icmp sgt i32 %6, 7
br i1 %7, label %15, label %8
8: ; preds = %0
%9 = load i32, i32* %2
%10 = icmp sgt i32 %9, 200
br i1 %10, label %15, label %11
11: ; preds = %8
%12 = lshr i32 %9, %6
%13 = and i32 %12, 1
store i32 %13, i32* %2
%14 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %13)
br label %15
15: ; preds = %8, %0, %11
%16 = phi i32 [ 0, %11 ], [ -1, %0 ], [ -1, %8 ]
ret i32 %16
}