#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 /*<<< orphan*/ scanf(char *, int *, int *);
int main(void) {
  int l, b, area;
  printf("Enter the value of breadth and length of a room respectively: ");
  scanf("%d %d", &l, &b);
  area = l * b;
  if (area > 2500)
    printf("\n Auditorium");
  else if (area >= 500 && area <= 2500)
    printf("\n Hall");
  else if (area > 150 && area < 500)
    printf("\n Big Room");
  else
    printf("\n Small Room");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x9c4,-0x10(%rbp)
jle    1177 <main+0x57>
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
jmp    11e3 <main+0xc3>
cmpl   $0x1f4,-0x10(%rbp)
jl     11a2 <main+0x82>
cmpl   $0x9c4,-0x10(%rbp)
jg     11a2 <main+0x82>
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
jmp    11de <main+0xbe>
cmpl   $0x96,-0x10(%rbp)
jle    11cd <main+0xad>
cmpl   $0x1f4,-0x10(%rbp)
jge    11cd <main+0xad>
lea    0xe96(%rip),%rdi
call   1030 <printf@plt>
jmp    11d9 <main+0xb9>
lea    0xe90(%rip),%rdi
call   1030 <printf@plt>
jmp    11de <main+0xbe>
jmp    11e3 <main+0xc3>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    (%rsp),%eax
imul   0x4(%rsp),%eax
cmp    $0x9c4,%eax
jle    1159 <main+0x39>
lea    0xeee(%rip),%rdi
jmp    1180 <main+0x60>
cmp    $0x1f3,%eax
jle    1169 <main+0x49>
lea    0xeeb(%rip),%rdi
jmp    1180 <main+0x60>
cmp    $0x97,%eax
lea    0xee4(%rip),%rax
lea    0xee8(%rip),%rdi
cmovge %rax,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [63 x i8] c"Enter the value of breadth and length of a room respectively: \00"
@.str.1 = [6 x i8] c"%d %d\00"
@.str.2 = [13 x i8] c"\0A Auditorium\00"
@.str.3 = [7 x i8] c"\0A Hall\00"
@.str.4 = [11 x i8] c"\0A Big Room\00"
@.str.5 = [13 x i8] c"\0A Small Room\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %2, i32* %3)
%7 = load i32, i32* %2
%8 = load i32, i32* %3
%9 = mul nsw i32 %7, %8
store i32 %9, i32* %4
%10 = load i32, i32* %4
%11 = icmp sgt i32 %10, 2500
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %34
14: ; preds = %0
%15 = load i32, i32* %4
%16 = icmp sge i32 %15, 500
br i1 %16, label %17, label %22
17: ; preds = %14
%18 = load i32, i32* %4
%19 = icmp sle i32 %18, 2500
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %33
22: ; preds = %17, %14
%23 = load i32, i32* %4
%24 = icmp sgt i32 %23, 150
br i1 %24, label %25, label %30
25: ; preds = %22
%26 = load i32, i32* %4
%27 = icmp slt i32 %26, 500
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
br label %32
30: ; preds = %25, %22
%31 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
br label %32
32: ; preds = %30, %28
br label %33
33: ; preds = %32, %20
br label %34
34: ; preds = %33, %12
ret i32 0
}

LLVM IR (-O2):
@.str = [63 x i8] c"Enter the value of breadth and length of a room respectively: \00"
@.str.1 = [6 x i8] c"%d %d\00"
@.str.2 = [13 x i8] c"\0A Auditorium\00"
@.str.3 = [7 x i8] c"\0A Hall\00"
@.str.4 = [11 x i8] c"\0A Big Room\00"
@.str.5 = [13 x i8] c"\0A Small Room\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2)
%7 = load i32, i32* %1
%8 = load i32, i32* %2
%9 = mul nsw i32 %8, %7
%10 = icmp sgt i32 %9, 2500
br i1 %10, label %16, label %11
11: ; preds = %0
%12 = icmp sgt i32 %9, 499
br i1 %12, label %16, label %13
13: ; preds = %11
%14 = icmp sgt i32 %9, 150
%15 = select i1 %14, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0)
br label %16
16: ; preds = %13, %11, %0
%17 = phi i8* [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), %0 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), %11 ], [ %15, %13 ]
%18 = call i32 @printf(i8* dereferenceable(1) %17)
ret i32 0
}