#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*/ puts(char *);
int /*<<< orphan*/ read(int /*<<< orphan*/, unsigned int *, int);
int main() {
  unsigned int num = 0;
  read(0, &num, 4);
  if (num > 10) {
    puts(">10");
    if (num < 20) {
      puts("<20");
    } else {
      puts(">=20");
    }
    if (num % 2) {
      puts("odd");
    } else {
      puts("even");
    }
  } else {
    puts("<=10");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
xor    %edi,%edi
lea    -0x8(%rbp),%rsi
mov    $0x4,%edx
call   1040 <read@plt>
cmpl   $0xa,-0x8(%rbp)
jbe    11b4 <main+0x94>
lea    0xea9(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x14,-0x8(%rbp)
jae    1177 <main+0x57>
lea    0xe97(%rip),%rdi
call   1030 <puts@plt>
jmp    1183 <main+0x63>
lea    0xe8a(%rip),%rdi
call   1030 <puts@plt>
mov    -0x8(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     11a3 <main+0x83>
lea    0xe74(%rip),%rdi
call   1030 <puts@plt>
jmp    11af <main+0x8f>
lea    0xe67(%rip),%rdi
call   1030 <puts@plt>
jmp    11c0 <main+0xa0>
lea    0xe5b(%rip),%rdi
call   1030 <puts@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movl   $0x0,0xc(%rsp)
lea    0xc(%rsp),%rsi
xor    %edi,%edi
mov    $0x4,%edx
call   1040 <read@plt>
mov    0xc(%rsp),%ebx
cmp    $0xb,%ebx
jb     1184 <main+0x64>
lea    0xeb2(%rip),%rdi
call   1030 <puts@plt>
cmp    $0x14,%ebx
lea    0xea7(%rip),%rax
lea    0xea4(%rip),%rdi
cmovb  %rax,%rdi
call   1030 <puts@plt>
test   $0x1,%bl
lea    0xe9a(%rip),%rax
lea    0xe8f(%rip),%rdi
cmove  %rax,%rdi
jmp    118b <main+0x6b>
lea    0xe8b(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c">10\00"
@.str.1 = [4 x i8] c"<20\00"
@.str.2 = [5 x i8] c">=20\00"
@.str.3 = [4 x i8] c"odd\00"
@.str.4 = [5 x i8] c"even\00"
@.str.5 = [5 x i8] c"<=10\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%3 = call i32 @read(i32 0, i32* %2, i32 4)
%4 = load i32, i32* %2
%5 = icmp ugt i32 %4, 10
br i1 %5, label %6, label %23
6: ; preds = %0
%7 = call i32 @puts(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* %2
%9 = icmp ult i32 %8, 20
br i1 %9, label %10, label %12
10: ; preds = %6
%11 = call i32 @puts(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %14
12: ; preds = %6
%13 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %14
14: ; preds = %12, %10
%15 = load i32, i32* %2
%16 = urem i32 %15, 2
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @puts(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
br label %22
20: ; preds = %14
%21 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %22
22: ; preds = %20, %18
br label %25
23: ; preds = %0
%24 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %25
25: ; preds = %23, %22
%26 = load i32, i32* %1
ret i32 %26
}

LLVM IR (-O2):
@.str = [4 x i8] c">10\00"
@.str.1 = [4 x i8] c"<20\00"
@.str.2 = [5 x i8] c">=20\00"
@.str.3 = [4 x i8] c"odd\00"
@.str.4 = [5 x i8] c"even\00"
@.str.5 = [5 x i8] c"<=10\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%3 = call i32 @read(i32 0, i32* %1, i32 4)
%4 = load i32, i32* %1
%5 = icmp ugt i32 %4, 10
br i1 %5, label %6, label %14
6: ; preds = %0
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%8 = icmp ult i32 %4, 20
%9 = select i1 %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0)
%10 = tail call i32 @puts(i8* dereferenceable(1) %9)
%11 = and i32 %4, 1
%12 = icmp eq i32 %11, 0
%13 = select i1 %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0)
br label %14
14: ; preds = %6, %0
%15 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), %0 ], [ %13, %6 ]
%16 = tail call i32 @puts(i8* dereferenceable(1) %15)
ret i32 0
}