#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*/ exit(int);
int /*<<< orphan*/ printf(char *, ...);
void errorExit3(int group, char *number) {
  switch (group) {
  case 1:
    printf("\nOut  of  memory!\n");
    break;
  case 2:
    printf("\nCritical  error  in  program!\n");
    break;
  case 3:
    printf("\nError  in  function  of  user!\n");
    break;
  case 4:
    printf("\nTempoparal  error!\n");
    break;
  }
  printf("\n\n\n%s\n", number);
  exit(1);
  return;
}


x86 assembly (clang, -O0):
<errorExit3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x3,%eax
ja     119f <errorExit3+0x7f>
mov    -0x18(%rbp),%rax
lea    0xeb1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    119f <errorExit3+0x7f>
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    119f <errorExit3+0x7f>
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    119f <errorExit3+0x7f>
lea    0xecc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xecf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<errorExit3>:
push   %rbx
mov    %rsi,%rbx
add    $0xffffffff,%edi
cmp    $0x3,%edi
ja     1152 <errorExit3+0x22>
movslq %edi,%rax
lea    0xf26(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
call   1030 <puts@plt>
lea    0xea7(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"\0AOut of memory!\0A\00"
@.str.1 = [32 x i8] c"\0ACritical error in program!\0A\00"
@.str.2 = [33 x i8] c"\0AError in function of user!\0A\00"
@.str.3 = [21 x i8] c"\0ATempoparal error!\0A\00"
@.str.4 = [7 x i8] c"\0A\0A\0A%s\0A\00"
define void @errorExit3(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
%5 = load i32, i32* %3
switch i32 %5, label %14 [
i32 1, label %6
i32 2, label %8
i32 3, label %10
i32 4, label %12
]
6: ; preds = %2
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
br label %14
8: ; preds = %2
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
br label %14
10: ; preds = %2
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
br label %14
12: ; preds = %2
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
br label %14
14: ; preds = %2, %12, %10, %8, %6
%15 = load i8*, i8** %4
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* %15)
%17 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str.4 = [7 x i8] c"\0A\0A\0A%s\0A\00"
@str = [20 x i8] c"\0ATempoparal error!\00"
@str.5 = [32 x i8] c"\0AError in function of user!\00"
@str.6 = [31 x i8] c"\0ACritical error in program!\00"
@str.7 = [18 x i8] c"\0AOut of memory!\00"
@reltable.errorExit3 = [4 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @str.7 to i64), i64 ptrtoint ([4 x i32]* @reltable.errorExit3 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([31 x i8]* @str.6 to i64), i64 ptrtoint ([4 x i32]* @reltable.errorExit3 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([32 x i8]* @str.5 to i64), i64 ptrtoint ([4 x i32]* @reltable.errorExit3 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @str to i64), i64 ptrtoint ([4 x i32]* @reltable.errorExit3 to i64)) to i32)]
define void @errorExit3(i32 %0, i8* %1) {
%3 = add i32 %0, -1
%4 = icmp ult i32 %3, 4
br i1 %4, label %5, label %10
5: ; preds = %2
%6 = sext i32 %3 to i64
%7 = shl i64 %6, 2
%8 = call i8* @llvm.load.relative.i64(i8* bitcast ([4 x i32]* @reltable.errorExit3 to i8*), i64 %7)
%9 = tail call i32 @puts(i8* dereferenceable(1) %8)
br label %10
10: ; preds = %2, %5
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* %1)
%12 = tail call i32 @exit(i32 1)
unreachable
}