unsigned long long pgf_get_input_block_size(unsigned int _fec) {
  switch (_fec) {
  case 1:
    return 0;
    break;
  case 2:
    return 4;
    break;
  case 3:
    return 5;
    break;
  case 4:
    return 5;
    break;
  case 5:
    return 7;
    break;
  default:
    __pgp_switch_default(__func__,
                         "/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/pfactum/"
                         "pegasus/refs/heads/master/pegasus_fec.c",
                         237);
    return 0;
    break;
  }
}


x86 assembly (clang, -O0):
<pgf_get_input_block_size>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x4,%eax
ja     1185 <pgf_get_input_block_size+0x75>
mov    -0x18(%rbp),%rax
lea    0xec5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movq   $0x0,-0x8(%rbp)
jmp    11a7 <pgf_get_input_block_size+0x97>
movq   $0x4,-0x8(%rbp)
jmp    11a7 <pgf_get_input_block_size+0x97>
movq   $0x5,-0x8(%rbp)
jmp    11a7 <pgf_get_input_block_size+0x97>
movq   $0x5,-0x8(%rbp)
jmp    11a7 <pgf_get_input_block_size+0x97>
movq   $0x7,-0x8(%rbp)
jmp    11a7 <pgf_get_input_block_size+0x97>
lea    0xe88(%rip),%rdi
lea    0xe9a(%rip),%rsi
mov    $0xed,%edx
mov    $0x0,%al
call   1030 <__pgp_switch_default@plt>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pgf_get_input_block_size>:
push   %rbx
add    $0xffffffff,%edi
cmp    $0x5,%edi
jae    1129 <pgf_get_input_block_size+0x19>
movslq %edi,%rax
lea    0xf85(%rip),%rcx
mov    (%rcx,%rax,8),%rbx
jmp    1145 <pgf_get_input_block_size+0x35>
lea    0xed0(%rip),%rdi
lea    0xee2(%rip),%rsi
xor    %ebx,%ebx
mov    $0xed,%edx
xor    %eax,%eax
call   1030 <__pgp_switch_default@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@__func__.pgf_get_input_block_size = [25 x i8] c"pgf_get_input_block_size\00"
@.str = [138 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/pfactum/pegasus/refs/heads/master/pegasus_fec.c\00"
define i64 @pgf_get_input_block_size(i32 %0) {
%2 = alloca i64
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %10 [
i32 1, label %5
i32 2, label %6
i32 3, label %7
i32 4, label %8
i32 5, label %9
]
5: ; preds = %1
store i64 0, i64* %2
br label %12
6: ; preds = %1
store i64 4, i64* %2
br label %12
7: ; preds = %1
store i64 5, i64* %2
br label %12
8: ; preds = %1
store i64 5, i64* %2
br label %12
9: ; preds = %1
store i64 7, i64* %2
br label %12
10: ; preds = %1
%11 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @__pgp_switch_default to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__func__.pgf_get_input_block_size, i64 0, i64 0), i8* getelementptr inbounds ([138 x i8], [138 x i8]* @.str, i64 0, i64 0), i32 237)
store i64 0, i64* %2
br label %12
12: ; preds = %10, %9, %8, %7, %6, %5
%13 = load i64, i64* %2
ret i64 %13
}

LLVM IR (-O2):
@__func__.pgf_get_input_block_size = [25 x i8] c"pgf_get_input_block_size\00"
@.str = [138 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/pfactum/pegasus/refs/heads/master/pegasus_fec.c\00"
@switch.table.pgf_get_input_block_size = [5 x i64] [i64 0, i64 4, i64 5, i64 5, i64 7]
define i64 @pgf_get_input_block_size(i32 %0) {
%2 = add i32 %0, -1
%3 = icmp ult i32 %2, 5
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @__pgp_switch_default to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__func__.pgf_get_input_block_size, i64 0, i64 0), i8* getelementptr inbounds ([138 x i8], [138 x i8]* @.str, i64 0, i64 0), i32 237)
br label %10
6: ; preds = %1
%7 = sext i32 %2 to i64
%8 = getelementptr inbounds [5 x i64], [5 x i64]* @switch.table.pgf_get_input_block_size, i64 0, i64 %7
%9 = load i64, i64* %8
br label %10
10: ; preds = %6, %4
%11 = phi i64 [ 0, %4 ], [ %9, %6 ]
ret i64 %11
}