#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*/ test(char *, int, char *, int, char *);
int main(void) {
  test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/arsv/minibase/refs/heads/master/test/string/"
       "natcmp.c",
       41, "", 0, "");
  test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/arsv/minibase/refs/heads/master/test/string/"
       "natcmp.c",
       42, "", -1, "a");
  test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/arsv/minibase/refs/heads/master/test/string/"
       "natcmp.c",
       43, "a", 1, "");
  test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/arsv/minibase/refs/heads/master/test/string/"
       "natcmp.c",
       45, "abc", 0, "abc");
  test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/arsv/minibase/refs/heads/master/test/string/"
       "natcmp.c",
       46, "abc", -1, "def");
  test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/arsv/minibase/refs/heads/master/test/string/"
       "natcmp.c",
       48, "ab", -1, "abc");
  test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/arsv/minibase/refs/heads/master/test/string/"
       "natcmp.c",
       49, "abc", 1, "ab");
  test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/arsv/minibase/refs/heads/master/test/string/"
       "natcmp.c",
       51, "a2", 1, "a1");
  test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/arsv/minibase/refs/heads/master/test/string/"
       "natcmp.c",
       52, "a10", 1, "a7");
  test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/arsv/minibase/refs/heads/master/test/string/"
       "natcmp.c",
       53, "a10", 0, "a10");
  test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/arsv/minibase/refs/heads/master/test/string/"
       "natcmp.c",
       54, "a10", 1, "a1");
  test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/arsv/minibase/refs/heads/master/test/string/"
       "natcmp.c",
       55, "a10", -1, "a11");
  test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/arsv/minibase/refs/heads/master/test/string/"
       "natcmp.c",
       57, "ab", -1, "ab1");
  test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/arsv/minibase/refs/heads/master/test/string/"
       "natcmp.c",
       58, "ab!", -1, "ab1");
  test("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/arsv/minibase/refs/heads/master/test/string/"
       "natcmp.c",
       59, "abc", 1, "ab1");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x29,%esi
lea    0xf82(%rip),%r8
xor    %ecx,%ecx
mov    %r8,%rdx
call   1030 <test@plt>
lea    0xebd(%rip),%rdi
mov    $0x2a,%esi
lea    0xf65(%rip),%rdx
mov    $0xffffffff,%ecx
lea    0xf34(%rip),%r8
call   1030 <test@plt>
lea    0xe99(%rip),%rdi
mov    $0x2b,%esi
lea    0xf1c(%rip),%rdx
mov    $0x1,%ecx
lea    0xf35(%rip),%r8
call   1030 <test@plt>
lea    0xe75(%rip),%rdi
mov    $0x2d,%esi
lea    0xefa(%rip),%r8
xor    %ecx,%ecx
mov    %r8,%rdx
call   1030 <test@plt>
lea    0xe58(%rip),%rdi
mov    $0x2e,%esi
lea    0xedd(%rip),%rdx
mov    $0xffffffff,%ecx
lea    0xed5(%rip),%r8
call   1030 <test@plt>
lea    0xe34(%rip),%rdi
mov    $0x30,%esi
lea    0xec1(%rip),%rdx
mov    $0xffffffff,%ecx
lea    0xead(%rip),%r8
call   1030 <test@plt>
lea    0xe10(%rip),%rdi
mov    $0x31,%esi
lea    0xe95(%rip),%rdx
mov    $0x1,%ecx
lea    0xe91(%rip),%r8
call   1030 <test@plt>
lea    0xdec(%rip),%rdi
mov    $0x33,%esi
lea    0xe7c(%rip),%rdx
mov    $0x1,%ecx
lea    0xe73(%rip),%r8
call   1030 <test@plt>
lea    0xdc8(%rip),%rdi
mov    $0x34,%esi
lea    0xe5e(%rip),%rdx
mov    $0x1,%ecx
lea    0xe56(%rip),%r8
call   1030 <test@plt>
lea    0xda4(%rip),%rdi
mov    $0x35,%esi
lea    0xe3a(%rip),%r8
xor    %ecx,%ecx
mov    %r8,%rdx
call   1030 <test@plt>
lea    0xd87(%rip),%rdi
mov    $0x36,%esi
lea    0xe1d(%rip),%rdx
mov    $0x1,%ecx
lea    0xe0e(%rip),%r8
call   1030 <test@plt>
lea    0xd63(%rip),%rdi
mov    $0x37,%esi
lea    0xdf9(%rip),%rdx
mov    $0xffffffff,%ecx
lea    0xdf4(%rip),%r8
call   1030 <test@plt>
lea    0xd3f(%rip),%rdi
mov    $0x39,%esi
lea    0xdcc(%rip),%rdx
mov    $0xffffffff,%ecx
lea    0xdd4(%rip),%r8
call   1030 <test@plt>
lea    0xd1b(%rip),%rdi
mov    $0x3a,%esi
lea    0xdc0(%rip),%rdx
mov    $0xffffffff,%ecx
lea    0xdb0(%rip),%r8
call   1030 <test@plt>
lea    0xcf7(%rip),%rdi
mov    $0x3b,%esi
lea    0xd7c(%rip),%rdx
mov    $0x1,%ecx
lea    0xd8c(%rip),%r8
call   1030 <test@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
lea    0xee0(%rip),%r13
lea    0xf8d(%rip),%rbx
mov    %r13,%rdi
mov    $0x29,%esi
mov    %rbx,%rdx
xor    %ecx,%ecx
mov    %rbx,%r8
call   1030 <test@plt>
lea    0xf4c(%rip),%r14
mov    %r13,%rdi
mov    $0x2a,%esi
mov    %rbx,%rdx
mov    $0xffffffff,%ecx
mov    %r14,%r8
call   1030 <test@plt>
mov    %r13,%rdi
mov    $0x2b,%esi
mov    %r14,%rdx
mov    $0x1,%ecx
mov    %rbx,%r8
call   1030 <test@plt>
lea    0xf17(%rip),%r14
mov    %r13,%rdi
mov    $0x2d,%esi
mov    %r14,%rdx
xor    %ecx,%ecx
mov    %r14,%r8
call   1030 <test@plt>
lea    0xeff(%rip),%r8
mov    %r13,%rdi
mov    $0x2e,%esi
mov    %r14,%rdx
mov    $0xffffffff,%ecx
call   1030 <test@plt>
lea    0xee7(%rip),%r15
mov    %r13,%rdi
mov    $0x30,%esi
mov    %r15,%rdx
mov    $0xffffffff,%ecx
mov    %r14,%r8
call   1030 <test@plt>
mov    %r13,%rdi
mov    $0x31,%esi
mov    %r14,%rdx
mov    $0x1,%ecx
mov    %r15,%r8
call   1030 <test@plt>
lea    0xeb3(%rip),%rdx
lea    0xeaf(%rip),%r12
mov    %r13,%rdi
mov    $0x33,%esi
mov    $0x1,%ecx
mov    %r12,%r8
call   1030 <test@plt>
lea    0xe96(%rip),%rbx
lea    0xe93(%rip),%r8
mov    %r13,%rdi
mov    $0x34,%esi
mov    %rbx,%rdx
mov    $0x1,%ecx
call   1030 <test@plt>
mov    %r13,%rdi
mov    $0x35,%esi
mov    %rbx,%rdx
xor    %ecx,%ecx
mov    %rbx,%r8
call   1030 <test@plt>
mov    %r13,%rdi
mov    $0x36,%esi
mov    %rbx,%rdx
mov    $0x1,%ecx
mov    %r12,%r8
call   1030 <test@plt>
lea    0xe4d(%rip),%r8
mov    %r13,%rdi
mov    $0x37,%esi
mov    %rbx,%rdx
mov    $0xffffffff,%ecx
call   1030 <test@plt>
lea    0xe35(%rip),%rbx
mov    %r13,%rdi
mov    $0x39,%esi
mov    %r15,%rdx
mov    $0xffffffff,%ecx
mov    %rbx,%r8
call   1030 <test@plt>
lea    0xe1a(%rip),%rdx
mov    %r13,%rdi
mov    $0x3a,%esi
mov    $0xffffffff,%ecx
mov    %rbx,%r8
call   1030 <test@plt>
mov    %r13,%rdi
mov    $0x3b,%esi
mov    %r14,%rdx
mov    $0x1,%ecx
mov    %rbx,%r8
call   1030 <test@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [143 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/minibase/refs/heads/master/test/string/natcmp.c\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [2 x i8] c"a\00"
@.str.3 = [4 x i8] c"abc\00"
@.str.4 = [4 x i8] c"def\00"
@.str.5 = [3 x i8] c"ab\00"
@.str.6 = [3 x i8] c"a2\00"
@.str.7 = [3 x i8] c"a1\00"
@.str.8 = [4 x i8] c"a10\00"
@.str.9 = [3 x i8] c"a7\00"
@.str.10 = [4 x i8] c"a11\00"
@.str.11 = [4 x i8] c"ab1\00"
@.str.12 = [4 x i8] c"ab!\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 41, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 42, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i32 -1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 45, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 46, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 -1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 48, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 -1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 49, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 51, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 52, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 53, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%12 = call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 54, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%13 = call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 55, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 -1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 57, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 -1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 58, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 -1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 59, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [143 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/minibase/refs/heads/master/test/string/natcmp.c\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [2 x i8] c"a\00"
@.str.3 = [4 x i8] c"abc\00"
@.str.4 = [4 x i8] c"def\00"
@.str.5 = [3 x i8] c"ab\00"
@.str.6 = [3 x i8] c"a2\00"
@.str.7 = [3 x i8] c"a1\00"
@.str.8 = [4 x i8] c"a10\00"
@.str.9 = [3 x i8] c"a7\00"
@.str.10 = [4 x i8] c"a11\00"
@.str.11 = [4 x i8] c"ab1\00"
@.str.12 = [4 x i8] c"ab!\00"
define i32 @main() {
%1 = tail call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 41, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 42, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i32 -1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 45, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 46, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 -1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 48, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 -1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 49, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 51, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 52, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%10 = tail call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 53, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%11 = tail call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 54, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%12 = tail call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 55, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 -1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%13 = tail call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 57, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 -1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%14 = tail call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 58, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 -1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%15 = tail call i32 @test(i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str, i64 0, i64 0), i32 59, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
ret i32 0
}