#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 main(void) {
  unsigned int i = 1;
  unsigned int j = 2;
  unsigned int k = 3;
  unsigned int m = 2;
  printf("%d", i == 1);
  printf("%d", j == 3);
  printf("%d", i >= 1 && j < 4);
  printf("%d", m <= 99 && k < m);
  printf("%d", j >= i || k == m);
  printf("%d", k + m < j || 3 - j >= k);
  printf("%d", !m);
  printf("%d", !(j - m));
  printf("%d", !(k > m));
  printf("%d", !(j > k));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0x2,-0xc(%rbp)
movl   $0x3,-0x10(%rbp)
movl   $0x2,-0x14(%rbp)
cmpl   $0x1,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xeb2(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x3,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
cmpl   $0x1,-0x8(%rbp)
mov    %al,-0x15(%rbp)
jb     1184 <main+0x74>
cmpl   $0x4,-0xc(%rbp)
setb   %al
mov    %al,-0x15(%rbp)
mov    -0x15(%rbp),%al
and    $0x1,%al
movzbl %al,%esi
lea    0xe6d(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
cmpl   $0x63,-0x14(%rbp)
mov    %al,-0x16(%rbp)
ja     11b3 <main+0xa3>
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
setb   %al
mov    %al,-0x16(%rbp)
mov    -0x16(%rbp),%al
and    $0x1,%al
movzbl %al,%esi
lea    0xe3e(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%ecx
mov    $0x1,%al
cmp    -0x8(%rbp),%ecx
mov    %al,-0x17(%rbp)
jae    11e4 <main+0xd4>
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
sete   %al
mov    %al,-0x17(%rbp)
mov    -0x17(%rbp),%al
and    $0x1,%al
movzbl %al,%esi
lea    0xe0d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%ecx
add    -0x14(%rbp),%ecx
mov    $0x1,%al
cmp    -0xc(%rbp),%ecx
mov    %al,-0x18(%rbp)
jb     121d <main+0x10d>
mov    $0x3,%eax
sub    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
setae  %al
mov    %al,-0x18(%rbp)
mov    -0x18(%rbp),%al
and    $0x1,%al
movzbl %al,%esi
lea    0xdd4(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0x14(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%esi
lea    0xdba(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
sub    -0x14(%rbp),%eax
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%esi
lea    0xd9b(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
seta   %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%esi
lea    0xd7f(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
seta   %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%esi
lea    0xd63(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
xor    %eax,%eax
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
%5 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
store i32 2, i32* %3
store i32 3, i32* %4
store i32 2, i32* %5
%6 = load i32, i32* %2
%7 = icmp eq i32 %6, 1
%8 = zext i1 %7 to i32
%9 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = load i32, i32* %3
%11 = icmp eq i32 %10, 3
%12 = zext i1 %11 to i32
%13 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %12)
%14 = load i32, i32* %2
%15 = icmp uge i32 %14, 1
br i1 %15, label %16, label %19
16: ; preds = %0
%17 = load i32, i32* %3
%18 = icmp ult i32 %17, 4
br label %19
19: ; preds = %16, %0
%20 = phi i1 [ false, %0 ], [ %18, %16 ]
%21 = zext i1 %20 to i32
%22 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %21)
%23 = load i32, i32* %5
%24 = icmp ule i32 %23, 99
br i1 %24, label %25, label %29
25: ; preds = %19
%26 = load i32, i32* %4
%27 = load i32, i32* %5
%28 = icmp ult i32 %26, %27
br label %29
29: ; preds = %25, %19
%30 = phi i1 [ false, %19 ], [ %28, %25 ]
%31 = zext i1 %30 to i32
%32 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %31)
%33 = load i32, i32* %3
%34 = load i32, i32* %2
%35 = icmp uge i32 %33, %34
br i1 %35, label %40, label %36
36: ; preds = %29
%37 = load i32, i32* %4
%38 = load i32, i32* %5
%39 = icmp eq i32 %37, %38
br label %40
40: ; preds = %36, %29
%41 = phi i1 [ true, %29 ], [ %39, %36 ]
%42 = zext i1 %41 to i32
%43 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %42)
%44 = load i32, i32* %4
%45 = load i32, i32* %5
%46 = add i32 %44, %45
%47 = load i32, i32* %3
%48 = icmp ult i32 %46, %47
br i1 %48, label %54, label %49
49: ; preds = %40
%50 = load i32, i32* %3
%51 = sub i32 3, %50
%52 = load i32, i32* %4
%53 = icmp uge i32 %51, %52
br label %54
54: ; preds = %49, %40
%55 = phi i1 [ true, %40 ], [ %53, %49 ]
%56 = zext i1 %55 to i32
%57 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %56)
%58 = load i32, i32* %5
%59 = icmp ne i32 %58, 0
%60 = xor i1 %59, true
%61 = zext i1 %60 to i32
%62 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %61)
%63 = load i32, i32* %3
%64 = load i32, i32* %5
%65 = sub i32 %63, %64
%66 = icmp ne i32 %65, 0
%67 = xor i1 %66, true
%68 = zext i1 %67 to i32
%69 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %68)
%70 = load i32, i32* %4
%71 = load i32, i32* %5
%72 = icmp ugt i32 %70, %71
%73 = xor i1 %72, true
%74 = zext i1 %73 to i32
%75 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %74)
%76 = load i32, i32* %3
%77 = load i32, i32* %4
%78 = icmp ugt i32 %76, %77
%79 = xor i1 %78, true
%80 = zext i1 %79 to i32
%81 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %80)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 1)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 0)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 1)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 0)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 1)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 0)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 0)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 1)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 0)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 1)
ret i32 0
}