#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 main() {
  int people = 30;
  int cars = 40;
  int buses = 15;
  if (cars > people) {
    printf("\nWe should take the cars.");
  } else if (cars < people) {
    printf("\nWe should not take the cars.");
  } else {
    printf("\nWe can't decide");
  }
  if (buses > cars) {
    printf("\nThat's too many buses.");
  } else if (buses < cars) {
    printf("\nMaybe we could take the buses.");
  } else {
    printf("\nWe still can't decide.");
  }
  if (people > buses) {
    printf("\nAll right, let's just take the buses.");
  } else {
    printf("\nFine, let's stay home then.");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1e,-0x8(%rbp)
movl   $0x28,-0xc(%rbp)
movl   $0xf,-0x10(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    1151 <main+0x41>
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
jmp    117f <main+0x6f>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    116e <main+0x5e>
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
jmp    117a <main+0x6a>
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
jmp    117f <main+0x6f>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    119c <main+0x8c>
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
jmp    11ca <main+0xba>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11b9 <main+0xa9>
lea    0xeb2(%rip),%rdi
call   1030 <printf@plt>
jmp    11c5 <main+0xb5>
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
jmp    11ca <main+0xba>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    11e7 <main+0xd7>
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
jmp    11f3 <main+0xe3>
lea    0xed2(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [26 x i8] c"\0AWe should take the cars.\00"
@.str.1 = [30 x i8] c"\0AWe should not take the cars.\00"
@.str.2 = [17 x i8] c"\0AWe can't decide\00"
@.str.3 = [24 x i8] c"\0AThat's too many buses.\00"
@.str.4 = [32 x i8] c"\0AMaybe we could take the buses.\00"
@.str.5 = [24 x i8] c"\0AWe still can't decide.\00"
@.str.6 = [39 x i8] c"\0AAll right, let's just take the buses.\00"
@.str.7 = [29 x i8] c"\0AFine, let's stay home then.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 30, i32* %2
store i32 40, i32* %3
store i32 15, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %2
%7 = icmp sgt i32 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
br label %19
10: ; preds = %0
%11 = load i32, i32* %3
%12 = load i32, i32* %2
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
br label %18
16: ; preds = %10
%17 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
br label %18
18: ; preds = %16, %14
br label %19
19: ; preds = %18, %8
%20 = load i32, i32* %4
%21 = load i32, i32* %3
%22 = icmp sgt i32 %20, %21
br i1 %22, label %23, label %25
23: ; preds = %19
%24 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
br label %34
25: ; preds = %19
%26 = load i32, i32* %4
%27 = load i32, i32* %3
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %31
29: ; preds = %25
%30 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
br label %33
31: ; preds = %25
%32 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
br label %33
33: ; preds = %31, %29
br label %34
34: ; preds = %33, %23
%35 = load i32, i32* %2
%36 = load i32, i32* %4
%37 = icmp sgt i32 %35, %36
br i1 %37, label %38, label %40
38: ; preds = %34
%39 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
br label %42
40: ; preds = %34
%41 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
br label %42
42: ; preds = %40, %38
%43 = load i32, i32* %1
ret i32 %43
}

LLVM IR (-O2):
@.str = [26 x i8] c"\0AWe should take the cars.\00"
@.str.4 = [32 x i8] c"\0AMaybe we could take the buses.\00"
@.str.6 = [39 x i8] c"\0AAll right, let's just take the buses.\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}