#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 *, float);
float *step_count(int /*<<< orphan*/, int /*<<< orphan*/, int);
int /*<<< orphan*/ strtof(char *, int /*<<< orphan*/ *);
int strtol(char *, int /*<<< orphan*/ *, int);
int main(int argc, char *argv[]) {
  float *myArr = step_count(strtof(argv[1], NULL), strtof(argv[2], NULL),
                            strtol(argv[3], NULL, 10));
  for (int i = 0; i < strtol(argv[3], NULL, 10); i++)
    printf("%0.3f ", myArr[i]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <strtof@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <strtof@plt>
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1050 <strtol@plt>
mov    -0x24(%rbp),%edi
mov    -0x20(%rbp),%esi
mov    %eax,%edx
call   1060 <step_count@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1050 <strtol@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%eax
cmp    %ecx,%eax
jge    11fc <main+0xbc>
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
lea    0xe17(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11ac <main+0x6c>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    0x8(%rsi),%rdi
xor    %esi,%esi
call   1040 <strtof@plt>
mov    %eax,%ebx
mov    0x10(%r14),%rdi
xor    %esi,%esi
call   1040 <strtof@plt>
mov    %eax,%ebp
mov    0x18(%r14),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1050 <strtol@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    %eax,%edx
call   1060 <step_count@plt>
mov    %rax,%rbx
mov    0x18(%r14),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1050 <strtol@plt>
test   %eax,%eax
jle    11c8 <main+0x88>
xor    %ebp,%ebp
lea    0xe61(%rip),%r15
nop
movss  (%rbx,%rbp,4),%xmm0
mov    %r15,%rdi
call   1030 <printf@plt>
add    $0x1,%rbp
mov    0x18(%r14),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1050 <strtol@plt>
cltq
cmp    %rax,%rbp
jl     11a0 <main+0x60>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%0.3f \00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float*
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = load i8**, i8*** %5
%9 = getelementptr inbounds i8*, i8** %8, i64 1
%10 = load i8*, i8** %9
%11 = call i32 @strtof(i8* %10, i32* null)
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 2
%14 = load i8*, i8** %13
%15 = call i32 @strtof(i8* %14, i32* null)
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 3
%18 = load i8*, i8** %17
%19 = call i32 @strtol(i8* %18, i32* null, i32 10)
%20 = call float* @step_count(i32 %11, i32 %15, i32 %19)
store float* %20, float** %6
store i32 0, i32* %7
br label %21
21: ; preds = %35, %2
%22 = load i32, i32* %7
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 3
%25 = load i8*, i8** %24
%26 = call i32 @strtol(i8* %25, i32* null, i32 10)
%27 = icmp slt i32 %22, %26
br i1 %27, label %28, label %38
28: ; preds = %21
%29 = load float*, float** %6
%30 = load i32, i32* %7
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds float, float* %29, i64 %31
%33 = load float, float* %32
%34 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), float %33)
br label %35
35: ; preds = %28
%36 = load i32, i32* %7
%37 = add nsw i32 %36, 1
store i32 %37, i32* %7
br label %21
38: ; preds = %21
%39 = load i32, i32* %3
ret i32 %39
}

LLVM IR (-O2):
@.str = [7 x i8] c"%0.3f \00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = tail call i32 @strtof(i8* nocapture %4, i32* null)
%6 = getelementptr inbounds i8*, i8** %1, i64 2
%7 = load i8*, i8** %6
%8 = tail call i32 @strtof(i8* nocapture %7, i32* null)
%9 = getelementptr inbounds i8*, i8** %1, i64 3
%10 = load i8*, i8** %9
%11 = tail call i32 @strtol(i8* nocapture %10, i32* null, i32 10)
%12 = tail call float* @step_count(i32 %5, i32 %8, i32 %11)
%13 = load i8*, i8** %9
%14 = tail call i32 @strtol(i8* nocapture %13, i32* null, i32 10)
%15 = icmp sgt i32 %14, 0
br i1 %15, label %17, label %16
16: ; preds = %17, %2
ret i32 0
17: ; preds = %2, %17
%18 = phi i64 [ %22, %17 ], [ 0, %2 ]
%19 = getelementptr inbounds float, float* %12, i64 %18
%20 = load float, float* %19
%21 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), float %20)
%22 = add nuw nsw i64 %18, 1
%23 = load i8*, i8** %9
%24 = tail call i32 @strtol(i8* nocapture %23, i32* null, i32 10)
%25 = sext i32 %24 to i64
%26 = icmp slt i64 %22, %25
br i1 %26, label %17, label %16
}