#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 */
typedef scalar_t__ uint64_t;

/* Variables and functions */
unsigned long gt_safecast_uint64_t_unsigned_long(char *, int, scalar_t__);
unsigned long gt_unitsoftwobitencoding(unsigned long totallength) {
  uint64_t unitsoftwobitencoding;
  if (totallength < (unsigned long)(((1 << 6)) >> 1)) {
    return 2UL;
  }
  unitsoftwobitencoding = (uint64_t)(2 + ((totallength - 1) >> (6 - 1)));
  return gt_safecast_uint64_t_unsigned_long(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/bioh4x/NeatFreq/refs/heads/master/lib/"
      "genometools-1.4.1/src/core/intbits.h",
      214, unitsoftwobitencoding);
}


x86 assembly (clang, -O0):
<gt_unitsoftwobitencoding>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
cmpq   $0x20,-0x10(%rbp)
jae    1134 <gt_unitsoftwobitencoding+0x24>
movq   $0x2,-0x8(%rbp)
jmp    1161 <gt_unitsoftwobitencoding+0x51>
mov    -0x10(%rbp),%rax
sub    $0x1,%rax
shr    $0x5,%rax
add    $0x2,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdx
lea    0xead(%rip),%rdi
mov    $0xd6,%esi
call   1030 <gt_safecast_uint64_t_unsigned_long@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gt_unitsoftwobitencoding>:
cmp    $0x20,%rdi
jae    111c <gt_unitsoftwobitencoding+0xc>
mov    $0x2,%eax
ret
mov    %rdi,%rdx
add    $0xffffffffffffffff,%rdx
shr    $0x5,%rdx
add    $0x2,%rdx
lea    0xece(%rip),%rdi
mov    $0xd6,%esi
jmp    1030 <gt_safecast_uint64_t_unsigned_long@plt>

LLVM IR (-O0):
@.str = [165 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bioh4x/NeatFreq/refs/heads/master/lib/genometools-1.4.1/src/core/intbits.h\00"
define i64 @gt_unitsoftwobitencoding(i64 %0) {
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
%5 = load i64, i64* %3
%6 = icmp ult i64 %5, 32
br i1 %6, label %7, label %8
7: ; preds = %1
store i64 2, i64* %2
br label %15
8: ; preds = %1
%9 = load i64, i64* %3
%10 = sub i64 %9, 1
%11 = lshr i64 %10, 5
%12 = add i64 2, %11
store i64 %12, i64* %4
%13 = load i64, i64* %4
%14 = call i64 @gt_safecast_uint64_t_unsigned_long(i8* getelementptr inbounds ([165 x i8], [165 x i8]* @.str, i64 0, i64 0), i32 214, i64 %13)
store i64 %14, i64* %2
br label %15
15: ; preds = %8, %7
%16 = load i64, i64* %2
ret i64 %16
}

LLVM IR (-O2):
@.str = [165 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bioh4x/NeatFreq/refs/heads/master/lib/genometools-1.4.1/src/core/intbits.h\00"
define i64 @gt_unitsoftwobitencoding(i64 %0) {
%2 = icmp ult i64 %0, 32
br i1 %2, label %8, label %3
3: ; preds = %1
%4 = add i64 %0, -1
%5 = lshr i64 %4, 5
%6 = add nuw nsw i64 %5, 2
%7 = tail call i64 @gt_safecast_uint64_t_unsigned_long(i8* getelementptr inbounds ([165 x i8], [165 x i8]* @.str, i64 0, i64 0), i32 214, i64 %6)
br label %8
8: ; preds = %1, %3
%9 = phi i64 [ %7, %3 ], [ 2, %1 ]
ret i64 %9
}