#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, unsigned long, char *, int);
scalar_t__ subtract(int, int);
void test_subtract(void **state) {
  (void)state;
  _assert_int_equal(
      ((unsigned long int)(subtract(3, 3))), ((unsigned long int)(0)),
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/JonathonReinhart/cmocka/refs/heads/master/"
      "3rd-party/cmocka/example/calculator_test.c",
      109);
  _assert_int_equal(
      ((unsigned long int)(subtract(3, -3))), ((unsigned long int)(6)),
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/JonathonReinhart/cmocka/refs/heads/master/"
      "3rd-party/cmocka/example/calculator_test.c",
      110);
}


x86 assembly (clang, -O0):
<test_subtract>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x3,%esi
mov    %esi,%edi
call   1040 <subtract@plt>
mov    %rax,%rdi
xor    %eax,%eax
mov    %eax,%esi
lea    0xeba(%rip),%rdx
mov    $0x6d,%ecx
call   1030 <_assert_int_equal@plt>
mov    $0x3,%edi
mov    $0xfffffffd,%esi
call   1040 <subtract@plt>
mov    %rax,%rdi
mov    $0x6,%esi
lea    0xe92(%rip),%rdx
mov    $0x6e,%ecx
call   1030 <_assert_int_equal@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_subtract>:
push   %rbx
mov    $0x3,%edi
mov    $0x3,%esi
call   1040 <subtract@plt>
lea    0xec9(%rip),%rbx
mov    %rax,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
mov    $0x6d,%ecx
call   1030 <_assert_int_equal@plt>
mov    $0x3,%edi
mov    $0xfffffffd,%esi
call   1040 <subtract@plt>
mov    $0x6,%esi
mov    %rax,%rdi
mov    %rbx,%rdx
mov    $0x6e,%ecx
pop    %rbx
jmp    1030 <_assert_int_equal@plt>

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/JonathonReinhart/cmocka/refs/heads/master/3rd-party/cmocka/example/calculator_test.c\00"
define void @test_subtract(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i8**, i8*** %2
%4 = call i64 @subtract(i32 3, i32 3)
%5 = call i32 @_assert_int_equal(i64 %4, i64 0, i8* getelementptr inbounds ([175 x i8], [175 x i8]* @.str, i64 0, i64 0), i32 109)
%6 = call i64 @subtract(i32 3, i32 -3)
%7 = call i32 @_assert_int_equal(i64 %6, i64 6, i8* getelementptr inbounds ([175 x i8], [175 x i8]* @.str, i64 0, i64 0), i32 110)
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/JonathonReinhart/cmocka/refs/heads/master/3rd-party/cmocka/example/calculator_test.c\00"
define void @test_subtract(i8** nocapture readnone %0) {
%2 = tail call i64 @subtract(i32 3, i32 3)
%3 = tail call i32 @_assert_int_equal(i64 %2, i64 0, i8* getelementptr inbounds ([175 x i8], [175 x i8]* @.str, i64 0, i64 0), i32 109)
%4 = tail call i64 @subtract(i32 3, i32 -3)
%5 = tail call i32 @_assert_int_equal(i64 %4, i64 6, i8* getelementptr inbounds ([175 x i8], [175 x i8]* @.str, i64 0, i64 0), i32 110)
ret void
}