#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 */
typedef int /*<<< orphan*/ args;

/* Variables and functions */
int /*<<< orphan*/ _assert_int_equal(unsigned long long, unsigned long long,
                                     char *, int);
scalar_t__ example_main(int, char **);
void test_example_main_no_args(void **state) {
  char *args[] = {
      "example",
  };
  _assert_int_equal(
      ((unsigned long long)((
          unsigned)(example_main((sizeof(args) / sizeof((args)[0])), args)))),
      ((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/calculator_test.c",
      378);
}


x86 assembly (clang, -O0):
<test_example_main_no_args>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ce5(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    -0x10(%rbp),%rsi
mov    $0x1,%edi
call   1040 <example_main@plt>
mov    %eax,%eax
mov    %eax,%edi
xor    %eax,%eax
mov    %eax,%esi
lea    0xeb4(%rip),%rdx
mov    $0x17a,%ecx
call   1030 <_assert_int_equal@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_example_main_no_args>:
push   %rax
lea    0xed8(%rip),%rax
mov    %rax,(%rsp)
mov    %rsp,%rsi
mov    $0x1,%edi
call   1040 <example_main@plt>
mov    %eax,%edi
lea    0xec6(%rip),%rdx
xor    %esi,%esi
mov    $0x17a,%ecx
call   1030 <_assert_int_equal@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [8 x i8] c"example\00"
@__const.test_example_main_no_args.args = [1 x i8*] [i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0)]
@.str.1 = [175 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/calculator_test.c\00"
define void @test_example_main_no_args(i8** %0) {
%2 = alloca i8**
%3 = alloca [1 x i8*]
store i8** %0, i8*** %2
%4 = bitcast [1 x i8*]* %3 to i8*
%5 = getelementptr inbounds [1 x i8*], [1 x i8*]* %3, i64 0, i64 0
%6 = call i64 @example_main(i32 1, i8** %5)
%7 = trunc i64 %6 to i32
%8 = zext i32 %7 to i64
%9 = call i32 @_assert_int_equal(i64 %8, i64 0, i8* getelementptr inbounds ([175 x i8], [175 x i8]* @.str.1, i64 0, i64 0), i32 378)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"example\00"
@.str.1 = [175 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/calculator_test.c\00"
define void @test_example_main_no_args(i8** nocapture readnone %0) {
%2 = alloca [1 x i8*]
%3 = bitcast [1 x i8*]* %2 to i8*
%4 = bitcast [1 x i8*]* %2 to i64*
store i64 ptrtoint ([8 x i8]* @.str to i64), i64* %4
%5 = getelementptr inbounds [1 x i8*], [1 x i8*]* %2, i64 0, i64 0
%6 = call i64 @example_main(i32 1, i8** %5)
%7 = and i64 %6, 4294967295
%8 = call i32 @_assert_int_equal(i64 %7, i64 0, i8* getelementptr inbounds ([175 x i8], [175 x i8]* @.str.1, i64 0, i64 0), i32 378)
ret void
}