#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*/ _exit(int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *,
                           unsigned long long, char *);
int /*<<< orphan*/ stderr;
scalar_t__ str_start(char *, char *);
void test_start(void) {
  if (!str_start("", ""))
    do {
      fprintf(stderr, "%s:%llu: %s\n",
              ("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/janmojzis/tinyssh/refs/heads/"
               "master/tinyssh-tests/strtest.c"),
              (unsigned long long)(24), (("str_start failure")));
      fflush(stderr);
      _exit(111);
    } while (0);
  ;
  if (!str_start("x", ""))
    do {
      fprintf(stderr, "%s:%llu: %s\n",
              ("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/janmojzis/tinyssh/refs/heads/"
               "master/tinyssh-tests/strtest.c"),
              (unsigned long long)(25), (("str_start failure")));
      fflush(stderr);
      _exit(111);
    } while (0);
  ;
  if (str_start("", "x"))
    do {
      fprintf(stderr, "%s:%llu: %s\n",
              ("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/janmojzis/tinyssh/refs/heads/"
               "master/tinyssh-tests/strtest.c"),
              (unsigned long long)(26), (("str_start failure")));
      fflush(stderr);
      _exit(111);
    } while (0);
  ;
  if (!str_start("ahojx", "ahoj"))
    do {
      fprintf(stderr, "%s:%llu: %s\n",
              ("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/janmojzis/tinyssh/refs/heads/"
               "master/tinyssh-tests/strtest.c"),
              (unsigned long long)(27), (("str_start failure")));
      fflush(stderr);
      _exit(111);
    } while (0);
  ;
  if (str_start("ahoj", "ahojx"))
    do {
      fprintf(stderr, "%s:%llu: %s\n",
              ("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/janmojzis/tinyssh/refs/heads/"
               "master/tinyssh-tests/strtest.c"),
              (unsigned long long)(28), (("str_start failure")));
      fflush(stderr);
      _exit(111);
    } while (0);
  ;
}


x86 assembly (clang, -O0):
<test_start>:
push   %rbp
mov    %rsp,%rbp
lea    0xec1(%rip),%rsi
mov    %rsi,%rdi
call   1050 <str_start@plt>
cmp    $0x0,%rax
jne    11a2 <test_start+0x62>
jmp    1162 <test_start+0x22>
mov    0x2e77(%rip),%rax
mov    (%rax),%edi
lea    0xe8e(%rip),%rsi
lea    0xe94(%rip),%rdx
mov    $0x18,%ecx
lea    0xf1e(%rip),%r8
call   1040 <fprintf@plt>
mov    0x2e4f(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
mov    $0x6f,%edi
call   1030 <_exit@plt>
lea    0xf10(%rip),%rdi
lea    0xe5c(%rip),%rsi
call   1050 <str_start@plt>
cmp    $0x0,%rax
jne    1204 <test_start+0xc4>
jmp    11c4 <test_start+0x84>
mov    0x2e15(%rip),%rax
mov    (%rax),%edi
lea    0xe2c(%rip),%rsi
lea    0xe32(%rip),%rdx
mov    $0x19,%ecx
lea    0xebc(%rip),%r8
call   1040 <fprintf@plt>
mov    0x2ded(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
mov    $0x6f,%edi
call   1030 <_exit@plt>
lea    0xe01(%rip),%rdi
lea    0xea7(%rip),%rsi
call   1050 <str_start@plt>
cmp    $0x0,%rax
je     1266 <test_start+0x126>
jmp    1226 <test_start+0xe6>
mov    0x2db3(%rip),%rax
mov    (%rax),%edi
lea    0xdca(%rip),%rsi
lea    0xdd0(%rip),%rdx
mov    $0x1a,%ecx
lea    0xe5a(%rip),%r8
call   1040 <fprintf@plt>
mov    0x2d8b(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
mov    $0x6f,%edi
call   1030 <_exit@plt>
lea    0xe48(%rip),%rdi
lea    0xe47(%rip),%rsi
call   1050 <str_start@plt>
cmp    $0x0,%rax
jne    12c8 <test_start+0x188>
jmp    1288 <test_start+0x148>
mov    0x2d51(%rip),%rax
mov    (%rax),%edi
lea    0xd68(%rip),%rsi
lea    0xd6e(%rip),%rdx
mov    $0x1b,%ecx
lea    0xdf8(%rip),%r8
call   1040 <fprintf@plt>
mov    0x2d29(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
mov    $0x6f,%edi
call   1030 <_exit@plt>
lea    0xdec(%rip),%rdi
lea    0xddf(%rip),%rsi
call   1050 <str_start@plt>
cmp    $0x0,%rax
je     132a <test_start+0x1ea>
jmp    12ea <test_start+0x1aa>
mov    0x2cef(%rip),%rax
mov    (%rax),%edi
lea    0xd06(%rip),%rsi
lea    0xd0c(%rip),%rdx
mov    $0x1c,%ecx
lea    0xd96(%rip),%r8
call   1040 <fprintf@plt>
mov    0x2cc7(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
mov    $0x6f,%edi
call   1030 <_exit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_start>:
push   %rbx
lea    0xec4(%rip),%rdi
mov    %rdi,%rsi
call   1050 <str_start@plt>
test   %rax,%rax
je     11c3 <test_start+0x83>
lea    0xf5d(%rip),%rdi
lea    0xea9(%rip),%rsi
call   1050 <str_start@plt>
test   %rax,%rax
je     11eb <test_start+0xab>
lea    0xe98(%rip),%rdi
lea    0xf3e(%rip),%rsi
call   1050 <str_start@plt>
test   %rax,%rax
jne    1210 <test_start+0xd0>
lea    0xf25(%rip),%rdi
lea    0xf24(%rip),%rsi
call   1050 <str_start@plt>
test   %rax,%rax
je     1235 <test_start+0xf5>
lea    0xf0f(%rip),%rdi
lea    0xf02(%rip),%rsi
call   1050 <str_start@plt>
test   %rax,%rax
jne    125a <test_start+0x11a>
pop    %rbx
ret
mov    0x2e16(%rip),%rbx
mov    (%rbx),%edi
lea    0xe2d(%rip),%rsi
lea    0xe33(%rip),%rdx
lea    0xec2(%rip),%r8
mov    $0x18,%ecx
jmp    127d <test_start+0x13d>
mov    0x2dee(%rip),%rbx
mov    (%rbx),%edi
lea    0xe05(%rip),%rsi
lea    0xe0b(%rip),%rdx
lea    0xe9a(%rip),%r8
mov    $0x19,%ecx
jmp    127d <test_start+0x13d>
mov    0x2dc9(%rip),%rbx
mov    (%rbx),%edi
lea    0xde0(%rip),%rsi
lea    0xde6(%rip),%rdx
lea    0xe75(%rip),%r8
mov    $0x1a,%ecx
jmp    127d <test_start+0x13d>
mov    0x2da4(%rip),%rbx
mov    (%rbx),%edi
lea    0xdbb(%rip),%rsi
lea    0xdc1(%rip),%rdx
lea    0xe50(%rip),%r8
mov    $0x1b,%ecx
jmp    127d <test_start+0x13d>
mov    0x2d7f(%rip),%rbx
mov    (%rbx),%edi
lea    0xd96(%rip),%rsi
lea    0xd9c(%rip),%rdx
lea    0xe2b(%rip),%r8
mov    $0x1c,%ecx
call   1040 <fprintf@plt>
mov    (%rbx),%edi
call   1060 <fflush@plt>
mov    $0x6f,%edi
call   1030 <_exit@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@stderr = global i32 0
@.str.1 = [13 x i8] c"%s:%llu: %s\0A\00"
@.str.2 = [150 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/janmojzis/tinyssh/refs/heads/master/tinyssh-tests/strtest.c\00"
@.str.3 = [18 x i8] c"str_start failure\00"
@.str.4 = [2 x i8] c"x\00"
@.str.5 = [6 x i8] c"ahojx\00"
@.str.6 = [5 x i8] c"ahoj\00"
define void @test_start() {
%1 = call i64 @str_start(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%2 = icmp ne i64 %1, 0
br i1 %2, label %11, label %3
3: ; preds = %0
br label %4
4: ; preds = %3
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.2, i64 0, i64 0), i64 24, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 @fflush(i32 %7)
%9 = call i32 @_exit(i32 111)
unreachable
10: ; No predecessors!
br label %11
11: ; preds = %10, %0
%12 = call i64 @str_start(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%13 = icmp ne i64 %12, 0
br i1 %13, label %22, label %14
14: ; preds = %11
br label %15
15: ; preds = %14
%16 = load i32, i32* @stderr
%17 = call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.2, i64 0, i64 0), i64 25, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = call i32 @fflush(i32 %18)
%20 = call i32 @_exit(i32 111)
unreachable
21: ; No predecessors!
br label %22
22: ; preds = %21, %11
%23 = call i64 @str_start(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %33
25: ; preds = %22
br label %26
26: ; preds = %25
%27 = load i32, i32* @stderr
%28 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.2, i64 0, i64 0), i64 26, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 @fflush(i32 %29)
%31 = call i32 @_exit(i32 111)
unreachable
32: ; No predecessors!
br label %33
33: ; preds = %32, %22
%34 = call i64 @str_start(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%35 = icmp ne i64 %34, 0
br i1 %35, label %44, label %36
36: ; preds = %33
br label %37
37: ; preds = %36
%38 = load i32, i32* @stderr
%39 = call i32 @fprintf(i32 %38, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.2, i64 0, i64 0), i64 27, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%40 = load i32, i32* @stderr
%41 = call i32 @fflush(i32 %40)
%42 = call i32 @_exit(i32 111)
unreachable
43: ; No predecessors!
br label %44
44: ; preds = %43, %33
%45 = call i64 @str_start(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %55
47: ; preds = %44
br label %48
48: ; preds = %47
%49 = load i32, i32* @stderr
%50 = call i32 @fprintf(i32 %49, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.2, i64 0, i64 0), i64 28, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%51 = load i32, i32* @stderr
%52 = call i32 @fflush(i32 %51)
%53 = call i32 @_exit(i32 111)
unreachable
54: ; No predecessors!
br label %55
55: ; preds = %54, %44
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@stderr = global i32 0
@.str.1 = [13 x i8] c"%s:%llu: %s\0A\00"
@.str.2 = [150 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/janmojzis/tinyssh/refs/heads/master/tinyssh-tests/strtest.c\00"
@.str.3 = [18 x i8] c"str_start failure\00"
@.str.4 = [2 x i8] c"x\00"
@.str.5 = [6 x i8] c"ahojx\00"
@.str.6 = [5 x i8] c"ahoj\00"
define void @test_start() {
%1 = tail call i64 @str_start(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %9
3: ; preds = %0
%4 = load i32, i32* @stderr
%5 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.2, i64 0, i64 0), i64 24, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%6 = load i32, i32* @stderr
%7 = tail call i32 @fflush(i32 %6)
%8 = tail call i32 @_exit(i32 111)
unreachable
9: ; preds = %0
%10 = tail call i64 @str_start(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %18
12: ; preds = %9
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.2, i64 0, i64 0), i64 25, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 @fflush(i32 %15)
%17 = tail call i32 @_exit(i32 111)
unreachable
18: ; preds = %9
%19 = tail call i64 @str_start(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %27, label %21
21: ; preds = %18
%22 = load i32, i32* @stderr
%23 = tail call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.2, i64 0, i64 0), i64 26, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = tail call i32 @fflush(i32 %24)
%26 = tail call i32 @_exit(i32 111)
unreachable
27: ; preds = %18
%28 = tail call i64 @str_start(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %36
30: ; preds = %27
%31 = load i32, i32* @stderr
%32 = tail call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.2, i64 0, i64 0), i64 27, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = tail call i32 @fflush(i32 %33)
%35 = tail call i32 @_exit(i32 111)
unreachable
36: ; preds = %27
%37 = tail call i64 @str_start(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %45, label %39
39: ; preds = %36
%40 = load i32, i32* @stderr
%41 = tail call i32 @fprintf(i32 %40, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.2, i64 0, i64 0), i64 28, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%42 = load i32, i32* @stderr
%43 = tail call i32 @fflush(i32 %42)
%44 = tail call i32 @_exit(i32 111)
unreachable
45: ; preds = %36
ret void
}