#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)((size_t)(perform_operation(
                        0, NULL, 0, NULL, &number_of_intermediate_values,
                        &intermediate_values, &error_occurred)))),
                    ((unsigned long long)((size_t)(0))),
                    "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/Odie/cmocka/refs/heads/"
                    "master/example/calculator_test.c",
                    278);
  _assert_int_equal(((unsigned long long)((size_t)(error_occurred))),
                    ((unsigned long long)((size_t)(0))),
                    "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/Odie/cmocka/refs/heads/"
                    "master/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    %rax,%rdi
xor    %eax,%eax
mov    %eax,%esi
lea    0xea6(%rip),%rdx
mov    $0x116,%ecx
call   1030 <_assert_int_equal@plt>
movslq -0x1c(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
lea    0xe8d(%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>
lea    0xeb4(%rip),%rbx
mov    %rax,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
mov    $0x116,%ecx
call   1030 <_assert_int_equal@plt>
movslq 0x10(%rsp),%rdi
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 = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Odie/cmocka/refs/heads/master/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 = call i32 @_assert_int_equal(i64 %7, i64 0, i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str, i64 0, i64 0), i32 278)
%9 = load i32, i32* %5
%10 = sext i32 %9 to i64
%11 = call i32 @_assert_int_equal(i64 %10, i64 0, i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str, i64 0, i64 0), i32 281)
ret void
}

LLVM IR (-O2):
@.str = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Odie/cmocka/refs/heads/master/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 = call i32 @_assert_int_equal(i64 %8, i64 0, i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str, i64 0, i64 0), i32 278)
%10 = load i32, i32* %4
%11 = sext i32 %10 to i64
%12 = call i32 @_assert_int_equal(i64 %11, i64 0, i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str, i64 0, i64 0), i32 281)
ret void
}