#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fscanf(int /*<<< orphan*/ *, char *, double *, double *, double *);
int de_ascii_1030_header(FILE *f, double *s, double *e, double *i) {
  double start, end, interval;
  if (fscanf(f, "%lf %lf %lf\n", &start, &end, &interval) == 3) {
    *s = start;
    *e = end;
    *i = interval;
    return 0;
  }
  return -1;
}


x86 assembly (clang, -O0):
<de_ascii_1030_header>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xecd(%rip),%rsi
lea    -0x30(%rbp),%rdx
lea    -0x38(%rbp),%rcx
lea    -0x40(%rbp),%r8
call   1030 <fscanf@plt>
cmp    $0x3,%eax
jne    1180 <de_ascii_1030_header+0x70>
movsd  -0x30(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x38(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x40(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    1187 <de_ascii_1030_header+0x77>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<de_ascii_1030_header>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%rbx
lea    0xed7(%rip),%rsi
lea    0x18(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0x8(%rsp),%r8
call   1030 <fscanf@plt>
mov    %eax,%ecx
mov    $0xffffffff,%eax
cmp    $0x3,%ecx
jne    116b <de_ascii_1030_header+0x5b>
movsd  0x18(%rsp),%xmm0
movsd  %xmm0,(%rbx)
movsd  0x10(%rsp),%xmm0
movsd  %xmm0,(%r15)
movsd  0x8(%rsp),%xmm0
movsd  %xmm0,(%r14)
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [13 x i8] c"%lf %lf %lf\0A\00"
define i32 @de_ascii_1030_header(i32* %0, double* %1, double* %2, double* %3) {
%5 = alloca i32
%6 = alloca i32*
%7 = alloca double*
%8 = alloca double*
%9 = alloca double*
%10 = alloca double
%11 = alloca double
%12 = alloca double
store i32* %0, i32** %6
store double* %1, double** %7
store double* %2, double** %8
store double* %3, double** %9
%13 = load i32*, i32** %6
%14 = call i32 @fscanf(i32* %13, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), double* %10, double* %11, double* %12)
%15 = icmp eq i32 %14, 3
br i1 %15, label %16, label %23
16: ; preds = %4
%17 = load double, double* %10
%18 = load double*, double** %7
store double %17, double* %18
%19 = load double, double* %11
%20 = load double*, double** %8
store double %19, double* %20
%21 = load double, double* %12
%22 = load double*, double** %9
store double %21, double* %22
store i32 0, i32* %5
br label %24
23: ; preds = %4
store i32 -1, i32* %5
br label %24
24: ; preds = %23, %16
%25 = load i32, i32* %5
ret i32 %25
}

LLVM IR (-O2):
@.str = [13 x i8] c"%lf %lf %lf\0A\00"
define i32 @de_ascii_1030_header(i32* nocapture %0, double* nocapture writeonly %1, double* nocapture writeonly %2, double* nocapture writeonly %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = bitcast double* %5 to i8*
%9 = bitcast double* %6 to i8*
%10 = bitcast double* %7 to i8*
%11 = call i32 @fscanf(i32* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), double* %5, double* %6, double* %7)
%12 = icmp eq i32 %11, 3
br i1 %12, label %13, label %17
13: ; preds = %4
%14 = load double, double* %5
store double %14, double* %1
%15 = load double, double* %6
store double %15, double* %2
%16 = load double, double* %7
store double %16, double* %3
br label %17
17: ; preds = %4, %13
%18 = phi i32 [ 0, %13 ], [ -1, %4 ]
ret i32 %18
}