#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*/ assert_failed(char *, int);
int /*<<< orphan*/ char_inc_exc(char, unsigned int const, unsigned int const);
int string_class(const char *str, const unsigned int inclusive,
                 const unsigned int exclusive) {
  char c;
  do {
    if (!(str))
      assert_failed("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/ZHAW-INES/"
                    "rioxo-uClinux-dist/refs/heads/master/buffer.c",
                    714);
  } while (0);
  while ((c = *str++)) {
    if (!char_inc_exc(c, inclusive, exclusive))
      return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<string_class>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    114e <string_class+0x2e>
lea    0xebc(%rip),%rdi
mov    $0x2ca,%esi
call   1040 <assert_failed@plt>
jmp    1153 <string_class+0x33>
jmp    1158 <string_class+0x38>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%al
mov    %al,-0x19(%rbp)
cmp    $0x0,%al
je     119f <string_class+0x7f>
mov    -0x19(%rbp),%al
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
movsbl %al,%edi
call   1030 <char_inc_exc@plt>
cmp    $0x0,%eax
jne    119a <string_class+0x7a>
movl   $0x0,-0x4(%rbp)
jmp    11a6 <string_class+0x86>
jmp    1158 <string_class+0x38>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<string_class>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %esi,%ebp
mov    %rdi,%rbx
test   %rdi,%rdi
jne    1150 <string_class+0x30>
lea    0xec8(%rip),%rdi
mov    $0x2ca,%esi
call   1040 <assert_failed@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl (%rbx),%eax
test   %al,%al
je     1170 <string_class+0x50>
add    $0x1,%rbx
movsbl %al,%edi
mov    %ebp,%esi
mov    %r14d,%edx
call   1030 <char_inc_exc@plt>
test   %eax,%eax
jne    1150 <string_class+0x30>
xor    %eax,%eax
jmp    1175 <string_class+0x55>
mov    $0x1,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ZHAW-INES/rioxo-uClinux-dist/refs/heads/master/buffer.c\00"
define i32 @string_class(i8* %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
br label %9
9: ; preds = %3
%10 = load i8*, i8** %5
%11 = icmp ne i8* %10, null
br i1 %11, label %14, label %12
12: ; preds = %9
%13 = call i32 @assert_failed(i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str, i64 0, i64 0), i32 714)
br label %14
14: ; preds = %12, %9
br label %15
15: ; preds = %14
br label %16
16: ; preds = %28, %15
%17 = load i8*, i8** %5
%18 = getelementptr inbounds i8, i8* %17, i32 1
store i8* %18, i8** %5
%19 = load i8, i8* %17
store i8 %19, i8* %8
%20 = icmp ne i8 %19, 0
br i1 %20, label %21, label %29
21: ; preds = %16
%22 = load i8, i8* %8
%23 = load i32, i32* %6
%24 = load i32, i32* %7
%25 = call i32 @char_inc_exc(i8 signext %22, i32 %23, i32 %24)
%26 = icmp ne i32 %25, 0
br i1 %26, label %28, label %27
27: ; preds = %21
store i32 0, i32* %4
br label %30
28: ; preds = %21
br label %16
29: ; preds = %16
store i32 1, i32* %4
br label %30
30: ; preds = %29, %27
%31 = load i32, i32* %4
ret i32 %31
}

LLVM IR (-O2):
@.str = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ZHAW-INES/rioxo-uClinux-dist/refs/heads/master/buffer.c\00"
define i32 @string_class(i8* %0, i32 %1, i32 %2) {
%4 = icmp eq i8* %0, null
br i1 %4, label %5, label %7
5: ; preds = %3
%6 = tail call i32 @assert_failed(i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str, i64 0, i64 0), i32 714)
br label %7
7: ; preds = %5, %3
br label %8
8: ; preds = %7, %12
%9 = phi i8* [ %13, %12 ], [ %0, %7 ]
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, 0
br i1 %11, label %16, label %12
12: ; preds = %8
%13 = getelementptr inbounds i8, i8* %9, i64 1
%14 = tail call i32 @char_inc_exc(i8 signext %10, i32 %1, i32 %2)
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %8
16: ; preds = %8, %12
%17 = phi i32 [ 0, %12 ], [ 1, %8 ]
ret i32 %17
}