#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*/ crami(int, int);
int /*<<< orphan*/ proutn(char *);
void cramlc(int key, int x, int y) {
  if (key == 1)
    proutn(" Quadrant");
  else if (key == 2)
    proutn(" Sector");
  proutn(" ");
  crami(x, 1);
  proutn(" - ");
  crami(y, 1);
}


x86 assembly (clang, -O0):
<cramlc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
cmpl   $0x1,-0x4(%rbp)
jne    114c <cramlc+0x2c>
lea    0xebe(%rip),%rdi
call   1040 <proutn@plt>
jmp    1167 <cramlc+0x47>
cmpl   $0x2,-0x4(%rbp)
jne    1162 <cramlc+0x42>
lea    0xead(%rip),%rdi
call   1040 <proutn@plt>
jmp    1167 <cramlc+0x47>
lea    0xea6(%rip),%rdi
call   1040 <proutn@plt>
mov    -0x8(%rbp),%edi
mov    $0x1,%esi
call   1030 <crami@plt>
lea    0xe8b(%rip),%rdi
call   1040 <proutn@plt>
mov    -0xc(%rbp),%edi
mov    $0x1,%esi
call   1030 <crami@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cramlc>:
push   %rbp
push   %rbx
push   %rax
mov    %edx,%ebx
mov    %esi,%ebp
cmp    $0x1,%edi
je     113a <cramlc+0x1a>
cmp    $0x2,%edi
jne    1146 <cramlc+0x26>
lea    0xed2(%rip),%rdi
jmp    1141 <cramlc+0x21>
lea    0xebf(%rip),%rdi
call   1040 <proutn@plt>
lea    0xec7(%rip),%rdi
call   1040 <proutn@plt>
mov    %ebp,%edi
mov    $0x1,%esi
call   1030 <crami@plt>
lea    0xead(%rip),%rdi
call   1040 <proutn@plt>
mov    %ebx,%edi
mov    $0x1,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <crami@plt>

LLVM IR (-O0):
@.str = [10 x i8] c" Quadrant\00"
@.str.1 = [8 x i8] c" Sector\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [4 x i8] c" - \00"
define void @cramlc(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %3
%10 = call i32 @proutn(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
br label %17
11: ; preds = %3
%12 = load i32, i32* %4
%13 = icmp eq i32 %12, 2
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @proutn(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %16
16: ; preds = %14, %11
br label %17
17: ; preds = %16, %9
%18 = call i32 @proutn(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%19 = load i32, i32* %5
%20 = call i32 @crami(i32 %19, i32 1)
%21 = call i32 @proutn(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%22 = load i32, i32* %6
%23 = call i32 @crami(i32 %22, i32 1)
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c" Quadrant\00"
@.str.1 = [8 x i8] c" Sector\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [4 x i8] c" - \00"
define void @cramlc(i32 %0, i32 %1, i32 %2) {
switch i32 %0, label %8 [
i32 1, label %5
i32 2, label %4
]
4: ; preds = %3
br label %5
5: ; preds = %3, %4
%6 = phi i8* [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), %4 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), %3 ]
%7 = tail call i32 @proutn(i8* %6)
br label %8
8: ; preds = %5, %3
%9 = tail call i32 @proutn(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%10 = tail call i32 @crami(i32 %1, i32 1)
%11 = tail call i32 @proutn(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%12 = tail call i32 @crami(i32 %2, i32 1)
ret void
}