#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) {
  const char *args[] = {
      "example",
  };
  (void)state;
  _assert_int_equal(((unsigned long long)((size_t)(example_main(
                        (sizeof(args) / sizeof((args)[0])), (char **)args)))),
                    ((unsigned long long)((size_t)(0))),
                    "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/jhrozek/cmocka/refs/"
                    "heads/master/example/calculator_test.c",
                    432);
}


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    %rax,%rdi
xor    %eax,%eax
mov    %eax,%esi
lea    0xeb5(%rip),%rdx
mov    $0x1b0,%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>
lea    0xec8(%rip),%rdx
mov    %rax,%rdi
xor    %esi,%esi
mov    $0x1b0,%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 = [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jhrozek/cmocka/refs/heads/master/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 = load i8**, i8*** %2
%6 = getelementptr inbounds [1 x i8*], [1 x i8*]* %3, i64 0, i64 0
%7 = call i64 @example_main(i32 1, i8** %6)
%8 = call i32 @_assert_int_equal(i64 %7, i64 0, i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.1, i64 0, i64 0), i32 432)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"example\00"
@.str.1 = [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jhrozek/cmocka/refs/heads/master/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 = call i32 @_assert_int_equal(i64 %6, i64 0, i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.1, i64 0, i64 0), i32 432)
ret void
}