const char *eat_whitespace_eos(const char *s, const char *eos) {
  (void)({
    if (__builtin_expect(!!(!(s)), 0)) {
      tor_assertion_failed_(("/scratch/repos/new/home/jordi_armengol_estape/"
                             "c-scraper/outputs/2022-01-22/02-19-57/repos/5mil/"
                             "lulz/refs/heads/master/src/tor/tor_util.c"),
                            729, __func__, "s");
      abort();
    }
  });
  (void)({
    if (__builtin_expect(!!(!(eos && s <= eos)), 0)) {
      tor_assertion_failed_(("/scratch/repos/new/home/jordi_armengol_estape/"
                             "c-scraper/outputs/2022-01-22/02-19-57/repos/5mil/"
                             "lulz/refs/heads/master/src/tor/tor_util.c"),
                            730, __func__, "eos && s <= eos");
      abort();
    }
  });
  while (s < eos) {
    switch (*s) {
    case '\0':
    default:
      return s;
    case ' ':
    case '\t':
    case '\n':
    case '\r':
      ++s;
      break;
    case '#':
      ++s;
      while (s < eos && *s && *s != '\n')
        ++s;
    }
  }
  return s;
}


x86 assembly (clang, -O0):
<eat_whitespace_eos>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
setne  %al
xor    $0xff,%al
xor    $0xff,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
cltq
cmp    $0x0,%rax
je     1175 <eat_whitespace_eos+0x55>
lea    0xeaa(%rip),%rdi
mov    $0x2d9,%esi
lea    0xf27(%rip),%rdx
lea    0xf41(%rip),%rcx
mov    $0x0,%al
call   1030 <tor_assertion_failed_@plt>
call   1040 <abort@plt>
xor    %eax,%eax
cmpq   $0x0,-0x18(%rbp)
mov    %al,-0x19(%rbp)
je     1193 <eat_whitespace_eos+0x73>
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
setbe  %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
xor    $0xff,%al
xor    $0xff,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
cltq
cmp    $0x0,%rax
je     11d3 <eat_whitespace_eos+0xb3>
lea    0xe4c(%rip),%rdi
mov    $0x2da,%esi
lea    0xec9(%rip),%rdx
lea    0xed5(%rip),%rcx
mov    $0x0,%al
call   1030 <tor_assertion_failed_@plt>
call   1040 <abort@plt>
jmp    11d8 <eat_whitespace_eos+0xb8>
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
jae    12d6 <eat_whitespace_eos+0x1b6>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0x20(%rbp)
test   %eax,%eax
je     1244 <eat_whitespace_eos+0x124>
jmp    11fd <eat_whitespace_eos+0xdd>
mov    -0x20(%rbp),%eax
add    $0xfffffff7,%eax
sub    $0x2,%eax
jb     1256 <eat_whitespace_eos+0x136>
jmp    1211 <eat_whitespace_eos+0xf1>
mov    -0x20(%rbp),%eax
sub    $0xd,%eax
je     1256 <eat_whitespace_eos+0x136>
jmp    1222 <eat_whitespace_eos+0x102>
mov    -0x20(%rbp),%eax
sub    $0x20,%eax
je     1256 <eat_whitespace_eos+0x136>
jmp    1233 <eat_whitespace_eos+0x113>
mov    -0x20(%rbp),%eax
sub    $0x23,%eax
je     1267 <eat_whitespace_eos+0x147>
jmp    1249 <eat_whitespace_eos+0x129>
jmp    1249 <eat_whitespace_eos+0x129>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    12de <eat_whitespace_eos+0x1be>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    12d1 <eat_whitespace_eos+0x1b1>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rcx
xor    %eax,%eax
cmp    -0x18(%rbp),%rcx
mov    %al,-0x21(%rbp)
jae    12ab <eat_whitespace_eos+0x18b>
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x21(%rbp)
je     12ab <eat_whitespace_eos+0x18b>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
setne  %al
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%al
test   $0x1,%al
jne    12bb <eat_whitespace_eos+0x19b>
jmp    12cc <eat_whitespace_eos+0x1ac>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1273 <eat_whitespace_eos+0x153>
jmp    12d1 <eat_whitespace_eos+0x1b1>
jmp    11d8 <eat_whitespace_eos+0xb8>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eat_whitespace_eos>:
push   %rax
test   %rdi,%rdi
je     118f <eat_whitespace_eos+0x6f>
cmp    %rsi,%rdi
ja     11ab <eat_whitespace_eos+0x8b>
jae    118a <eat_whitespace_eos+0x6a>
movabs $0x100002600,%rax
jmp    1149 <eat_whitespace_eos+0x29>
nopl   (%rax)
add    $0x1,%rdi
cmp    %rsi,%rdi
jae    118a <eat_whitespace_eos+0x6a>
movsbl (%rdi),%ecx
cmp    $0x23,%ecx
ja     118a <eat_whitespace_eos+0x6a>
bt     %rcx,%rax
jb     1140 <eat_whitespace_eos+0x20>
cmp    $0x23,%rcx
jne    118a <eat_whitespace_eos+0x6a>
add    $0x1,%rdi
mov    %rdi,%rcx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rcx,%rdi
cmp    %rsi,%rcx
jae    1144 <eat_whitespace_eos+0x24>
movzbl (%rdi),%edx
cmp    $0xa,%dl
je     1144 <eat_whitespace_eos+0x24>
lea    0x1(%rdi),%rcx
test   %dl,%dl
jne    1170 <eat_whitespace_eos+0x50>
jmp    1144 <eat_whitespace_eos+0x24>
mov    %rdi,%rax
pop    %rcx
ret
lea    0xe6a(%rip),%rdi
lea    0xeec(%rip),%rdx
lea    0xf06(%rip),%rcx
mov    $0x2d9,%esi
jmp    11c5 <eat_whitespace_eos+0xa5>
lea    0xe4e(%rip),%rdi
lea    0xed0(%rip),%rdx
lea    0xedc(%rip),%rcx
mov    $0x2da,%esi
xor    %eax,%eax
call   1030 <tor_assertion_failed_@plt>
call   1040 <abort@plt>

LLVM IR (-O0):
@.str = [137 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/5mil/lulz/refs/heads/master/src/tor/tor_util.c\00"
@__func__.eat_whitespace_eos = [19 x i8] c"eat_whitespace_eos\00"
@.str.1 = [2 x i8] c"s\00"
@.str.2 = [16 x i8] c"eos && s <= eos\00"
define i8* @eat_whitespace_eos(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
%6 = load i8*, i8** %4
%7 = icmp ne i8* %6, null
%8 = xor i1 %7, true
%9 = xor i1 %8, true
%10 = xor i1 %9, true
%11 = zext i1 %10 to i32
%12 = sext i32 %11 to i64
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @tor_assertion_failed_ to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 729, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__func__.eat_whitespace_eos, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
unreachable
16: ; preds = %2
%17 = load i8*, i8** %5
%18 = icmp ne i8* %17, null
br i1 %18, label %19, label %23
19: ; preds = %16
%20 = load i8*, i8** %4
%21 = load i8*, i8** %5
%22 = icmp ule i8* %20, %21
br label %23
23: ; preds = %19, %16
%24 = phi i1 [ false, %16 ], [ %22, %19 ]
%25 = xor i1 %24, true
%26 = xor i1 %25, true
%27 = xor i1 %26, true
%28 = zext i1 %27 to i32
%29 = sext i32 %28 to i64
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %23
%32 = call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @tor_assertion_failed_ to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 730, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__func__.eat_whitespace_eos, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
unreachable
33: ; preds = %23
br label %34
34: ; preds = %71, %33
%35 = load i8*, i8** %4
%36 = load i8*, i8** %5
%37 = icmp ult i8* %35, %36
br i1 %37, label %38, label %72
38: ; preds = %34
%39 = load i8*, i8** %4
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
switch i32 %41, label %43 [
i32 0, label %42
i32 32, label %45
i32 9, label %45
i32 10, label %45
i32 13, label %45
i32 35, label %48
]
42: ; preds = %38
br label %43
43: ; preds = %38, %42
%44 = load i8*, i8** %4
store i8* %44, i8** %3
br label %74
45: ; preds = %38, %38, %38, %38
%46 = load i8*, i8** %4
%47 = getelementptr inbounds i8, i8* %46, i32 1
store i8* %47, i8** %4
br label %71
48: ; preds = %38
%49 = load i8*, i8** %4
%50 = getelementptr inbounds i8, i8* %49, i32 1
store i8* %50, i8** %4
br label %51
51: ; preds = %67, %48
%52 = load i8*, i8** %4
%53 = load i8*, i8** %5
%54 = icmp ult i8* %52, %53
br i1 %54, label %55, label %65
55: ; preds = %51
%56 = load i8*, i8** %4
%57 = load i8, i8* %56
%58 = sext i8 %57 to i32
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %65
60: ; preds = %55
%61 = load i8*, i8** %4
%62 = load i8, i8* %61
%63 = sext i8 %62 to i32
%64 = icmp ne i32 %63, 10
br label %65
65: ; preds = %60, %55, %51
%66 = phi i1 [ false, %55 ], [ false, %51 ], [ %64, %60 ]
br i1 %66, label %67, label %70
67: ; preds = %65
%68 = load i8*, i8** %4
%69 = getelementptr inbounds i8, i8* %68, i32 1
store i8* %69, i8** %4
br label %51
70: ; preds = %65
br label %71
71: ; preds = %70, %45
br label %34
72: ; preds = %34
%73 = load i8*, i8** %4
store i8* %73, i8** %3
br label %74
74: ; preds = %72, %43
%75 = load i8*, i8** %3
ret i8* %75
}

LLVM IR (-O2):
@.str = [137 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/5mil/lulz/refs/heads/master/src/tor/tor_util.c\00"
@__func__.eat_whitespace_eos = [19 x i8] c"eat_whitespace_eos\00"
@.str.1 = [2 x i8] c"s\00"
@.str.2 = [16 x i8] c"eos && s <= eos\00"
define i8* @eat_whitespace_eos(i8* %0, i8* readnone %1) {
%3 = icmp eq i8* %0, null
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @tor_assertion_failed_ to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 729, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__func__.eat_whitespace_eos, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
tail call void @abort()
unreachable
6: ; preds = %2
%7 = icmp ugt i8* %0, %1
br i1 %7, label %10, label %8
8: ; preds = %6
%9 = icmp ult i8* %0, %1
br i1 %9, label %12, label %27
10: ; preds = %6
%11 = tail call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @tor_assertion_failed_ to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 730, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__func__.eat_whitespace_eos, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
tail call void @abort()
unreachable
12: ; preds = %8, %24
%13 = phi i8* [ %25, %24 ], [ %0, %8 ]
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
switch i32 %15, label %27 [
i32 35, label %18
i32 32, label %16
i32 9, label %16
i32 10, label %16
i32 13, label %16
]
16: ; preds = %12, %12, %12, %12
%17 = getelementptr inbounds i8, i8* %13, i64 1
br label %24
18: ; preds = %12, %22
%19 = phi i8* [ %20, %22 ], [ %13, %12 ]
%20 = getelementptr inbounds i8, i8* %19, i64 1
%21 = icmp ult i8* %20, %1
br i1 %21, label %22, label %24
22: ; preds = %18
%23 = load i8, i8* %20
switch i8 %23, label %18 [
i8 0, label %24
i8 10, label %24
]
24: ; preds = %22, %22, %18, %16
%25 = phi i8* [ %17, %16 ], [ %20, %18 ], [ %20, %22 ], [ %20, %22 ]
%26 = icmp ult i8* %25, %1
br i1 %26, label %12, label %27
27: ; preds = %12, %24, %8
%28 = phi i8* [ %0, %8 ], [ %25, %24 ], [ %13, %12 ]
ret i8* %28
}