#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) {
  *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);
}


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    -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)
add    $0x30,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @Get_args(i8** %0, i32* %1, float* %2, float* %3, i32* %4) {
%6 = alloca i8**
%7 = alloca i32*
%8 = alloca float*
%9 = alloca float*
%10 = alloca i32*
store i8** %0, i8*** %6
store i32* %1, i32** %7
store float* %2, float** %8
store float* %3, float** %9
store i32* %4, i32** %10
%11 = load i8**, i8*** %6
%12 = getelementptr inbounds i8*, i8** %11, i64 1
%13 = load i8*, i8** %12
%14 = call i32 @strtol(i8* %13, i32* null, i32 10)
%15 = load i32*, i32** %7
store i32 %14, i32* %15
%16 = load i8**, i8*** %6
%17 = getelementptr inbounds i8*, i8** %16, i64 2
%18 = load i8*, i8** %17
%19 = call float @strtof(i8* %18, i32* null)
%20 = load float*, float** %8
store float %19, float* %20
%21 = load i8**, i8*** %6
%22 = getelementptr inbounds i8*, i8** %21, i64 3
%23 = load i8*, i8** %22
%24 = call float @strtof(i8* %23, i32* null)
%25 = load float*, float** %9
store float %24, float* %25
%26 = load i8**, i8*** %6
%27 = getelementptr inbounds i8*, i8** %26, i64 4
%28 = load i8*, i8** %27
%29 = call i32 @strtol(i8* %28, i32* null, i32 10)
%30 = load i32*, i32** %10
store i32 %29, i32* %30
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) {
%6 = getelementptr inbounds i8*, i8** %0, i64 1
%7 = load i8*, i8** %6
%8 = tail call i32 @strtol(i8* nocapture %7, i32* null, i32 10)
store i32 %8, i32* %1
%9 = getelementptr inbounds i8*, i8** %0, i64 2
%10 = load i8*, i8** %9
%11 = tail call float @strtof(i8* nocapture %10, i32* null)
store float %11, float* %2
%12 = getelementptr inbounds i8*, i8** %0, i64 3
%13 = load i8*, i8** %12
%14 = tail call float @strtof(i8* nocapture %13, i32* null)
store float %14, float* %3
%15 = getelementptr inbounds i8*, i8** %0, i64 4
%16 = load i8*, i8** %15
%17 = tail call i32 @strtol(i8* nocapture %16, i32* null, i32 10)
store i32 %17, i32* %4
ret void
}