#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 */
scalar_t__ f();
int getint();
int /*<<< orphan*/ putchar(int);
int /*<<< orphan*/ putint(int);
scalar_t__ t();
int main() {
  int a;
  a = getint();
  int b;
  b = getint();
  int c;
  c = a > b || t() || f();
  putint(c);
  putchar(10);
  c = !(a < b) && t() || f();
  putint(c);
  putchar(10);
  c = a == b || f() && t();
  putint(c);
  putchar(10);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1070 <getint@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1070 <getint@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%ecx
mov    $0x1,%al
cmp    -0xc(%rbp),%ecx
mov    %al,-0x11(%rbp)
jg     11ae <main+0x5e>
mov    $0x0,%al
call   1050 <t@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x11(%rbp)
jne    11ae <main+0x5e>
mov    $0x0,%al
call   1060 <f@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%edi
call   1040 <putint@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jl     11f0 <main+0xa0>
mov    $0x0,%al
call   1050 <t@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x12(%rbp)
jne    1201 <main+0xb1>
mov    $0x0,%al
call   1060 <f@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x12(%rbp)
mov    -0x12(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%edi
call   1040 <putint@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%ecx
mov    $0x1,%al
cmp    -0xc(%rbp),%ecx
mov    %al,-0x13(%rbp)
je     125f <main+0x10f>
mov    $0x0,%al
call   1060 <f@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x14(%rbp)
je     1259 <main+0x109>
mov    $0x0,%al
call   1050 <t@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x14(%rbp)
mov    -0x14(%rbp),%al
mov    %al,-0x13(%rbp)
mov    -0x13(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%edi
call   1040 <putint@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
xor    %eax,%eax
call   1070 <getint@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1070 <getint@plt>
mov    %eax,%ebp
mov    $0x1,%ebx
cmp    %eax,%r14d
jg     118c <main+0x3c>
xor    %eax,%eax
call   1050 <t@plt>
test   %rax,%rax
jne    118c <main+0x3c>
xor    %eax,%eax
call   1060 <f@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
mov    %ebx,%edi
call   1040 <putint@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
cmp    %ebp,%r14d
jl     11b3 <main+0x63>
xor    %eax,%eax
call   1050 <t@plt>
mov    $0x1,%edi
test   %rax,%rax
jne    11c3 <main+0x73>
xor    %eax,%eax
call   1060 <f@plt>
xor    %edi,%edi
test   %rax,%rax
setne  %dil
call   1040 <putint@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x1,%ebx
cmp    %ebp,%r14d
je     11f9 <main+0xa9>
xor    %ebx,%ebx
xor    %eax,%eax
call   1060 <f@plt>
test   %rax,%rax
je     11f9 <main+0xa9>
xor    %eax,%eax
call   1050 <t@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
mov    %ebx,%edi
call   1040 <putint@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 (...) @getint()
store i32 %5, i32* %2
%6 = call i32 (...) @getint()
store i32 %6, i32* %3
%7 = load i32, i32* %2
%8 = load i32, i32* %3
%9 = icmp sgt i32 %7, %8
br i1 %9, label %16, label %10
10: ; preds = %0
%11 = call i64 (...) @t()
%12 = icmp ne i64 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %10
%14 = call i64 (...) @f()
%15 = icmp ne i64 %14, 0
br label %16
16: ; preds = %13, %10, %0
%17 = phi i1 [ true, %10 ], [ true, %0 ], [ %15, %13 ]
%18 = zext i1 %17 to i32
store i32 %18, i32* %4
%19 = load i32, i32* %4
%20 = call i32 @putint(i32 %19)
%21 = call i32 @putchar(i32 10)
%22 = load i32, i32* %2
%23 = load i32, i32* %3
%24 = icmp slt i32 %22, %23
br i1 %24, label %28, label %25
25: ; preds = %16
%26 = call i64 (...) @t()
%27 = icmp ne i64 %26, 0
br i1 %27, label %31, label %28
28: ; preds = %25, %16
%29 = call i64 (...) @f()
%30 = icmp ne i64 %29, 0
br label %31
31: ; preds = %28, %25
%32 = phi i1 [ true, %25 ], [ %30, %28 ]
%33 = zext i1 %32 to i32
store i32 %33, i32* %4
%34 = load i32, i32* %4
%35 = call i32 @putint(i32 %34)
%36 = call i32 @putchar(i32 10)
%37 = load i32, i32* %2
%38 = load i32, i32* %3
%39 = icmp eq i32 %37, %38
br i1 %39, label %48, label %40
40: ; preds = %31
%41 = call i64 (...) @f()
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %40
%44 = call i64 (...) @t()
%45 = icmp ne i64 %44, 0
br label %46
46: ; preds = %43, %40
%47 = phi i1 [ false, %40 ], [ %45, %43 ]
br label %48
48: ; preds = %46, %31
%49 = phi i1 [ true, %31 ], [ %47, %46 ]
%50 = zext i1 %49 to i32
store i32 %50, i32* %4
%51 = load i32, i32* %4
%52 = call i32 @putint(i32 %51)
%53 = call i32 @putchar(i32 10)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @getint()
%2 = tail call i32 (...) @getint()
%3 = icmp sgt i32 %1, %2
br i1 %3, label %11, label %4
4: ; preds = %0
%5 = tail call i64 (...) @t()
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %4
%8 = tail call i64 (...) @f()
%9 = icmp ne i64 %8, 0
%10 = zext i1 %9 to i32
br label %11
11: ; preds = %7, %4, %0
%12 = phi i32 [ 1, %4 ], [ 1, %0 ], [ %10, %7 ]
%13 = tail call i32 @putint(i32 %12)
%14 = tail call i32 @putchar(i32 10)
%15 = icmp slt i32 %1, %2
br i1 %15, label %19, label %16
16: ; preds = %11
%17 = tail call i64 (...) @t()
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %23
19: ; preds = %16, %11
%20 = tail call i64 (...) @f()
%21 = icmp ne i64 %20, 0
%22 = zext i1 %21 to i32
br label %23
23: ; preds = %19, %16
%24 = phi i32 [ 1, %16 ], [ %22, %19 ]
%25 = tail call i32 @putint(i32 %24)
%26 = tail call i32 @putchar(i32 10)
%27 = icmp eq i32 %1, %2
br i1 %27, label %35, label %28
28: ; preds = %23
%29 = tail call i64 (...) @f()
%30 = icmp eq i64 %29, 0
br i1 %30, label %35, label %31
31: ; preds = %28
%32 = tail call i64 (...) @t()
%33 = icmp ne i64 %32, 0
%34 = zext i1 %33 to i32
br label %35
35: ; preds = %28, %31, %23
%36 = phi i32 [ 1, %23 ], [ 0, %28 ], [ %34, %31 ]
%37 = tail call i32 @putint(i32 %36)
%38 = tail call i32 @putchar(i32 10)
ret i32 0
}