int binary_operator(int a, int b) {
  _check_expected(
      __func__, "a",
      "/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",
      91, ((unsigned long int)(a)));
  _check_expected(
      __func__, "b",
      "/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",
      92, ((unsigned long int)(b)));
  return (int)_mock(
      __func__,
      "/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",
      93);
}


x86 assembly (clang, -O0):
<binary_operator>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movslq -0x4(%rbp),%r8
lea    0xec7(%rip),%rdi
lea    0xed0(%rip),%rsi
lea    0xecb(%rip),%rdx
mov    $0x5b,%ecx
mov    $0x0,%al
call   1040 <_check_expected@plt>
movslq -0x8(%rbp),%r8
lea    0xea2(%rip),%rdi
lea    0xf5c(%rip),%rsi
lea    0xea6(%rip),%rdx
mov    $0x5c,%ecx
mov    $0x0,%al
call   1040 <_check_expected@plt>
lea    0xe81(%rip),%rdi
lea    0xe8c(%rip),%rsi
mov    $0x5d,%edx
mov    $0x0,%al
call   1030 <_mock@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<binary_operator>:
push   %r15
push   %r14
push   %rbx
mov    %esi,%ebx
movslq %edi,%r8
lea    0xecf(%rip),%r14
lea    0xed8(%rip),%rsi
lea    0xed3(%rip),%r15
mov    %r14,%rdi
mov    %r15,%rdx
mov    $0x5b,%ecx
xor    %eax,%eax
call   1040 <_check_expected@plt>
movslq %ebx,%r8
lea    0xf66(%rip),%rsi
mov    %r14,%rdi
mov    %r15,%rdx
mov    $0x5c,%ecx
xor    %eax,%eax
call   1040 <_check_expected@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0x5d,%edx
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <_mock@plt>

LLVM IR (-O0):
@__func__.binary_operator = [16 x i8] c"binary_operator\00"
@.str = [2 x i8] c"a\00"
@.str.1 = [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"
@.str.2 = [2 x i8] c"b\00"
define i32 @binary_operator(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = sext i32 %5 to i64
%7 = call i32 (i8*, i8*, i8*, i32, i64, ...) bitcast (i32 (...)* @_check_expected to i32 (i8*, i8*, i8*, i32, i64, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @__func__.binary_operator, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([175 x i8], [175 x i8]* @.str.1, i64 0, i64 0), i32 91, i64 %6)
%8 = load i32, i32* %4
%9 = sext i32 %8 to i64
%10 = call i32 (i8*, i8*, i8*, i32, i64, ...) bitcast (i32 (...)* @_check_expected to i32 (i8*, i8*, i8*, i32, i64, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @__func__.binary_operator, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([175 x i8], [175 x i8]* @.str.1, i64 0, i64 0), i32 92, i64 %9)
%11 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @_mock to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @__func__.binary_operator, i64 0, i64 0), i8* getelementptr inbounds ([175 x i8], [175 x i8]* @.str.1, i64 0, i64 0), i32 93)
ret i32 %11
}

LLVM IR (-O2):
@__func__.binary_operator = [16 x i8] c"binary_operator\00"
@.str = [2 x i8] c"a\00"
@.str.1 = [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"
@.str.2 = [2 x i8] c"b\00"
define i32 @binary_operator(i32 %0, i32 %1) {
%3 = sext i32 %0 to i64
%4 = tail call i32 (i8*, i8*, i8*, i32, i64, ...) bitcast (i32 (...)* @_check_expected to i32 (i8*, i8*, i8*, i32, i64, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @__func__.binary_operator, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([175 x i8], [175 x i8]* @.str.1, i64 0, i64 0), i32 91, i64 %3)
%5 = sext i32 %1 to i64
%6 = tail call i32 (i8*, i8*, i8*, i32, i64, ...) bitcast (i32 (...)* @_check_expected to i32 (i8*, i8*, i8*, i32, i64, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @__func__.binary_operator, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([175 x i8], [175 x i8]* @.str.1, i64 0, i64 0), i32 92, i64 %5)
%7 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @_mock to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @__func__.binary_operator, i64 0, i64 0), i8* getelementptr inbounds ([175 x i8], [175 x i8]* @.str.1, i64 0, i64 0), i32 93)
ret i32 %7
}