#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*/ MSG(char *, char const *, char const *, ...);
void CUI_report_test_start(const char *suite_name, const char *test_name,
                           int iteration, int maxiteration) {
  if (maxiteration == 1) {
    MSG("  Test: %s/%s started\n", suite_name, test_name);
  } else {
    MSG("  Test: %s/%s started. iteration #%d out of #%d\n", suite_name,
        test_name, iteration, maxiteration);
  }
}


x86 assembly (clang, -O0):
<CUI_report_test_start>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
cmpl   $0x1,-0x18(%rbp)
jne    114b <CUI_report_test_start+0x3b>
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <MSG@plt>
jmp    1168 <CUI_report_test_start+0x58>
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
lea    0xeb6(%rip),%rdi
mov    $0x0,%al
call   1030 <MSG@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CUI_report_test_start>:
mov    %ecx,%r8d
mov    %edx,%ecx
mov    %rsi,%rdx
mov    %rdi,%rsi
cmp    $0x1,%r8d
jne    112f <CUI_report_test_start+0x1f>
lea    0xed8(%rip),%rdi
xor    %eax,%eax
jmp    1030 <MSG@plt>
lea    0xee1(%rip),%rdi
xor    %eax,%eax
jmp    1030 <MSG@plt>

LLVM IR (-O0):
@.str = [23 x i8] c" Test: %s/%s started\0A\00"
@.str.1 = [49 x i8] c" Test: %s/%s started. iteration #%d out of #%d\0A\00"
define void @CUI_report_test_start(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %8
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %15
11: ; preds = %4
%12 = load i8*, i8** %5
%13 = load i8*, i8** %6
%14 = call i32 (i8*, i8*, i8*, ...) @MSG(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %12, i8* %13)
br label %21
15: ; preds = %4
%16 = load i8*, i8** %5
%17 = load i8*, i8** %6
%18 = load i32, i32* %7
%19 = load i32, i32* %8
%20 = call i32 (i8*, i8*, i8*, ...) @MSG(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0), i8* %16, i8* %17, i32 %18, i32 %19)
br label %21
21: ; preds = %15, %11
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c" Test: %s/%s started\0A\00"
@.str.1 = [49 x i8] c" Test: %s/%s started. iteration #%d out of #%d\0A\00"
define void @CUI_report_test_start(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = icmp eq i32 %3, 1
br i1 %5, label %6, label %8
6: ; preds = %4
%7 = tail call i32 (i8*, i8*, i8*, ...) @MSG(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1)
br label %10
8: ; preds = %4
%9 = tail call i32 (i8*, i8*, i8*, ...) @MSG(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0), i8* %0, i8* %1, i32 %2, i32 %3)
br label %10
10: ; preds = %8, %6
ret void
}