#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 atoi(char *);
int /*<<< orphan*/ printf(char *, ...);
void outerr_hash(char *buffer, char *buffer2, short _flag_err) {
  switch (_flag_err) {
  case -3:
    printf("wpahashword: INVALID in questa sintassi, \"%s\" e \"%s\" non sono "
           "numeri.\n",
           buffer, buffer2);
    break;
  case -4:
    printf("wpahashword: INVALID in questa sintassi, \"%s\" non e un numero.\n",
           buffer);
    break;
  case -5:
    printf("wpahashword: INVALID in questa sintassi, \"%s\" non e un numero.\n",
           buffer2);
    break;
  case -6:
    printf("wpahashword: SINTAX inserting too many '-' in parameter '-c'\n");
    break;
  case -7:
    printf("wpahashword: ERROR non e ammesso il parametro '-r'\n");
    break;
  case -8:
    printf(
        "wpahashword: ERROR il parametro '-d' non accetta altri parametri\n");
    break;
  case -10:
    printf("wpahashword: ERROR il primo numero è più grande del secondo\n");
    break;
  case -21:
    printf("wpahashword: INVALID %d non valido (e.g. 0 or 1 a 255))\n",
           atoi(buffer));
    break;
  case -9:
    printf("wpahashword: ERROR richiesto parametro '-c'\n");
    break;
  case -22:
    printf("wpahashword: ERROR insert file with parameter '-f'\n");
    break;
  case -20:
    printf("wpahashword: ERROR inserie il file su cui salvare le operazioni\n");
    break;
  }
}


x86 assembly (clang, -O0):
<outerr_hash>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %dx,%ax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %ax,-0x12(%rbp)
movswl -0x12(%rbp),%eax
add    $0x16,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x13,%eax
ja     1248 <outerr_hash+0x128>
mov    -0x20(%rbp),%rax
lea    0xea8(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xee0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1248 <outerr_hash+0x128>
mov    -0x8(%rbp),%rsi
lea    0xf10(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1248 <outerr_hash+0x128>
mov    -0x10(%rbp),%rsi
lea    0xef9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1248 <outerr_hash+0x128>
lea    0xf26(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1248 <outerr_hash+0x128>
lea    0xf51(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1248 <outerr_hash+0x128>
lea    0xf72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1248 <outerr_hash+0x128>
lea    0xfa1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1248 <outerr_hash+0x128>
mov    -0x8(%rbp),%rdi
call   1040 <atoi@plt>
mov    %eax,%esi
lea    0xfc2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1248 <outerr_hash+0x128>
lea    0xfe8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1248 <outerr_hash+0x128>
lea    0x1002(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1248 <outerr_hash+0x128>
lea    0x1023(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<outerr_hash>:
push   %rax
add    $0x16,%edx
cmp    $0x13,%edx
ja     1182 <outerr_hash+0x52>
mov    %rsi,%rax
mov    %rdi,%rsi
lea    0xeba(%rip),%rcx
movslq (%rcx,%rdx,4),%rdx
add    %rcx,%rdx
jmp    *%rdx
lea    0xffa(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>
mov    %rsi,%rdi
call   1050 <atoi@plt>
lea    0xf6c(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
pop    %rcx
jmp    1040 <printf@plt>
lea    0xf94(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>
pop    %rax
ret
lea    0x1024(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>
lea    0xfeb(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>
lea    0x1048(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>
lea    0x107c(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>
lea    0x10a2(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>
lea    0xecb(%rip),%rdi
mov    %rax,%rsi
jmp    11d8 <outerr_hash+0xa8>
lea    0xebf(%rip),%rdi
xor    %eax,%eax
pop    %rcx
jmp    1040 <printf@plt>
lea    0xe69(%rip),%rdi
mov    %rax,%rdx
xor    %eax,%eax
pop    %rcx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [71 x i8] c"wpahashword: INVALID in questa sintassi, \22%s\22 e \22%s\22 non sono numeri.\0A\00"
@.str.1 = [64 x i8] c"wpahashword: INVALID in questa sintassi, \22%s\22 non e un numero.\0A\00"
@.str.2 = [62 x i8] c"wpahashword: SINTAX inserting too many '-' in parameter '-c'\0A\00"
@.str.3 = [52 x i8] c"wpahashword: ERROR non e ammesso il parametro '-r'\0A\00"
@.str.4 = [66 x i8] c"wpahashword: ERROR il parametro '-d' non accetta altri parametri\0A\00"
@.str.5 = [63 x i8] c"wpahashword: ERROR il primo numero \C3\A8 pi\C3\B9 grande del secondo\0A\00"
@.str.6 = [57 x i8] c"wpahashword: INVALID %d non valido (e.g. 0 or 1 a 255))\0A\00"
@.str.7 = [45 x i8] c"wpahashword: ERROR richiesto parametro '-c'\0A\00"
@.str.8 = [52 x i8] c"wpahashword: ERROR insert file with parameter '-f'\0A\00"
@.str.9 = [65 x i8] c"wpahashword: ERROR inserie il file su cui salvare le operazioni\0A\00"
define void @outerr_hash(i8* %0, i8* %1, i16 signext %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i16
store i8* %0, i8** %4
store i8* %1, i8** %5
store i16 %2, i16* %6
%7 = load i16, i16* %6
%8 = sext i16 %7 to i32
switch i32 %8, label %37 [
i32 -3, label %9
i32 -4, label %13
i32 -5, label %16
i32 -6, label %19
i32 -7, label %21
i32 -8, label %23
i32 -10, label %25
i32 -21, label %27
i32 -9, label %31
i32 -22, label %33
i32 -20, label %35
]
9: ; preds = %3
%10 = load i8*, i8** %4
%11 = load i8*, i8** %5
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* %10, i8* %11)
br label %37
13: ; preds = %3
%14 = load i8*, i8** %4
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.1, i64 0, i64 0), i8* %14)
br label %37
16: ; preds = %3
%17 = load i8*, i8** %5
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.1, i64 0, i64 0), i8* %17)
br label %37
19: ; preds = %3
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.2, i64 0, i64 0))
br label %37
21: ; preds = %3
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0))
br label %37
23: ; preds = %3
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.4, i64 0, i64 0))
br label %37
25: ; preds = %3
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
br label %37
27: ; preds = %3
%28 = load i8*, i8** %4
%29 = call i32 @atoi(i8* %28)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.6, i64 0, i64 0), i32 %29)
br label %37
31: ; preds = %3
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.7, i64 0, i64 0))
br label %37
33: ; preds = %3
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.8, i64 0, i64 0))
br label %37
35: ; preds = %3
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.9, i64 0, i64 0))
br label %37
37: ; preds = %3, %35, %33, %31, %27, %25, %23, %21, %19, %16, %13, %9
ret void
}

LLVM IR (-O2):
@.str = [71 x i8] c"wpahashword: INVALID in questa sintassi, \22%s\22 e \22%s\22 non sono numeri.\0A\00"
@.str.1 = [64 x i8] c"wpahashword: INVALID in questa sintassi, \22%s\22 non e un numero.\0A\00"
@.str.6 = [57 x i8] c"wpahashword: INVALID %d non valido (e.g. 0 or 1 a 255))\0A\00"
@str = [64 x i8] c"wpahashword: ERROR inserie il file su cui salvare le operazioni\00"
@str.10 = [51 x i8] c"wpahashword: ERROR insert file with parameter '-f'\00"
@str.11 = [44 x i8] c"wpahashword: ERROR richiesto parametro '-c'\00"
@str.12 = [62 x i8] c"wpahashword: ERROR il primo numero \C3\A8 pi\C3\B9 grande del secondo\00"
@str.13 = [65 x i8] c"wpahashword: ERROR il parametro '-d' non accetta altri parametri\00"
@str.14 = [51 x i8] c"wpahashword: ERROR non e ammesso il parametro '-r'\00"
@str.15 = [61 x i8] c"wpahashword: SINTAX inserting too many '-' in parameter '-c'\00"
define void @outerr_hash(i8* %0, i8* %1, i16 signext %2) {
%4 = sext i16 %2 to i32
switch i32 %4, label %28 [
i32 -3, label %5
i32 -4, label %7
i32 -5, label %9
i32 -6, label %11
i32 -7, label %13
i32 -8, label %15
i32 -10, label %17
i32 -21, label %19
i32 -9, label %22
i32 -22, label %24
i32 -20, label %26
]
5: ; preds = %3
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1)
br label %28
7: ; preds = %3
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.1, i64 0, i64 0), i8* %0)
br label %28
9: ; preds = %3
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.1, i64 0, i64 0), i8* %1)
br label %28
11: ; preds = %3
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.15, i64 0, i64 0))
br label %28
13: ; preds = %3
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.14, i64 0, i64 0))
br label %28
15: ; preds = %3
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.13, i64 0, i64 0))
br label %28
17: ; preds = %3
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.12, i64 0, i64 0))
br label %28
19: ; preds = %3
%20 = tail call i32 @atoi(i8* %0)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.6, i64 0, i64 0), i32 %20)
br label %28
22: ; preds = %3
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.11, i64 0, i64 0))
br label %28
24: ; preds = %3
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.10, i64 0, i64 0))
br label %28
26: ; preds = %3
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str, i64 0, i64 0))
br label %28
28: ; preds = %3, %26, %24, %22, %19, %17, %15, %13, %11, %9, %7, %5
ret void
}