#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;
  _assert_int_equal(
      ((unsigned long long)((unsigned)(perform_operation(
          0, NULL, 0, NULL, &number_of_intermediate_values,
          &intermediate_values, &error_occurred)))),
      ((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",
      237);
  _assert_int_equal(
      ((unsigned long long)((unsigned)(error_occurred))),
      ((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",
      240);
}


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    $0xed,%ecx
call   1030 <_assert_int_equal@plt>
mov    -0x1c(%rbp),%eax
mov    %eax,%edi
xor    %eax,%eax
mov    %eax,%esi
lea    0xe8b(%rip),%rdx
mov    $0xf0,%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    $0xed,%ecx
call   1030 <_assert_int_equal@plt>
mov    0x10(%rsp),%edi
xor    %esi,%esi
mov    %rbx,%rdx
mov    $0xf0,%ecx
call   1030 <_assert_int_equal@plt>
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [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_perform_operation_no_arguments(i8** %0) {
%2 = alloca i8**
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i32
store i8** %0, i8*** %2
%6 = call i64 @perform_operation(i32 0, i32* null, i32 0, i32* null, i32* %3, i32** %4, i32* %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, i64 0, i64 0), i32 237)
%10 = load i32, i32* %5
%11 = zext i32 %10 to i64
%12 = call i32 @_assert_int_equal(i64 %11, i64 0, i8* getelementptr inbounds ([175 x i8], [175 x i8]* @.str, i64 0, i64 0), i32 240)
ret void
}

LLVM IR (-O2):
@.str = [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_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 ([175 x i8], [175 x i8]* @.str, i64 0, i64 0), i32 237)
%11 = load i32, i32* %4
%12 = zext i32 %11 to i64
%13 = call i32 @_assert_int_equal(i64 %12, i64 0, i8* getelementptr inbounds ([175 x i8], [175 x i8]* @.str, i64 0, i64 0), i32 240)
ret void
}