#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_int_equal(unsigned long long, unsigned long long,
                                     char *, int);
scalar_t__ string_to_status_code(char *);
void string_to_status_code_test(void **state) {
  _assert_int_equal(
      ((unsigned long long)((
          unsigned)(string_to_status_code("Address not found")))),
      ((unsigned long long)((unsigned)(0))),
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/BellerophonMobile/xmp3/refs/heads/master/deps/"
      "cmockery/src/example/assert_macro_test.c",
      34);
  _assert_int_equal(
      ((unsigned long long)((
          unsigned)(string_to_status_code("Connection timed out")))),
      ((unsigned long long)((unsigned)(1))),
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/BellerophonMobile/xmp3/refs/heads/master/deps/"
      "cmockery/src/example/assert_macro_test.c",
      35);
}


x86 assembly (clang, -O0):
<string_to_status_code_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1040 <string_to_status_code@plt>
mov    %eax,%eax
mov    %eax,%edi
xor    %eax,%eax
mov    %eax,%esi
lea    0xecb(%rip),%rdx
mov    $0x22,%ecx
call   1030 <_assert_int_equal@plt>
lea    0xf6b(%rip),%rdi
call   1040 <string_to_status_code@plt>
mov    %eax,%eax
mov    %eax,%edi
mov    $0x1,%esi
lea    0xea5(%rip),%rdx
mov    $0x23,%ecx
call   1030 <_assert_int_equal@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<string_to_status_code_test>:
push   %rbx
lea    0xed8(%rip),%rdi
call   1040 <string_to_status_code@plt>
mov    %eax,%edi
lea    0xedc(%rip),%rbx
xor    %esi,%esi
mov    %rbx,%rdx
mov    $0x22,%ecx
call   1030 <_assert_int_equal@plt>
lea    0xf77(%rip),%rdi
call   1040 <string_to_status_code@plt>
mov    %eax,%edi
mov    $0x1,%esi
mov    %rbx,%rdx
mov    $0x23,%ecx
pop    %rbx
jmp    1030 <_assert_int_equal@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"Address not found\00"
@.str.1 = [177 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/BellerophonMobile/xmp3/refs/heads/master/deps/cmockery/src/example/assert_macro_test.c\00"
@.str.2 = [21 x i8] c"Connection timed out\00"
define void @string_to_status_code_test(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = call i64 @string_to_status_code(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%4 = trunc i64 %3 to i32
%5 = zext i32 %4 to i64
%6 = call i32 @_assert_int_equal(i64 %5, i64 0, i8* getelementptr inbounds ([177 x i8], [177 x i8]* @.str.1, i64 0, i64 0), i32 34)
%7 = call i64 @string_to_status_code(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%8 = trunc i64 %7 to i32
%9 = zext i32 %8 to i64
%10 = call i32 @_assert_int_equal(i64 %9, i64 1, i8* getelementptr inbounds ([177 x i8], [177 x i8]* @.str.1, i64 0, i64 0), i32 35)
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"Address not found\00"
@.str.1 = [177 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/BellerophonMobile/xmp3/refs/heads/master/deps/cmockery/src/example/assert_macro_test.c\00"
@.str.2 = [21 x i8] c"Connection timed out\00"
define void @string_to_status_code_test(i8** nocapture readnone %0) {
%2 = tail call i64 @string_to_status_code(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%3 = and i64 %2, 4294967295
%4 = tail call i32 @_assert_int_equal(i64 %3, i64 0, i8* getelementptr inbounds ([177 x i8], [177 x i8]* @.str.1, i64 0, i64 0), i32 34)
%5 = tail call i64 @string_to_status_code(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%6 = and i64 %5, 4294967295
%7 = tail call i32 @_assert_int_equal(i64 %6, i64 1, i8* getelementptr inbounds ([177 x i8], [177 x i8]* @.str.1, i64 0, i64 0), i32 35)
ret void
}