#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*/ print(int, char *, int);
int /*<<< orphan*/ sf_putnbr(unsigned int);
int /*<<< orphan*/ write(int, char *, int);
void sf_final_count(unsigned int succeded, unsigned int total) {
  write(1, "\033[96m", 5);
  print(1, "\n--- ", 5);
  sf_putnbr(succeded);
  print(1, "/", 1);
  sf_putnbr(total);
  print(1, " test passed successfully ---\n", 30);
  write(1, "\033[0m", 5);
}


x86 assembly (clang, -O0):
<sf_final_count>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    $0x1,%edi
lea    0xeb6(%rip),%rsi
mov    $0x5,%edx
call   1030 <write@plt>
mov    $0x1,%edi
lea    0xea6(%rip),%rsi
mov    $0x5,%edx
call   1040 <print@plt>
mov    -0x4(%rbp),%edi
call   1050 <sf_putnbr@plt>
mov    $0x1,%edx
lea    0xe8e(%rip),%rsi
mov    %edx,%edi
call   1040 <print@plt>
mov    -0x8(%rbp),%edi
call   1050 <sf_putnbr@plt>
mov    $0x1,%edi
lea    0xe75(%rip),%rsi
mov    $0x1e,%edx
call   1040 <print@plt>
mov    $0x1,%edi
lea    0xe7e(%rip),%rsi
mov    $0x5,%edx
call   1030 <write@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sf_final_count>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
lea    0xec2(%rip),%rsi
mov    $0x1,%edi
mov    $0x5,%edx
call   1030 <write@plt>
lea    0xeb2(%rip),%rsi
mov    $0x1,%edi
mov    $0x5,%edx
call   1040 <print@plt>
mov    %ebp,%edi
call   1050 <sf_putnbr@plt>
lea    0xe9b(%rip),%rsi
mov    $0x1,%edi
mov    $0x1,%edx
call   1040 <print@plt>
mov    %ebx,%edi
call   1050 <sf_putnbr@plt>
lea    0xe80(%rip),%rsi
mov    $0x1,%edi
mov    $0x1e,%edx
call   1040 <print@plt>
lea    0xe89(%rip),%rsi
mov    $0x1,%edi
mov    $0x5,%edx
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <write@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"\1B[96m\00"
@.str.1 = [6 x i8] c"\0A--- \00"
@.str.2 = [2 x i8] c"/\00"
@.str.3 = [31 x i8] c" test passed successfully ---\0A\00"
@.str.4 = [5 x i8] c"\1B[0m\00"
define void @sf_final_count(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = call i32 @write(i32 1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 5)
%6 = call i32 @print(i32 1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 5)
%7 = load i32, i32* %3
%8 = call i32 @sf_putnbr(i32 %7)
%9 = call i32 @print(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 1)
%10 = load i32, i32* %4
%11 = call i32 @sf_putnbr(i32 %10)
%12 = call i32 @print(i32 1, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i32 30)
%13 = call i32 @write(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 5)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"\1B[96m\00"
@.str.1 = [6 x i8] c"\0A--- \00"
@.str.2 = [2 x i8] c"/\00"
@.str.3 = [31 x i8] c" test passed successfully ---\0A\00"
@.str.4 = [5 x i8] c"\1B[0m\00"
define void @sf_final_count(i32 %0, i32 %1) {
%3 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 5)
%4 = tail call i32 @print(i32 1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 5)
%5 = tail call i32 @sf_putnbr(i32 %0)
%6 = tail call i32 @print(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 1)
%7 = tail call i32 @sf_putnbr(i32 %1)
%8 = tail call i32 @print(i32 1, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i32 30)
%9 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 5)
ret void
}