#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*/ tmp;

/* Variables and functions */
scalar_t__ atof(char *);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ strncpy(char *, char const *, int);
void get_pdb_cryst1(const char *record, float *alpha, float *beta, float *gamma,
                    float *a, float *b, float *c) {
  char tmp[80 + 3];
  char ch, *s;
  memset(tmp, 0, sizeof(tmp));
  strncpy(tmp, record, 80);
  s = tmp + 6;
  ch = tmp[15];
  tmp[15] = 0;
  *a = (float)atof(s);
  s = tmp + 15;
  *s = ch;
  ch = tmp[24];
  tmp[24] = 0;
  *b = (float)atof(s);
  s = tmp + 24;
  *s = ch;
  ch = tmp[33];
  tmp[33] = 0;
  *c = (float)atof(s);
  s = tmp + 33;
  *s = ch;
  ch = tmp[40];
  tmp[40] = 0;
  *alpha = (float)atof(s);
  s = tmp + 40;
  *s = ch;
  ch = tmp[47];
  tmp[47] = 0;
  *beta = (float)atof(s);
  s = tmp + 47;
  *s = ch;
  ch = tmp[54];
  tmp[54] = 0;
  *gamma = (float)atof(s);
}


x86 assembly (clang, -O0):
<get_pdb_cryst1>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
lea    -0x90(%rbp),%rdi
xor    %esi,%esi
mov    $0x53,%edx
call   1050 <memset@plt>
lea    -0x90(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
lea    -0x90(%rbp),%rax
add    $0x6,%rax
mov    %rax,-0xa0(%rbp)
mov    -0x81(%rbp),%al
mov    %al,-0x91(%rbp)
movb   $0x0,-0x81(%rbp)
mov    -0xa0(%rbp),%rdi
call   1040 <atof@plt>
cvtsi2ss %rax,%xmm0
mov    -0x28(%rbp),%rax
movss  %xmm0,(%rax)
lea    -0x90(%rbp),%rax
add    $0xf,%rax
mov    %rax,-0xa0(%rbp)
mov    -0x91(%rbp),%cl
mov    -0xa0(%rbp),%rax
mov    %cl,(%rax)
mov    -0x78(%rbp),%al
mov    %al,-0x91(%rbp)
movb   $0x0,-0x78(%rbp)
mov    -0xa0(%rbp),%rdi
call   1040 <atof@plt>
cvtsi2ss %rax,%xmm0
mov    -0x30(%rbp),%rax
movss  %xmm0,(%rax)
lea    -0x90(%rbp),%rax
add    $0x18,%rax
mov    %rax,-0xa0(%rbp)
mov    -0x91(%rbp),%cl
mov    -0xa0(%rbp),%rax
mov    %cl,(%rax)
mov    -0x6f(%rbp),%al
mov    %al,-0x91(%rbp)
movb   $0x0,-0x6f(%rbp)
mov    -0xa0(%rbp),%rdi
call   1040 <atof@plt>
cvtsi2ss %rax,%xmm0
mov    0x10(%rbp),%rax
movss  %xmm0,(%rax)
lea    -0x90(%rbp),%rax
add    $0x21,%rax
mov    %rax,-0xa0(%rbp)
mov    -0x91(%rbp),%cl
mov    -0xa0(%rbp),%rax
mov    %cl,(%rax)
mov    -0x68(%rbp),%al
mov    %al,-0x91(%rbp)
movb   $0x0,-0x68(%rbp)
mov    -0xa0(%rbp),%rdi
call   1040 <atof@plt>
cvtsi2ss %rax,%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
lea    -0x90(%rbp),%rax
add    $0x28,%rax
mov    %rax,-0xa0(%rbp)
mov    -0x91(%rbp),%cl
mov    -0xa0(%rbp),%rax
mov    %cl,(%rax)
mov    -0x61(%rbp),%al
mov    %al,-0x91(%rbp)
movb   $0x0,-0x61(%rbp)
mov    -0xa0(%rbp),%rdi
call   1040 <atof@plt>
cvtsi2ss %rax,%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,(%rax)
lea    -0x90(%rbp),%rax
add    $0x2f,%rax
mov    %rax,-0xa0(%rbp)
mov    -0x91(%rbp),%cl
mov    -0xa0(%rbp),%rax
mov    %cl,(%rax)
mov    -0x5a(%rbp),%al
mov    %al,-0x91(%rbp)
movb   $0x0,-0x5a(%rbp)
mov    -0xa0(%rbp),%rdi
call   1040 <atof@plt>
cvtsi2ss %rax,%xmm0
mov    -0x20(%rbp),%rax
movss  %xmm0,(%rax)
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_pdb_cryst1>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %r9,%r13
mov    %r8,%r15
mov    %rcx,0x60(%rsp)
mov    %rdx,0x58(%rsp)
mov    %rsi,%r12
mov    %rdi,%rbp
mov    %rsp,%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x53,%edx
call   1050 <memset@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
lea    0x6(%rsp),%rdi
lea    0xf(%rsp),%rbp
mov    0xf(%rsp),%bl
movb   $0x0,0xf(%rsp)
call   1040 <atof@plt>
cvtsi2ss %rax,%xmm0
movss  %xmm0,(%r15)
mov    %bl,0xf(%rsp)
lea    0x18(%rsp),%r14
mov    0x18(%rsp),%bl
movb   $0x0,0x18(%rsp)
mov    %rbp,%rdi
call   1040 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
movss  %xmm0,0x0(%r13)
mov    %bl,0x18(%rsp)
lea    0x21(%rsp),%rbp
mov    0x21(%rsp),%bl
movb   $0x0,0x21(%rsp)
mov    %r14,%rdi
call   1040 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
mov    0xa0(%rsp),%rax
movss  %xmm0,(%rax)
mov    %bl,0x21(%rsp)
lea    0x28(%rsp),%r14
mov    0x28(%rsp),%bl
movb   $0x0,0x28(%rsp)
mov    %rbp,%rdi
call   1040 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
movss  %xmm0,(%r12)
mov    %bl,0x28(%rsp)
lea    0x2f(%rsp),%rbp
mov    0x2f(%rsp),%bl
movb   $0x0,0x2f(%rsp)
mov    %r14,%rdi
call   1040 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
mov    0x58(%rsp),%rax
movss  %xmm0,(%rax)
mov    %bl,0x2f(%rsp)
movb   $0x0,0x36(%rsp)
mov    %rbp,%rdi
call   1040 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
mov    0x60(%rsp),%rax
movss  %xmm0,(%rax)
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @get_pdb_cryst1(i8* %0, float* %1, float* %2, float* %3, float* %4, float* %5, float* %6) {
%8 = alloca i8*
%9 = alloca float*
%10 = alloca float*
%11 = alloca float*
%12 = alloca float*
%13 = alloca float*
%14 = alloca float*
%15 = alloca [83 x i8]
%16 = alloca i8
%17 = alloca i8*
store i8* %0, i8** %8
store float* %1, float** %9
store float* %2, float** %10
store float* %3, float** %11
store float* %4, float** %12
store float* %5, float** %13
store float* %6, float** %14
%18 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 0
%19 = call i32 @memset(i8* %18, i32 0, i32 83)
%20 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 0
%21 = load i8*, i8** %8
%22 = call i32 @strncpy(i8* %20, i8* %21, i32 80)
%23 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 0
%24 = getelementptr inbounds i8, i8* %23, i64 6
store i8* %24, i8** %17
%25 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 15
%26 = load i8, i8* %25
store i8 %26, i8* %16
%27 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 15
store i8 0, i8* %27
%28 = load i8*, i8** %17
%29 = call i64 @atof(i8* %28)
%30 = sitofp i64 %29 to float
%31 = load float*, float** %12
store float %30, float* %31
%32 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 0
%33 = getelementptr inbounds i8, i8* %32, i64 15
store i8* %33, i8** %17
%34 = load i8, i8* %16
%35 = load i8*, i8** %17
store i8 %34, i8* %35
%36 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 24
%37 = load i8, i8* %36
store i8 %37, i8* %16
%38 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 24
store i8 0, i8* %38
%39 = load i8*, i8** %17
%40 = call i64 @atof(i8* %39)
%41 = sitofp i64 %40 to float
%42 = load float*, float** %13
store float %41, float* %42
%43 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 0
%44 = getelementptr inbounds i8, i8* %43, i64 24
store i8* %44, i8** %17
%45 = load i8, i8* %16
%46 = load i8*, i8** %17
store i8 %45, i8* %46
%47 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 33
%48 = load i8, i8* %47
store i8 %48, i8* %16
%49 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 33
store i8 0, i8* %49
%50 = load i8*, i8** %17
%51 = call i64 @atof(i8* %50)
%52 = sitofp i64 %51 to float
%53 = load float*, float** %14
store float %52, float* %53
%54 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 0
%55 = getelementptr inbounds i8, i8* %54, i64 33
store i8* %55, i8** %17
%56 = load i8, i8* %16
%57 = load i8*, i8** %17
store i8 %56, i8* %57
%58 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 40
%59 = load i8, i8* %58
store i8 %59, i8* %16
%60 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 40
store i8 0, i8* %60
%61 = load i8*, i8** %17
%62 = call i64 @atof(i8* %61)
%63 = sitofp i64 %62 to float
%64 = load float*, float** %9
store float %63, float* %64
%65 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 0
%66 = getelementptr inbounds i8, i8* %65, i64 40
store i8* %66, i8** %17
%67 = load i8, i8* %16
%68 = load i8*, i8** %17
store i8 %67, i8* %68
%69 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 47
%70 = load i8, i8* %69
store i8 %70, i8* %16
%71 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 47
store i8 0, i8* %71
%72 = load i8*, i8** %17
%73 = call i64 @atof(i8* %72)
%74 = sitofp i64 %73 to float
%75 = load float*, float** %10
store float %74, float* %75
%76 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 0
%77 = getelementptr inbounds i8, i8* %76, i64 47
store i8* %77, i8** %17
%78 = load i8, i8* %16
%79 = load i8*, i8** %17
store i8 %78, i8* %79
%80 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 54
%81 = load i8, i8* %80
store i8 %81, i8* %16
%82 = getelementptr inbounds [83 x i8], [83 x i8]* %15, i64 0, i64 54
store i8 0, i8* %82
%83 = load i8*, i8** %17
%84 = call i64 @atof(i8* %83)
%85 = sitofp i64 %84 to float
%86 = load float*, float** %11
store float %85, float* %86
ret void
}

LLVM IR (-O2):
define void @get_pdb_cryst1(i8* %0, float* nocapture writeonly %1, float* nocapture writeonly %2, float* nocapture writeonly %3, float* nocapture writeonly %4, float* nocapture writeonly %5, float* nocapture writeonly %6) {
%8 = alloca [83 x i8]
%9 = getelementptr inbounds [83 x i8], [83 x i8]* %8, i64 0, i64 0
%10 = call i32 @memset(i8* %9, i32 0, i32 83)
%11 = call i32 @strncpy(i8* %9, i8* %0, i32 80)
%12 = getelementptr inbounds [83 x i8], [83 x i8]* %8, i64 0, i64 6
%13 = getelementptr inbounds [83 x i8], [83 x i8]* %8, i64 0, i64 15
%14 = load i8, i8* %13
store i8 0, i8* %13
%15 = call i64 @atof(i8* %12)
%16 = sitofp i64 %15 to float
store float %16, float* %4
store i8 %14, i8* %13
%17 = getelementptr inbounds [83 x i8], [83 x i8]* %8, i64 0, i64 24
%18 = load i8, i8* %17
store i8 0, i8* %17
%19 = call i64 @atof(i8* %13)
%20 = sitofp i64 %19 to float
store float %20, float* %5
store i8 %18, i8* %17
%21 = getelementptr inbounds [83 x i8], [83 x i8]* %8, i64 0, i64 33
%22 = load i8, i8* %21
store i8 0, i8* %21
%23 = call i64 @atof(i8* %17)
%24 = sitofp i64 %23 to float
store float %24, float* %6
store i8 %22, i8* %21
%25 = getelementptr inbounds [83 x i8], [83 x i8]* %8, i64 0, i64 40
%26 = load i8, i8* %25
store i8 0, i8* %25
%27 = call i64 @atof(i8* %21)
%28 = sitofp i64 %27 to float
store float %28, float* %1
store i8 %26, i8* %25
%29 = getelementptr inbounds [83 x i8], [83 x i8]* %8, i64 0, i64 47
%30 = load i8, i8* %29
store i8 0, i8* %29
%31 = call i64 @atof(i8* %25)
%32 = sitofp i64 %31 to float
store float %32, float* %2
store i8 %30, i8* %29
%33 = getelementptr inbounds [83 x i8], [83 x i8]* %8, i64 0, i64 54
store i8 0, i8* %33
%34 = call i64 @atof(i8* %29)
%35 = sitofp i64 %34 to float
store float %35, float* %3
ret void
}