#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*/ check(char *, int, int, char *, int);
int main(void) {
  check("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/rlstr.c",
        36, 16, "1", (1 << 1));
  check("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/rlstr.c",
        37, 16, "1ab", (1 << 1) | (1 << 0xA) | (1 << 0x0B));
  check("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/rlstr.c",
        38, 16, "9abcdef",
        (1 << 9) | (1 << 0xA) | (1 << 0x0B) | (1 << 0x0C) | (1 << 0x0D) |
            (1 << 0x0E) | (1 << 0x0F));
  check("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/rlstr.c",
        39, 16, "0", (1 << 0));
  check("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/rlstr.c",
        40, 16, "3af", (1 << 3) | (1 << 0xA) | (1 << 0xF));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x24,%esi
mov    $0x10,%edx
lea    0xf4e(%rip),%rcx
mov    $0x2,%r8d
call   1030 <check@plt>
lea    0xeb7(%rip),%rdi
mov    $0x25,%esi
mov    $0x10,%edx
lea    0xf2d(%rip),%rcx
mov    $0xc02,%r8d
call   1030 <check@plt>
lea    0xe94(%rip),%rdi
mov    $0x26,%esi
mov    $0x10,%edx
lea    0xf0e(%rip),%rcx
mov    $0xfe00,%r8d
call   1030 <check@plt>
lea    0xe71(%rip),%rdi
mov    $0x27,%esi
mov    $0x10,%edx
lea    0xef3(%rip),%rcx
mov    $0x1,%r8d
call   1030 <check@plt>
lea    0xe4e(%rip),%rdi
mov    $0x28,%esi
mov    $0x10,%edx
lea    0xed2(%rip),%rcx
mov    $0x8408,%r8d
call   1030 <check@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
lea    0xf66(%rip),%rcx
mov    %rbx,%rdi
mov    $0x24,%esi
mov    $0x10,%edx
mov    $0x2,%r8d
call   1030 <check@plt>
lea    0xf49(%rip),%rcx
mov    %rbx,%rdi
mov    $0x25,%esi
mov    $0x10,%edx
mov    $0xc02,%r8d
call   1030 <check@plt>
lea    0xf2e(%rip),%rcx
mov    %rbx,%rdi
mov    $0x26,%esi
mov    $0x10,%edx
mov    $0xfe00,%r8d
call   1030 <check@plt>
lea    0xf17(%rip),%rcx
mov    %rbx,%rdi
mov    $0x27,%esi
mov    $0x10,%edx
mov    $0x1,%r8d
call   1030 <check@plt>
lea    0xefa(%rip),%rcx
mov    %rbx,%rdi
mov    $0x28,%esi
mov    $0x10,%edx
mov    $0x8408,%r8d
call   1030 <check@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [133 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/rlstr.c\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [4 x i8] c"1ab\00"
@.str.3 = [8 x i8] c"9abcdef\00"
@.str.4 = [2 x i8] c"0\00"
@.str.5 = [4 x i8] c"3af\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @check(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 36, i32 16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 2)
%3 = call i32 @check(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 37, i32 16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 3074)
%4 = call i32 @check(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 38, i32 16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 65024)
%5 = call i32 @check(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 39, i32 16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%6 = call i32 @check(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 40, i32 16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 33800)
ret i32 0
}

LLVM IR (-O2):
@.str = [133 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/rlstr.c\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [4 x i8] c"1ab\00"
@.str.3 = [8 x i8] c"9abcdef\00"
@.str.4 = [2 x i8] c"0\00"
@.str.5 = [4 x i8] c"3af\00"
define i32 @main() {
%1 = tail call i32 @check(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 36, i32 16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 2)
%2 = tail call i32 @check(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 37, i32 16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 3074)
%3 = tail call i32 @check(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 38, i32 16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 65024)
%4 = tail call i32 @check(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 39, i32 16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%5 = tail call i32 @check(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 40, i32 16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 33800)
ret i32 0
}