#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*/ _expect_string(char *, char *, char *, int, char const *,
                                  int);
int /*<<< orphan*/ _will_return(char *, char *, int, unsigned long long, int);
scalar_t__ connect_to_product_database();
void test_connect_to_product_database_missing_parameter(void **state) {
  _expect_string(
      "connect_to_database", "url",
      "/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/product_database_test.c",
      54, (const char *)("products.abcd.org"), 1);
  _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/product_database_test.c",
               55, ((unsigned long long)((unsigned)(0xDA7ABA53))), 1);
  _assert_int_equal(
      ((unsigned long long)((unsigned)((int)connect_to_product_database()))),
      ((unsigned long long)((unsigned)(0xDA7ABA53))),
      "/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/product_database_test.c",
      56);
}


x86 assembly (clang, -O0):
<test_connect_to_product_database_missing_parameter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xead(%rip),%rdi
lea    0xeba(%rip),%rsi
lea    0xeb7(%rip),%rdx
mov    $0x36,%ecx
lea    0xf60(%rip),%r8
mov    $0x1,%r9d
call   1040 <_expect_string@plt>
lea    0xe81(%rip),%rdi
lea    0xe92(%rip),%rsi
mov    $0x37,%edx
mov    $0xda7aba53,%ecx
mov    $0x1,%r8d
call   1060 <_will_return@plt>
mov    $0x0,%al
call   1030 <connect_to_product_database@plt>
mov    %eax,%eax
mov    %eax,%edi
mov    $0xda7aba53,%esi
lea    0xe66(%rip),%rdx
mov    $0x38,%ecx
call   1050 <_assert_int_equal@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_connect_to_product_database_missing_parameter>:
push   %r14
push   %rbx
push   %rax
lea    0xeb5(%rip),%r14
lea    0xec2(%rip),%rsi
lea    0xebf(%rip),%rbx
lea    0xf6d(%rip),%r8
mov    %r14,%rdi
mov    %rbx,%rdx
mov    $0x36,%ecx
mov    $0x1,%r9d
call   1040 <_expect_string@plt>
mov    $0xda7aba53,%ecx
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x37,%edx
mov    $0x1,%r8d
call   1060 <_will_return@plt>
xor    %eax,%eax
call   1030 <connect_to_product_database@plt>
mov    %eax,%edi
mov    $0xda7aba53,%esi
mov    %rbx,%rdx
mov    $0x38,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <_assert_int_equal@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"connect_to_database\00"
@.str.1 = [4 x i8] c"url\00"
@.str.2 = [181 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/product_database_test.c\00"
@.str.3 = [18 x i8] c"products.abcd.org\00"
define void @test_connect_to_product_database_missing_parameter(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = call i32 @_expect_string(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([181 x i8], [181 x i8]* @.str.2, i64 0, i64 0), i32 54, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 1)
%4 = call i32 @_will_return(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([181 x i8], [181 x i8]* @.str.2, i64 0, i64 0), i32 55, i64 3665476179, i32 1)
%5 = call i64 (...) @connect_to_product_database()
%6 = trunc i64 %5 to i32
%7 = zext i32 %6 to i64
%8 = call i32 @_assert_int_equal(i64 %7, i64 3665476179, i8* getelementptr inbounds ([181 x i8], [181 x i8]* @.str.2, i64 0, i64 0), i32 56)
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"connect_to_database\00"
@.str.1 = [4 x i8] c"url\00"
@.str.2 = [181 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/product_database_test.c\00"
@.str.3 = [18 x i8] c"products.abcd.org\00"
define void @test_connect_to_product_database_missing_parameter(i8** nocapture readnone %0) {
%2 = tail call i32 @_expect_string(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([181 x i8], [181 x i8]* @.str.2, i64 0, i64 0), i32 54, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 1)
%3 = tail call i32 @_will_return(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([181 x i8], [181 x i8]* @.str.2, i64 0, i64 0), i32 55, i64 3665476179, i32 1)
%4 = tail call i64 (...) @connect_to_product_database()
%5 = and i64 %4, 4294967295
%6 = tail call i32 @_assert_int_equal(i64 %5, i64 3665476179, i8* getelementptr inbounds ([181 x i8], [181 x i8]* @.str.2, i64 0, i64 0), i32 56)
ret void
}