#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);
int /*<<< orphan*/ _will_return(char *, char *, int, unsigned long long, int);
scalar_t__ connect_to_customer_database();
void test_connect_to_customer_database(void **state) {
  _will_return(
      "connect_to_database",
      "/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/customer_database_test.c",
      41, ((unsigned long long)((unsigned)(0x0DA7ABA53))), 1);
  _assert_int_equal(
      ((unsigned long long)((unsigned)((int)connect_to_customer_database()))),
      ((unsigned long long)((unsigned)(0x0DA7ABA53))),
      "/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/customer_database_test.c",
      42);
}


x86 assembly (clang, -O0):
<test_connect_to_customer_database>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xebd(%rip),%rdi
lea    0xeca(%rip),%rsi
mov    $0x29,%edx
mov    $0xda7aba53,%ecx
mov    $0x1,%r8d
call   1050 <_will_return@plt>
mov    $0x0,%al
call   1040 <connect_to_customer_database@plt>
mov    %eax,%eax
mov    %eax,%edi
mov    $0xda7aba53,%esi
lea    0xe9e(%rip),%rdx
mov    $0x2a,%ecx
call   1030 <_assert_int_equal@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_connect_to_customer_database>:
push   %rbx
lea    0xec8(%rip),%rdi
lea    0xed5(%rip),%rbx
mov    $0xda7aba53,%ecx
mov    %rbx,%rsi
mov    $0x29,%edx
mov    $0x1,%r8d
call   1050 <_will_return@plt>
xor    %eax,%eax
call   1040 <connect_to_customer_database@plt>
mov    %eax,%edi
mov    $0xda7aba53,%esi
mov    %rbx,%rdx
mov    $0x2a,%ecx
pop    %rbx
jmp    1030 <_assert_int_equal@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"connect_to_database\00"
@.str.1 = [182 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/customer_database_test.c\00"
define void @test_connect_to_customer_database(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = call i32 @_will_return(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([182 x i8], [182 x i8]* @.str.1, i64 0, i64 0), i32 41, i64 3665476179, i32 1)
%4 = call i64 (...) @connect_to_customer_database()
%5 = trunc i64 %4 to i32
%6 = zext i32 %5 to i64
%7 = call i32 @_assert_int_equal(i64 %6, i64 3665476179, i8* getelementptr inbounds ([182 x i8], [182 x i8]* @.str.1, i64 0, i64 0), i32 42)
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"connect_to_database\00"
@.str.1 = [182 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/customer_database_test.c\00"
define void @test_connect_to_customer_database(i8** nocapture readnone %0) {
%2 = tail call i32 @_will_return(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([182 x i8], [182 x i8]* @.str.1, i64 0, i64 0), i32 41, i64 3665476179, i32 1)
%3 = tail call i64 (...) @connect_to_customer_database()
%4 = and i64 %3, 4294967295
%5 = tail call i32 @_assert_int_equal(i64 %4, i64 3665476179, i8* getelementptr inbounds ([182 x i8], [182 x i8]* @.str.1, i64 0, i64 0), i32 42)
ret void
}