#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__ perform_operation(int /*<<< orphan*/, int /*<<< orphan*/ *,
                             int /*<<< orphan*/, int /*<<< orphan*/ *, int *,
                             int **, int *);
void test_perform_operation_no_arguments(void **state) {
  int number_of_intermediate_values;
  int *intermediate_values;
  int error_occurred;
  (void)state;
  _assert_int_equal(((unsigned long long)((unsigned)(size_t)(perform_operation(
                        0, NULL, 0, NULL, &number_of_intermediate_values,
                        &intermediate_values, &error_occurred)))),
                    ((unsigned long long)((unsigned)(size_t)(0))),
                    "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/akikoskinen/cmocka/refs/"
                    "heads/master/src/example/calculator_test.c",
                    278);
  _assert_int_equal(((unsigned long long)((unsigned)(size_t)(error_occurred))),
                    ((unsigned long long)((unsigned)(size_t)(0))),
                    "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/akikoskinen/cmocka/refs/"
                    "heads/master/src/example/calculator_test.c",
                    281);
}


x86 assembly (clang, -O0):
<test_perform_operation_no_arguments>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
xor    %edx,%edx
xor    %eax,%eax
mov    %eax,%ecx
lea    -0xc(%rbp),%r8
lea    -0x18(%rbp),%r9
lea    -0x1c(%rbp),%rax
mov    %edx,%edi
mov    %rcx,%rsi
mov    %rax,(%rsp)
call   1040 <perform_operation@plt>
mov    %eax,%eax
mov    %eax,%edi
xor    %eax,%eax
mov    %eax,%esi
lea    0xea5(%rip),%rdx
mov    $0x116,%ecx
call   1030 <_assert_int_equal@plt>
movslq -0x1c(%rbp),%rax
mov    %eax,%eax
mov    %eax,%edi
xor    %eax,%eax
mov    %eax,%esi
lea    0xe88(%rip),%rdx
mov    $0x119,%ecx
call   1030 <_assert_int_equal@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_perform_operation_no_arguments>:
push   %rbx
sub    $0x20,%rsp
lea    0x10(%rsp),%rax
mov    %rax,(%rsp)
lea    0x14(%rsp),%r8
lea    0x18(%rsp),%r9
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1040 <perform_operation@plt>
mov    %eax,%edi
lea    0xeb2(%rip),%rbx
xor    %esi,%esi
mov    %rbx,%rdx
mov    $0x116,%ecx
call   1030 <_assert_int_equal@plt>
mov    0x10(%rsp),%edi
xor    %esi,%esi
mov    %rbx,%rdx
mov    $0x119,%ecx
call   1030 <_assert_int_equal@plt>
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [157 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/akikoskinen/cmocka/refs/heads/master/src/example/calculator_test.c\00"
define void @test_perform_operation_no_arguments(i8** %0) {
%2 = alloca i8**
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i32
store i8** %0, i8*** %2
%6 = load i8**, i8*** %2
%7 = call i64 @perform_operation(i32 0, i32* null, i32 0, i32* null, i32* %3, i32** %4, i32* %5)
%8 = trunc i64 %7 to i32
%9 = zext i32 %8 to i64
%10 = call i32 @_assert_int_equal(i64 %9, i64 0, i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str, i64 0, i64 0), i32 278)
%11 = load i32, i32* %5
%12 = sext i32 %11 to i64
%13 = trunc i64 %12 to i32
%14 = zext i32 %13 to i64
%15 = call i32 @_assert_int_equal(i64 %14, i64 0, i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str, i64 0, i64 0), i32 281)
ret void
}

LLVM IR (-O2):
@.str = [157 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/akikoskinen/cmocka/refs/heads/master/src/example/calculator_test.c\00"
define void @test_perform_operation_no_arguments(i8** nocapture readnone %0) {
%2 = alloca i32
%3 = alloca i32*
%4 = alloca i32
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32** %3 to i8*
%7 = bitcast i32* %4 to i8*
%8 = call i64 @perform_operation(i32 0, i32* null, i32 0, i32* null, i32* %2, i32** %3, i32* %4)
%9 = and i64 %8, 4294967295
%10 = call i32 @_assert_int_equal(i64 %9, i64 0, i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str, i64 0, i64 0), i32 278)
%11 = load i32, i32* %4
%12 = zext i32 %11 to i64
%13 = call i32 @_assert_int_equal(i64 %12, i64 0, i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str, i64 0, i64 0), i32 281)
ret void
}