#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 EXIT_SUCCESS;
scalar_t__ expect(char *, char *, int /*<<< orphan*/, char *,
                  int /*<<< orphan*/);
int /*<<< orphan*/ test_mini_htraced_start_stop();
int main(void) {
  do {
    if (expect("0",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/"
               "heads/master/htrace-c/src/test/mini_htraced-unit.c"
               " at line "
               "44",
               0, "%d", test_mini_htraced_start_stop()))
      return 1;
  } while (0);
  ;
  ;
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <test_mini_htraced_start_stop@plt>
mov    %eax,%r8d
lea    0xec0(%rip),%rdi
lea    0xebb(%rip),%rsi
xor    %edx,%edx
lea    0xf67(%rip),%rcx
call   1040 <expect@plt>
cmp    $0x0,%rax
je     116b <main+0x4b>
movl   $0x1,-0x4(%rbp)
jmp    117c <main+0x5c>
jmp    1170 <main+0x50>
mov    0x2e69(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <test_mini_htraced_start_stop@plt>
lea    0xed1(%rip),%rdi
lea    0xecc(%rip),%rsi
lea    0xf7a(%rip),%rcx
xor    %edx,%edx
mov    %eax,%r8d
call   1040 <expect@plt>
mov    %rax,%rcx
mov    $0x1,%eax
test   %rcx,%rcx
jne    115d <main+0x3d>
mov    0x2e85(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"0\00"
@.str.1 = [181 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/heads/master/htrace-c/src/test/mini_htraced-unit.c at line 44\00"
@.str.2 = [3 x i8] c"%d\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %0
%3 = call i32 (...) @test_mini_htraced_start_stop()
%4 = call i64 @expect(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([181 x i8], [181 x i8]* @.str.1, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %2
store i32 1, i32* %1
br label %10
7: ; preds = %2
br label %8
8: ; preds = %7
%9 = load i32, i32* @EXIT_SUCCESS
store i32 %9, i32* %1
br label %10
10: ; preds = %8, %6
%11 = load i32, i32* %1
ret i32 %11
}

LLVM IR (-O2):
@.str = [2 x i8] c"0\00"
@.str.1 = [181 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/heads/master/htrace-c/src/test/mini_htraced-unit.c at line 44\00"
@.str.2 = [3 x i8] c"%d\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = tail call i32 (...) @test_mini_htraced_start_stop()
%2 = tail call i64 @expect(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([181 x i8], [181 x i8]* @.str.1, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %1)
%3 = icmp eq i64 %2, 0
%4 = load i32, i32* @EXIT_SUCCESS
%5 = select i1 %3, i32 %4, i32 1
ret i32 %5
}