#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ EOF;
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ fscanf(int /*<<< orphan*/ *, char *, int *, unsigned int *,
                  unsigned int *);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ puts(char *);
int main(int argc, char *argv[]) {
  FILE *fp;
  int a;
  unsigned b, c;
  if (argc != 2) {
    printf("Usage: %s [FILE]\n", argv[0]);
    return 1;
  }
  fp = fopen(*++argv, "r");
  while (fscanf(fp, "%d,%d,%d", &a, &b, &c) != EOF)
    if (!!(a & 1 << --b) == !!(a & 1 << --c))
      puts("true");
    else
      puts("false");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     117f <main+0x3f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe92(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1252 <main+0x112>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
mov    0x8(%rax),%rdi
lea    0xe79(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe67(%rip),%rsi
lea    -0x1c(%rbp),%rdx
lea    -0x20(%rbp),%rcx
lea    -0x24(%rbp),%r8
call   1050 <fscanf@plt>
mov    0x2e23(%rip),%rcx
cmp    (%rcx),%rax
je     124b <main+0x10b>
mov    -0x1c(%rbp),%eax
mov    -0x20(%rbp),%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x20(%rbp)
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    -0x1c(%rbp),%ecx
mov    %ecx,-0x28(%rbp)
mov    -0x24(%rbp),%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x24(%rbp)
mov    $0x1,%edx
shl    %cl,%edx
mov    -0x28(%rbp),%ecx
and    %edx,%ecx
cmp    $0x0,%ecx
setne  %cl
xor    $0xff,%cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
cmp    %ecx,%eax
jne    123a <main+0xfa>
lea    0xded(%rip),%rdi
call   1030 <puts@plt>
jmp    1246 <main+0x106>
lea    0xde1(%rip),%rdi
call   1030 <puts@plt>
jmp    11a2 <main+0x62>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
cmp    $0x2,%edi
jne    121a <main+0xda>
mov    0x8(%rsi),%rdi
lea    0xeb0(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,%rbx
lea    0xea3(%rip),%rsi
lea    0x14(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0xc(%rsp),%r8
mov    %rax,%rdi
call   1050 <fscanf@plt>
mov    0x2e59(%rip),%rdx
xor    %ecx,%ecx
cmp    (%rdx),%rax
je     1232 <main+0xf2>
lea    0xe7c(%rip),%r14
lea    0xe6c(%rip),%r15
lea    0x14(%rsp),%r12
lea    0x10(%rsp),%r13
lea    0xc(%rsp),%rbp
jmp    11e5 <main+0xa5>
nopl   0x0(%rax)
call   1030 <puts@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %rbp,%r8
call   1050 <fscanf@plt>
mov    0x2e08(%rip),%rcx
cmp    (%rcx),%rax
je     1230 <main+0xf0>
mov    0x14(%rsp),%edx
mov    0x10(%rsp),%eax
add    $0xffffffff,%eax
mov    %edx,%esi
mov    %eax,%ecx
shr    %cl,%esi
mov    0xc(%rsp),%ecx
add    $0xffffffff,%ecx
shr    %cl,%edx
mov    %eax,0x10(%rsp)
mov    %ecx,0xc(%rsp)
xor    %esi,%edx
mov    %r14,%rdi
test   $0x1,%dl
je     11c0 <main+0x80>
lea    0xe0a(%rip),%rdi
jmp    11c0 <main+0x80>
mov    (%rsi),%rsi
lea    0xddc(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%ecx
jmp    1232 <main+0xf2>
xor    %ecx,%ecx
mov    %ecx,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [18 x i8] c"Usage: %s [FILE]\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [9 x i8] c"%d,%d,%d\00"
@EOF = global i64 0
@.str.3 = [5 x i8] c"true\00"
@.str.4 = [6 x i8] c"false\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i32, i32* %4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 0
%15 = load i8*, i8** %14
%16 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %15)
store i32 1, i32* %3
br label %53
17: ; preds = %2
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i32 1
store i8** %19, i8*** %5
%20 = load i8*, i8** %19
%21 = call i32* @fopen(i8* %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %21, i32** %6
br label %22
22: ; preds = %51, %17
%23 = load i32*, i32** %6
%24 = call i64 @fscanf(i32* %23, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32* %7, i32* %8, i32* %9)
%25 = load i64, i64* @EOF
%26 = icmp ne i64 %24, %25
br i1 %26, label %27, label %52
27: ; preds = %22
%28 = load i32, i32* %7
%29 = load i32, i32* %8
%30 = add i32 %29, -1
store i32 %30, i32* %8
%31 = shl i32 1, %30
%32 = and i32 %28, %31
%33 = icmp ne i32 %32, 0
%34 = xor i1 %33, true
%35 = xor i1 %34, true
%36 = zext i1 %35 to i32
%37 = load i32, i32* %7
%38 = load i32, i32* %9
%39 = add i32 %38, -1
store i32 %39, i32* %9
%40 = shl i32 1, %39
%41 = and i32 %37, %40
%42 = icmp ne i32 %41, 0
%43 = xor i1 %42, true
%44 = xor i1 %43, true
%45 = zext i1 %44 to i32
%46 = icmp eq i32 %36, %45
br i1 %46, label %47, label %49
47: ; preds = %27
%48 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %51
49: ; preds = %27
%50 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %51
51: ; preds = %49, %47
br label %22
52: ; preds = %22
store i32 0, i32* %3
br label %53
53: ; preds = %52, %12
%54 = load i32, i32* %3
ret i32 %54
}

LLVM IR (-O2):
@.str = [18 x i8] c"Usage: %s [FILE]\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [9 x i8] c"%d,%d,%d\00"
@EOF = global i64 0
@.str.3 = [5 x i8] c"true\00"
@.str.4 = [6 x i8] c"false\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast i32* %3 to i8*
%7 = bitcast i32* %4 to i8*
%8 = bitcast i32* %5 to i8*
%9 = icmp eq i32 %0, 2
br i1 %9, label %13, label %10
10: ; preds = %2
%11 = load i8*, i8** %1
%12 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %11)
br label %36
13: ; preds = %2
%14 = getelementptr inbounds i8*, i8** %1, i64 1
%15 = load i8*, i8** %14
%16 = tail call i32* @fopen(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%17 = call i64 @fscanf(i32* %16, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32* %3, i32* %4, i32* %5)
%18 = load i64, i64* @EOF
%19 = icmp eq i64 %17, %18
br i1 %19, label %36, label %20
20: ; preds = %13, %20
%21 = load i32, i32* %3
%22 = load i32, i32* %4
%23 = add i32 %22, -1
store i32 %23, i32* %4
%24 = lshr i32 %21, %23
%25 = load i32, i32* %5
%26 = add i32 %25, -1
store i32 %26, i32* %5
%27 = lshr i32 %21, %26
%28 = xor i32 %27, %24
%29 = and i32 %28, 1
%30 = icmp eq i32 %29, 0
%31 = select i1 %30, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%32 = call i32 @puts(i8* dereferenceable(1) %31)
%33 = call i64 @fscanf(i32* %16, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32* %3, i32* %4, i32* %5)
%34 = load i64, i64* @EOF
%35 = icmp eq i64 %33, %34
br i1 %35, label %36, label %20
36: ; preds = %20, %13, %10
%37 = phi i32 [ 1, %10 ], [ 0, %13 ], [ 0, %20 ]
ret i32 %37
}