#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*/ printf(char *, ...);
void ASRT_PrintAfterSuite(const char *suiteName, int passed, int failed,
                          double seconds) {
  if (failed == 0) {
    printf("\n[OK:%d] %s, sec: %.3f", passed, suiteName, seconds);
  } else {
    printf("\n[F:%d, P:%d] %s, sec: %.3f", failed, passed, suiteName, seconds);
  }
  printf("\n================================");
}


x86 assembly (clang, -O0):
<ASRT_PrintAfterSuite>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
cmpl   $0x0,-0x10(%rbp)
jne    1150 <ASRT_PrintAfterSuite+0x40>
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%rdx
movsd  -0x18(%rbp),%xmm0
lea    0xebc(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    116d <ASRT_PrintAfterSuite+0x5d>
mov    -0x10(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%rcx
movsd  -0x18(%rbp),%xmm0
lea    0xeb1(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ASRT_PrintAfterSuite>:
push   %rax
mov    %esi,%eax
mov    %rdi,%rcx
test   %edx,%edx
je     112e <ASRT_PrintAfterSuite+0x1e>
lea    0xef6(%rip),%rdi
mov    %edx,%esi
mov    %eax,%edx
mov    $0x1,%al
call   1030 <printf@plt>
jmp    1141 <ASRT_PrintAfterSuite+0x31>
lea    0xecb(%rip),%rdi
mov    %eax,%esi
mov    %rcx,%rdx
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
xor    %eax,%eax
pop    %rcx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"\0A[OK:%d] %s, sec: %.3f\00"
@.str.1 = [28 x i8] c"\0A[F:%d, P:%d] %s, sec: %.3f\00"
@.str.2 = [34 x i8] c"\0A================================\00"
define void @ASRT_PrintAfterSuite(i8* %0, i32 %1, i32 %2, double %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca double
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store double %3, double* %8
%9 = load i32, i32* %7
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %4
%12 = load i32, i32* %6
%13 = load i8*, i8** %5
%14 = load double, double* %8
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %12, i8* %13, double %14)
br label %22
16: ; preds = %4
%17 = load i32, i32* %7
%18 = load i32, i32* %6
%19 = load i8*, i8** %5
%20 = load double, double* %8
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 %17, i32 %18, i8* %19, double %20)
br label %22
22: ; preds = %16, %11
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"\0A[OK:%d] %s, sec: %.3f\00"
@.str.1 = [28 x i8] c"\0A[F:%d, P:%d] %s, sec: %.3f\00"
@.str.2 = [34 x i8] c"\0A================================\00"
define void @ASRT_PrintAfterSuite(i8* %0, i32 %1, i32 %2, double %3) {
%5 = icmp eq i32 %2, 0
br i1 %5, label %6, label %8
6: ; preds = %4
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %1, i8* %0, double %3)
br label %10
8: ; preds = %4
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 %2, i32 %1, i8* %0, double %3)
br label %10
10: ; preds = %8, %6
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
ret void
}