#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*/ fprintf(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ stderr;
int set_mask_extrem_val(int mask_size) {
  switch (mask_size) {
  case 9:
    return 1;
  case 25:
    return 2;
  case 49:
    return 3;
  default:
    fprintf(stderr, "El tamaño de la mascara %d no esta soportado.\n",
            mask_size);
    break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<set_mask_extrem_val>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x9,%eax
je     1151 <set_mask_extrem_val+0x41>
jmp    112f <set_mask_extrem_val+0x1f>
mov    -0xc(%rbp),%eax
sub    $0x19,%eax
je     115d <set_mask_extrem_val+0x4d>
jmp    1140 <set_mask_extrem_val+0x30>
mov    -0xc(%rbp),%eax
sub    $0x31,%eax
je     1169 <set_mask_extrem_val+0x59>
jmp    1175 <set_mask_extrem_val+0x65>
movl   $0x1,-0x4(%rbp)
jmp    1194 <set_mask_extrem_val+0x84>
movl   $0x2,-0x4(%rbp)
jmp    1194 <set_mask_extrem_val+0x84>
movl   $0x3,-0x4(%rbp)
jmp    1194 <set_mask_extrem_val+0x84>
mov    0x2e64(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%edx
lea    0xe78(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_mask_extrem_val>:
cmp    $0x9,%edi
je     1127 <set_mask_extrem_val+0x17>
mov    %edi,%edx
cmp    $0x31,%edi
je     112d <set_mask_extrem_val+0x1d>
cmp    $0x19,%edx
jne    1133 <set_mask_extrem_val+0x23>
mov    $0x2,%eax
ret
mov    $0x1,%eax
ret
mov    $0x3,%eax
ret
push   %rax
mov    0x2ea5(%rip),%rax
mov    (%rax),%edi
lea    0xebc(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x8,%rsp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [48 x i8] c"El tama\C3\B1o de la mascara %d no esta soportado.\0A\00"
define i32 @set_mask_extrem_val(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %8 [
i32 9, label %5
i32 25, label %6
i32 49, label %7
]
5: ; preds = %1
store i32 1, i32* %2
br label %13
6: ; preds = %1
store i32 2, i32* %2
br label %13
7: ; preds = %1
store i32 3, i32* %2
br label %13
8: ; preds = %1
%9 = load i32, i32* @stderr
%10 = load i32, i32* %3
%11 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i32 %10)
br label %12
12: ; preds = %8
store i32 0, i32* %2
br label %13
13: ; preds = %12, %7, %6, %5
%14 = load i32, i32* %2
ret i32 %14
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [48 x i8] c"El tama\C3\B1o de la mascara %d no esta soportado.\0A\00"
define i32 @set_mask_extrem_val(i32 %0) {
switch i32 %0, label %4 [
i32 9, label %7
i32 25, label %2
i32 49, label %3
]
2: ; preds = %1
br label %7
3: ; preds = %1
br label %7
4: ; preds = %1
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i32 %0)
br label %7
7: ; preds = %1, %4, %3, %2
%8 = phi i32 [ 0, %4 ], [ 3, %3 ], [ 2, %2 ], [ 1, %1 ]
ret i32 %8
}