#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 */
float strtof(char *, int /*<<< orphan*/ *);
int strtol(char *, int /*<<< orphan*/ *, int);
void Get_args(char *argv[], int *bin_count_p, float *min_meas_p,
              float *max_meas_p, int *data_count_p, int *thread_count) {
  *bin_count_p = strtol(argv[1], NULL, 10);
  *min_meas_p = strtof(argv[2], NULL);
  *max_meas_p = strtof(argv[3], NULL);
  *data_count_p = strtol(argv[4], NULL, 10);
  *thread_count = strtol(argv[5], NULL, 10);
}


x86 assembly (clang, -O0):
<Get_args>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1040 <strtol@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <strtof@plt>
mov    -0x18(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <strtof@plt>
mov    -0x20(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1040 <strtol@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    0x28(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1040 <strtol@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Get_args>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%rbp
mov    %rdi,%rbx
mov    0x8(%rdi),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1040 <strtol@plt>
mov    %eax,0x0(%rbp)
mov    0x10(%rbx),%rdi
xor    %esi,%esi
call   1030 <strtof@plt>
movss  %xmm0,0x0(%r13)
mov    0x18(%rbx),%rdi
xor    %esi,%esi
call   1030 <strtof@plt>
movss  %xmm0,(%r12)
mov    0x20(%rbx),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1040 <strtol@plt>
mov    %eax,(%r15)
mov    0x28(%rbx),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1040 <strtol@plt>
mov    %eax,(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @Get_args(i8** %0, i32* %1, float* %2, float* %3, i32* %4, i32* %5) {
%7 = alloca i8**
%8 = alloca i32*
%9 = alloca float*
%10 = alloca float*
%11 = alloca i32*
%12 = alloca i32*
store i8** %0, i8*** %7
store i32* %1, i32** %8
store float* %2, float** %9
store float* %3, float** %10
store i32* %4, i32** %11
store i32* %5, i32** %12
%13 = load i8**, i8*** %7
%14 = getelementptr inbounds i8*, i8** %13, i64 1
%15 = load i8*, i8** %14
%16 = call i32 @strtol(i8* %15, i32* null, i32 10)
%17 = load i32*, i32** %8
store i32 %16, i32* %17
%18 = load i8**, i8*** %7
%19 = getelementptr inbounds i8*, i8** %18, i64 2
%20 = load i8*, i8** %19
%21 = call float @strtof(i8* %20, i32* null)
%22 = load float*, float** %9
store float %21, float* %22
%23 = load i8**, i8*** %7
%24 = getelementptr inbounds i8*, i8** %23, i64 3
%25 = load i8*, i8** %24
%26 = call float @strtof(i8* %25, i32* null)
%27 = load float*, float** %10
store float %26, float* %27
%28 = load i8**, i8*** %7
%29 = getelementptr inbounds i8*, i8** %28, i64 4
%30 = load i8*, i8** %29
%31 = call i32 @strtol(i8* %30, i32* null, i32 10)
%32 = load i32*, i32** %11
store i32 %31, i32* %32
%33 = load i8**, i8*** %7
%34 = getelementptr inbounds i8*, i8** %33, i64 5
%35 = load i8*, i8** %34
%36 = call i32 @strtol(i8* %35, i32* null, i32 10)
%37 = load i32*, i32** %12
store i32 %36, i32* %37
ret void
}

LLVM IR (-O2):
define void @Get_args(i8** nocapture %0, i32* nocapture writeonly %1, float* nocapture writeonly %2, float* nocapture writeonly %3, i32* nocapture writeonly %4, i32* nocapture writeonly %5) {
%7 = getelementptr inbounds i8*, i8** %0, i64 1
%8 = load i8*, i8** %7
%9 = tail call i32 @strtol(i8* nocapture %8, i32* null, i32 10)
store i32 %9, i32* %1
%10 = getelementptr inbounds i8*, i8** %0, i64 2
%11 = load i8*, i8** %10
%12 = tail call float @strtof(i8* nocapture %11, i32* null)
store float %12, float* %2
%13 = getelementptr inbounds i8*, i8** %0, i64 3
%14 = load i8*, i8** %13
%15 = tail call float @strtof(i8* nocapture %14, i32* null)
store float %15, float* %3
%16 = getelementptr inbounds i8*, i8** %0, i64 4
%17 = load i8*, i8** %16
%18 = tail call i32 @strtol(i8* nocapture %17, i32* null, i32 10)
store i32 %18, i32* %4
%19 = getelementptr inbounds i8*, i8** %0, i64 5
%20 = load i8*, i8** %19
%21 = tail call i32 @strtol(i8* nocapture %20, i32* null, i32 10)
store i32 %21, i32* %5
ret void
}