#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*/ generate_filename(char *, char const *, int, float);
int /*<<< orphan*/ printf(char *, int, float);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ sprintf(char *, char *, int, float);
int /*<<< orphan*/ system(char *);
int /*<<< orphan*/ testing_destroy();
int /*<<< orphan*/ testing_init(char *, char const *, int, float);
void start_test(const char *ping_addr, const char *results_dir_name,
                const char *skeleton_file, int runs_per_test, float interval) {
  printf("%d, %f\n", runs_per_test, interval);
  char command[50];
  char filename[50];
  generate_filename(filename, results_dir_name, runs_per_test, interval);
  sprintf(command, "ping6 -v -f -c %d -i %f -W 1 abcd::d", runs_per_test,
          interval);
  testing_init(filename, skeleton_file, runs_per_test, interval);
  puts(command);
  system(command);
  testing_destroy();
}


x86 assembly (clang, -O0):
<start_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
movss  %xmm0,-0x20(%rbp)
mov    -0x1c(%rbp),%esi
movss  -0x20(%rbp),%xmm0
lea    0xe62(%rip),%rdi
call   1070 <printf@plt>
lea    -0xa0(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x1c(%rbp),%edx
movss  -0x20(%rbp),%xmm0
call   1030 <generate_filename@plt>
lea    -0x60(%rbp),%rdi
mov    -0x1c(%rbp),%edx
movss  -0x20(%rbp),%xmm0
lea    0xe3a(%rip),%rsi
call   1090 <sprintf@plt>
lea    -0xa0(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
movss  -0x20(%rbp),%xmm0
call   1050 <testing_init@plt>
lea    -0x60(%rbp),%rdi
call   1040 <puts@plt>
lea    -0x60(%rbp),%rdi
call   1060 <system@plt>
mov    $0x0,%al
call   1080 <testing_destroy@plt>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<start_test>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x88,%rsp
movss  %xmm0,0xc(%rsp)
mov    %ecx,%ebx
mov    %rdx,%r14
mov    %rsi,%r15
lea    0xe6d(%rip),%rdi
mov    %ecx,%esi
call   1070 <printf@plt>
lea    0x10(%rsp),%r12
mov    %r12,%rdi
mov    %r15,%rsi
mov    %ebx,%edx
movss  0xc(%rsp),%xmm0
call   1030 <generate_filename@plt>
lea    0xe4f(%rip),%rsi
lea    0x50(%rsp),%r15
mov    %r15,%rdi
mov    %ebx,%edx
movss  0xc(%rsp),%xmm0
call   1090 <sprintf@plt>
mov    %r12,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
movss  0xc(%rsp),%xmm0
call   1050 <testing_init@plt>
mov    %r15,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
call   1060 <system@plt>
xor    %eax,%eax
call   1080 <testing_destroy@plt>
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [8 x i8] c"%d, %f\0A\00"
@.str.1 = [37 x i8] c"ping6 -v -f -c %d -i %f -W 1 abcd::d\00"
define void @start_test(i8* %0, i8* %1, i8* %2, i32 %3, float %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca float
%11 = alloca [50 x i8]
%12 = alloca [50 x i8]
store i8* %0, i8** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i32 %3, i32* %9
store float %4, float* %10
%13 = load i32, i32* %9
%14 = load float, float* %10
%15 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %13, float %14)
%16 = getelementptr inbounds [50 x i8], [50 x i8]* %12, i64 0, i64 0
%17 = load i8*, i8** %7
%18 = load i32, i32* %9
%19 = load float, float* %10
%20 = call i32 @generate_filename(i8* %16, i8* %17, i32 %18, float %19)
%21 = getelementptr inbounds [50 x i8], [50 x i8]* %11, i64 0, i64 0
%22 = load i32, i32* %9
%23 = load float, float* %10
%24 = call i32 @sprintf(i8* %21, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i32 %22, float %23)
%25 = getelementptr inbounds [50 x i8], [50 x i8]* %12, i64 0, i64 0
%26 = load i8*, i8** %8
%27 = load i32, i32* %9
%28 = load float, float* %10
%29 = call i32 @testing_init(i8* %25, i8* %26, i32 %27, float %28)
%30 = getelementptr inbounds [50 x i8], [50 x i8]* %11, i64 0, i64 0
%31 = call i32 @puts(i8* %30)
%32 = getelementptr inbounds [50 x i8], [50 x i8]* %11, i64 0, i64 0
%33 = call i32 @system(i8* %32)
%34 = call i32 (...) @testing_destroy()
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"%d, %f\0A\00"
@.str.1 = [37 x i8] c"ping6 -v -f -c %d -i %f -W 1 abcd::d\00"
define void @start_test(i8* nocapture readnone %0, i8* %1, i8* %2, i32 %3, float %4) {
%6 = alloca [50 x i8]
%7 = alloca [50 x i8]
%8 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %3, float %4)
%9 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%10 = getelementptr inbounds [50 x i8], [50 x i8]* %7, i64 0, i64 0
%11 = call i32 @generate_filename(i8* %10, i8* %1, i32 %3, float %4)
%12 = call i32 @sprintf(i8* %9, i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i32 %3, float %4)
%13 = call i32 @testing_init(i8* %10, i8* %2, i32 %3, float %4)
%14 = call i32 @puts(i8* %9)
%15 = call i32 @system(i8* %9)
%16 = call i32 (...) @testing_destroy()
ret void
}