#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 *, ...);
void print_error(int status) {
  switch (status) {
  case -3:
    printf(" The memory is low\n");
    break;
  case -14:
    printf(" The radio bearer is not identified\n");
    break;
  case -9:
    printf(" The entity must be a mobile\n");
    break;
  case -10:
    printf(" The entity must be an access router\n");
    break;
  case -11:
    printf(" The selected connection or radio bearer must be IDLE\n");
    break;
  case -12:
    printf(" The selected connection or radio bearer must be CONNECTED\n");
    break;
  case -33:
    printf(" The LCR value is not correct\n");
    break;
  case -34:
    printf(" The DIR value is not correct\n");
    break;
  case -35:
    printf(" The DSCP value is not correct\n");
    break;
  case -36:
    printf(" The version value is not correct\n");
    break;
  case -37:
    printf(" The rab_id value is not correct\n");
    break;
  case -1:
    printf(" Some components must not be duplicated\n");
    break;
  default:
    printf(" Unknown error cause %d\n", status);
  }
}


x86 assembly (clang, -O0):
<print_error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x25,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x24,%eax
ja     1228 <print_error+0x118>
mov    -0x10(%rbp),%rax
lea    0xec5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1239 <print_error+0x129>
lea    0xf4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1239 <print_error+0x129>
lea    0xf5c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1239 <print_error+0x129>
lea    0xf67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1239 <print_error+0x129>
lea    0xf7a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1239 <print_error+0x129>
lea    0xf9e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1239 <print_error+0x129>
lea    0xfc7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1239 <print_error+0x129>
lea    0xfd3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1239 <print_error+0x129>
lea    0xfdf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1239 <print_error+0x129>
lea    0xfec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1239 <print_error+0x129>
lea    0xffc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1239 <print_error+0x129>
lea    0x100b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1239 <print_error+0x129>
mov    -0x4(%rbp),%esi
lea    0x101e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_error>:
mov    %edi,%esi
lea    0x25(%rsi),%eax
cmp    $0x24,%eax
ja     1176 <print_error+0x56>
lea    0xecf(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf94(%rip),%rdi
jmp    1030 <puts@plt>
lea    0xfa9(%rip),%rdi
jmp    1030 <puts@plt>
lea    0xfbf(%rip),%rdi
jmp    1030 <puts@plt>
lea    0xfd2(%rip),%rdi
jmp    1030 <puts@plt>
lea    0xfe4(%rip),%rdi
jmp    1030 <puts@plt>
lea    0xf17(%rip),%rdi
xor    %eax,%eax
jmp    1040 <printf@plt>
lea    0x109b(%rip),%rdi
jmp    1030 <puts@plt>
lea    0xfdc(%rip),%rdi
jmp    1030 <puts@plt>
lea    0x100b(%rip),%rdi
jmp    1030 <puts@plt>
lea    0x1035(%rip),%rdi
jmp    1030 <puts@plt>
lea    0x104e(%rip),%rdi
jmp    1030 <puts@plt>
lea    0x1083(%rip),%rdi
jmp    1030 <puts@plt>
lea    0xeda(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [20 x i8] c" The memory is low\0A\00"
@.str.1 = [37 x i8] c" The radio bearer is not identified\0A\00"
@.str.2 = [30 x i8] c" The entity must be a mobile\0A\00"
@.str.3 = [38 x i8] c" The entity must be an access router\0A\00"
@.str.4 = [55 x i8] c" The selected connection or radio bearer must be IDLE\0A\00"
@.str.5 = [60 x i8] c" The selected connection or radio bearer must be CONNECTED\0A\00"
@.str.6 = [31 x i8] c" The LCR value is not correct\0A\00"
@.str.7 = [31 x i8] c" The DIR value is not correct\0A\00"
@.str.8 = [32 x i8] c" The DSCP value is not correct\0A\00"
@.str.9 = [35 x i8] c" The version value is not correct\0A\00"
@.str.10 = [34 x i8] c" The rab_id value is not correct\0A\00"
@.str.11 = [41 x i8] c" Some components must not be duplicated\0A\00"
@.str.12 = [25 x i8] c" Unknown error cause %d\0A\00"
define void @print_error(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %28 [
i32 -3, label %4
i32 -14, label %6
i32 -9, label %8
i32 -10, label %10
i32 -11, label %12
i32 -12, label %14
i32 -33, label %16
i32 -34, label %18
i32 -35, label %20
i32 -36, label %22
i32 -37, label %24
i32 -1, label %26
]
4: ; preds = %1
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
br label %31
6: ; preds = %1
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
br label %31
8: ; preds = %1
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
br label %31
10: ; preds = %1
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
br label %31
12: ; preds = %1
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.4, i64 0, i64 0))
br label %31
14: ; preds = %1
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.5, i64 0, i64 0))
br label %31
16: ; preds = %1
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0))
br label %31
18: ; preds = %1
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0))
br label %31
20: ; preds = %1
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.8, i64 0, i64 0))
br label %31
22: ; preds = %1
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0))
br label %31
24: ; preds = %1
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0))
br label %31
26: ; preds = %1
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.11, i64 0, i64 0))
br label %31
28: ; preds = %1
%29 = load i32, i32* %2
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), i32 %29)
br label %31
31: ; preds = %28, %26, %24, %22, %20, %18, %16, %14, %12, %10, %8, %6, %4
ret void
}

LLVM IR (-O2):
@.str.12 = [25 x i8] c" Unknown error cause %d\0A\00"
@str = [40 x i8] c" Some components must not be duplicated\00"
@str.13 = [33 x i8] c" The rab_id value is not correct\00"
@str.14 = [34 x i8] c" The version value is not correct\00"
@str.15 = [31 x i8] c" The DSCP value is not correct\00"
@str.16 = [30 x i8] c" The DIR value is not correct\00"
@str.17 = [30 x i8] c" The LCR value is not correct\00"
@str.18 = [59 x i8] c" The selected connection or radio bearer must be CONNECTED\00"
@str.19 = [54 x i8] c" The selected connection or radio bearer must be IDLE\00"
@str.20 = [37 x i8] c" The entity must be an access router\00"
@str.21 = [29 x i8] c" The entity must be a mobile\00"
@str.22 = [36 x i8] c" The radio bearer is not identified\00"
@str.23 = [19 x i8] c" The memory is low\00"
define void @print_error(i32 %0) {
switch i32 %0, label %26 [
i32 -3, label %2
i32 -14, label %4
i32 -9, label %6
i32 -10, label %8
i32 -11, label %10
i32 -12, label %12
i32 -33, label %14
i32 -34, label %16
i32 -35, label %18
i32 -36, label %20
i32 -37, label %22
i32 -1, label %24
]
2: ; preds = %1
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.23, i64 0, i64 0))
br label %28
4: ; preds = %1
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.22, i64 0, i64 0))
br label %28
6: ; preds = %1
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.21, i64 0, i64 0))
br label %28
8: ; preds = %1
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.20, i64 0, i64 0))
br label %28
10: ; preds = %1
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.19, i64 0, i64 0))
br label %28
12: ; preds = %1
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.18, i64 0, i64 0))
br label %28
14: ; preds = %1
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.17, i64 0, i64 0))
br label %28
16: ; preds = %1
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.16, i64 0, i64 0))
br label %28
18: ; preds = %1
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.15, i64 0, i64 0))
br label %28
20: ; preds = %1
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.14, i64 0, i64 0))
br label %28
22: ; preds = %1
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.13, i64 0, i64 0))
br label %28
24: ; preds = %1
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str, i64 0, i64 0))
br label %28
26: ; preds = %1
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), i32 %0)
br label %28
28: ; preds = %26, %24, %22, %20, %18, %16, %14, %12, %10, %8, %6, %4, %2
ret void
}