#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 atof(char *);
int atoi(char *);
scalar_t__ strncmp(char *, char *, int);
int /*<<< orphan*/ strncpy(char *, char *, int);
void get_filtvals(char *cbuf, float *flo, float *fhi, int *ord, int *phs) {
  char temp1[1024];
  int i, j;
  while (cbuf[0] != '\0') {
    if (cbuf[0] == '-') {
      cbuf++;
      if (strncmp(cbuf, "flo", 3) == 0) {
        cbuf = cbuf + 3;
        j = 0;
        while (cbuf[j] != '-' && cbuf[j] != '\0')
          j++;
        strncpy(temp1, cbuf, j);
        temp1[j] = '\0';
        *flo = atof(temp1);
        cbuf = cbuf + j;
      } else if (strncmp(cbuf, "fhi", 3) == 0) {
        cbuf = cbuf + 3;
        j = 0;
        while (cbuf[j] != '-' && cbuf[j] != '\0')
          j++;
        strncpy(temp1, cbuf, j);
        temp1[j] = '\0';
        *fhi = atof(temp1);
        cbuf = cbuf + j;
      } else if (strncmp(cbuf, "ord", 3) == 0) {
        cbuf = cbuf + 3;
        j = 0;
        while (cbuf[j] != '-' && cbuf[j] != '\0')
          j++;
        strncpy(temp1, cbuf, j);
        temp1[j] = '\0';
        *ord = atoi(temp1);
        cbuf = cbuf + j;
      } else if (strncmp(cbuf, "phs", 3) == 0) {
        cbuf = cbuf + 3;
        j = 0;
        while (cbuf[j] != '-' && cbuf[j] != '\0')
          j++;
        strncpy(temp1, cbuf, j);
        temp1[j] = '\0';
        *phs = atoi(temp1);
        cbuf = cbuf + j;
      } else
        cbuf[0] = '\0';
    } else
      cbuf[0] = '\0';
  }
}


x86 assembly (clang, -O0):
<get_filtvals>:
push   %rbp
mov    %rsp,%rbp
sub    $0x440,%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
movsbl (%rax),%eax
cmp    $0x0,%eax
je     154e <get_filtvals+0x40e>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    1542 <get_filtvals+0x402>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe6a(%rip),%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    1272 <get_filtvals+0x132>
mov    -0x8(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x8(%rbp)
movl   $0x0,-0x438(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x438(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
xor    %eax,%eax
cmp    $0x2d,%ecx
mov    %al,-0x439(%rbp)
je     11fb <get_filtvals+0xbb>
mov    -0x8(%rbp),%rax
movslq -0x438(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x439(%rbp)
mov    -0x439(%rbp),%al
test   $0x1,%al
jne    120e <get_filtvals+0xce>
jmp    1222 <get_filtvals+0xe2>
mov    -0x438(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x438(%rbp)
jmp    11c0 <get_filtvals+0x80>
lea    -0x430(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x438(%rbp),%edx
call   1030 <strncpy@plt>
movslq -0x438(%rbp),%rax
movb   $0x0,-0x430(%rbp,%rax,1)
lea    -0x430(%rbp),%rdi
call   1050 <atof@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movslq -0x438(%rbp),%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
jmp    153d <get_filtvals+0x3fd>
mov    -0x8(%rbp),%rdi
lea    0xd87(%rip),%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    1359 <get_filtvals+0x219>
mov    -0x8(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x8(%rbp)
movl   $0x0,-0x438(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x438(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
xor    %eax,%eax
cmp    $0x2d,%ecx
mov    %al,-0x43a(%rbp)
je     12e2 <get_filtvals+0x1a2>
mov    -0x8(%rbp),%rax
movslq -0x438(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x43a(%rbp)
mov    -0x43a(%rbp),%al
test   $0x1,%al
jne    12f5 <get_filtvals+0x1b5>
jmp    1309 <get_filtvals+0x1c9>
mov    -0x438(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x438(%rbp)
jmp    12a7 <get_filtvals+0x167>
lea    -0x430(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x438(%rbp),%edx
call   1030 <strncpy@plt>
movslq -0x438(%rbp),%rax
movb   $0x0,-0x430(%rbp,%rax,1)
lea    -0x430(%rbp),%rdi
call   1050 <atof@plt>
mov    -0x18(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movslq -0x438(%rbp),%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
jmp    1538 <get_filtvals+0x3f8>
mov    -0x8(%rbp),%rdi
lea    0xca4(%rip),%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    1440 <get_filtvals+0x300>
mov    -0x8(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x8(%rbp)
movl   $0x0,-0x438(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x438(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
xor    %eax,%eax
cmp    $0x2d,%ecx
mov    %al,-0x43b(%rbp)
je     13c9 <get_filtvals+0x289>
mov    -0x8(%rbp),%rax
movslq -0x438(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x43b(%rbp)
mov    -0x43b(%rbp),%al
test   $0x1,%al
jne    13dc <get_filtvals+0x29c>
jmp    13f0 <get_filtvals+0x2b0>
mov    -0x438(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x438(%rbp)
jmp    138e <get_filtvals+0x24e>
lea    -0x430(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x438(%rbp),%edx
call   1030 <strncpy@plt>
movslq -0x438(%rbp),%rax
movb   $0x0,-0x430(%rbp,%rax,1)
lea    -0x430(%rbp),%rdi
call   1060 <atoi@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
movslq -0x438(%rbp),%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
jmp    1533 <get_filtvals+0x3f3>
mov    -0x8(%rbp),%rdi
lea    0xbc1(%rip),%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    1527 <get_filtvals+0x3e7>
mov    -0x8(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x8(%rbp)
movl   $0x0,-0x438(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x438(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
xor    %eax,%eax
cmp    $0x2d,%ecx
mov    %al,-0x43c(%rbp)
je     14b0 <get_filtvals+0x370>
mov    -0x8(%rbp),%rax
movslq -0x438(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x43c(%rbp)
mov    -0x43c(%rbp),%al
test   $0x1,%al
jne    14c3 <get_filtvals+0x383>
jmp    14d7 <get_filtvals+0x397>
mov    -0x438(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x438(%rbp)
jmp    1475 <get_filtvals+0x335>
lea    -0x430(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x438(%rbp),%edx
call   1030 <strncpy@plt>
movslq -0x438(%rbp),%rax
movb   $0x0,-0x430(%rbp,%rax,1)
lea    -0x430(%rbp),%rdi
call   1060 <atoi@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
movslq -0x438(%rbp),%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
jmp    152e <get_filtvals+0x3ee>
mov    -0x8(%rbp),%rax
movb   $0x0,(%rax)
jmp    1533 <get_filtvals+0x3f3>
jmp    1538 <get_filtvals+0x3f8>
jmp    153d <get_filtvals+0x3fd>
jmp    1549 <get_filtvals+0x409>
mov    -0x8(%rbp),%rax
movb   $0x0,(%rax)
jmp    115f <get_filtvals+0x1f>
add    $0x440,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_filtvals>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x428,%rsp
mov    %r8,0x8(%rsp)
mov    %rcx,0x10(%rsp)
mov    %rdx,0x18(%rsp)
mov    %rsi,%r12
mov    %rdi,%r13
lea    0xe93(%rip),%rbx
lea    0x20(%rsp),%r15
mov    0x0(%r13),%al
test   %al,%al
je     1367 <get_filtvals+0x227>
xchg   %ax,%ax
cmp    $0x2d,%al
je     11a0 <get_filtvals+0x60>
movb   $0x0,0x0(%r13)
xor    %eax,%eax
test   %al,%al
jne    1180 <get_filtvals+0x40>
jmp    1367 <get_filtvals+0x227>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0x1(%r13),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     121c <get_filtvals+0xdc>
mov    %r14,%rdi
lea    0xe41(%rip),%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1278 <get_filtvals+0x138>
mov    %r14,%rdi
lea    0xe28(%rip),%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     12c9 <get_filtvals+0x189>
mov    %r14,%rdi
lea    0xe0f(%rip),%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     130f <get_filtvals+0x1cf>
movb   $0x0,(%r14)
mov    %r14,%r13
jmp    1172 <get_filtvals+0x32>
add    $0x4,%r13
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl 0x0(%r13,%rdx,1),%eax
test   %al,%al
je     1244 <get_filtvals+0x104>
cmp    $0x2d,%al
je     1244 <get_filtvals+0x104>
add    $0x1,%rdx
jmp    1230 <get_filtvals+0xf0>
mov    %edx,%ebp
mov    %rbx,%r14
mov    %r13,%rbx
add    %rbp,%rbx
mov    %r15,%rdi
mov    %r13,%rsi
call   1030 <strncpy@plt>
movb   $0x0,0x20(%rsp,%rbp,1)
mov    %r15,%rdi
call   1050 <atof@plt>
movss  %xmm0,(%r12)
mov    %rbx,%r13
mov    %r14,%rbx
jmp    1172 <get_filtvals+0x32>
add    $0x4,%r13
xor    %edx,%edx
xchg   %ax,%ax
movzbl 0x0(%r13,%rdx,1),%eax
test   %al,%al
je     1294 <get_filtvals+0x154>
cmp    $0x2d,%al
je     1294 <get_filtvals+0x154>
add    $0x1,%rdx
jmp    1280 <get_filtvals+0x140>
mov    %rbx,%rbp
mov    %edx,%ebx
lea    (%rbx,%r13,1),%r14
mov    %r15,%rdi
mov    %r13,%rsi
call   1030 <strncpy@plt>
movb   $0x0,0x20(%rsp,%rbx,1)
mov    %rbp,%rbx
mov    %r15,%rdi
call   1050 <atof@plt>
mov    0x18(%rsp),%rax
movss  %xmm0,(%rax)
mov    %r14,%r13
jmp    1172 <get_filtvals+0x32>
add    $0x4,%r13
xor    %edx,%edx
nop
movzbl 0x0(%r13,%rdx,1),%eax
test   %al,%al
je     12e4 <get_filtvals+0x1a4>
cmp    $0x2d,%al
je     12e4 <get_filtvals+0x1a4>
add    $0x1,%rdx
jmp    12d0 <get_filtvals+0x190>
mov    %rbx,%rbp
mov    %edx,%ebx
lea    (%rbx,%r13,1),%r14
mov    %r15,%rdi
mov    %r13,%rsi
call   1030 <strncpy@plt>
movb   $0x0,0x20(%rsp,%rbx,1)
mov    %rbp,%rbx
mov    %r15,%rdi
call   1060 <atoi@plt>
mov    0x10(%rsp),%rcx
jmp    135d <get_filtvals+0x21d>
add    $0x4,%r13
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nop
movzbl 0x0(%r13,%rdx,1),%eax
test   %al,%al
je     1334 <get_filtvals+0x1f4>
cmp    $0x2d,%al
je     1334 <get_filtvals+0x1f4>
add    $0x1,%rdx
jmp    1320 <get_filtvals+0x1e0>
mov    %rbx,%rbp
mov    %edx,%ebx
lea    (%rbx,%r13,1),%r14
mov    %r15,%rdi
mov    %r13,%rsi
call   1030 <strncpy@plt>
movb   $0x0,0x20(%rsp,%rbx,1)
mov    %rbp,%rbx
mov    %r15,%rdi
call   1060 <atoi@plt>
mov    0x8(%rsp),%rcx
mov    %eax,(%rcx)
mov    %r14,%r13
jmp    1172 <get_filtvals+0x32>
add    $0x428,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"flo\00"
@.str.1 = [4 x i8] c"fhi\00"
@.str.2 = [4 x i8] c"ord\00"
@.str.3 = [4 x i8] c"phs\00"
define void @get_filtvals(i8* %0, float* %1, float* %2, i32* %3, i32* %4) {
%6 = alloca i8*
%7 = alloca float*
%8 = alloca float*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca [1024 x i8]
%12 = alloca i32
%13 = alloca i32
store i8* %0, i8** %6
store float* %1, float** %7
store float* %2, float** %8
store i32* %3, i32** %9
store i32* %4, i32** %10
br label %14
14: ; preds = %210, %5
%15 = load i8*, i8** %6
%16 = getelementptr inbounds i8, i8* %15, i64 0
%17 = load i8, i8* %16
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %211
20: ; preds = %14
%21 = load i8*, i8** %6
%22 = getelementptr inbounds i8, i8* %21, i64 0
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 45
br i1 %25, label %26, label %207
26: ; preds = %20
%27 = load i8*, i8** %6
%28 = getelementptr inbounds i8, i8* %27, i32 1
store i8* %28, i8** %6
%29 = load i8*, i8** %6
%30 = call i64 @strncmp(i8* %29, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %71
32: ; preds = %26
%33 = load i8*, i8** %6
%34 = getelementptr inbounds i8, i8* %33, i64 3
store i8* %34, i8** %6
store i32 0, i32* %13
br label %35
35: ; preds = %53, %32
%36 = load i8*, i8** %6
%37 = load i32, i32* %13
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, i8* %36, i64 %38
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %41, 45
br i1 %42, label %43, label %51
43: ; preds = %35
%44 = load i8*, i8** %6
%45 = load i32, i32* %13
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, i8* %44, i64 %46
%48 = load i8, i8* %47
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %49, 0
br label %51
51: ; preds = %43, %35
%52 = phi i1 [ false, %35 ], [ %50, %43 ]
br i1 %52, label %53, label %56
53: ; preds = %51
%54 = load i32, i32* %13
%55 = add nsw i32 %54, 1
store i32 %55, i32* %13
br label %35
56: ; preds = %51
%57 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%58 = load i8*, i8** %6
%59 = load i32, i32* %13
%60 = call i32 @strncpy(i8* %57, i8* %58, i32 %59)
%61 = load i32, i32* %13
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 %62
store i8 0, i8* %63
%64 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%65 = call float @atof(i8* %64)
%66 = load float*, float** %7
store float %65, float* %66
%67 = load i8*, i8** %6
%68 = load i32, i32* %13
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, i8* %67, i64 %69
store i8* %70, i8** %6
br label %206
71: ; preds = %26
%72 = load i8*, i8** %6
%73 = call i64 @strncmp(i8* %72, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 3)
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %114
75: ; preds = %71
%76 = load i8*, i8** %6
%77 = getelementptr inbounds i8, i8* %76, i64 3
store i8* %77, i8** %6
store i32 0, i32* %13
br label %78
78: ; preds = %96, %75
%79 = load i8*, i8** %6
%80 = load i32, i32* %13
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8, i8* %79, i64 %81
%83 = load i8, i8* %82
%84 = sext i8 %83 to i32
%85 = icmp ne i32 %84, 45
br i1 %85, label %86, label %94
86: ; preds = %78
%87 = load i8*, i8** %6
%88 = load i32, i32* %13
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, i8* %87, i64 %89
%91 = load i8, i8* %90
%92 = sext i8 %91 to i32
%93 = icmp ne i32 %92, 0
br label %94
94: ; preds = %86, %78
%95 = phi i1 [ false, %78 ], [ %93, %86 ]
br i1 %95, label %96, label %99
96: ; preds = %94
%97 = load i32, i32* %13
%98 = add nsw i32 %97, 1
store i32 %98, i32* %13
br label %78
99: ; preds = %94
%100 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%101 = load i8*, i8** %6
%102 = load i32, i32* %13
%103 = call i32 @strncpy(i8* %100, i8* %101, i32 %102)
%104 = load i32, i32* %13
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 %105
store i8 0, i8* %106
%107 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%108 = call float @atof(i8* %107)
%109 = load float*, float** %8
store float %108, float* %109
%110 = load i8*, i8** %6
%111 = load i32, i32* %13
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i8, i8* %110, i64 %112
store i8* %113, i8** %6
br label %205
114: ; preds = %71
%115 = load i8*, i8** %6
%116 = call i64 @strncmp(i8* %115, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 3)
%117 = icmp eq i64 %116, 0
br i1 %117, label %118, label %157
118: ; preds = %114
%119 = load i8*, i8** %6
%120 = getelementptr inbounds i8, i8* %119, i64 3
store i8* %120, i8** %6
store i32 0, i32* %13
br label %121
121: ; preds = %139, %118
%122 = load i8*, i8** %6
%123 = load i32, i32* %13
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i8, i8* %122, i64 %124
%126 = load i8, i8* %125
%127 = sext i8 %126 to i32
%128 = icmp ne i32 %127, 45
br i1 %128, label %129, label %137
129: ; preds = %121
%130 = load i8*, i8** %6
%131 = load i32, i32* %13
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds i8, i8* %130, i64 %132
%134 = load i8, i8* %133
%135 = sext i8 %134 to i32
%136 = icmp ne i32 %135, 0
br label %137
137: ; preds = %129, %121
%138 = phi i1 [ false, %121 ], [ %136, %129 ]
br i1 %138, label %139, label %142
139: ; preds = %137
%140 = load i32, i32* %13
%141 = add nsw i32 %140, 1
store i32 %141, i32* %13
br label %121
142: ; preds = %137
%143 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%144 = load i8*, i8** %6
%145 = load i32, i32* %13
%146 = call i32 @strncpy(i8* %143, i8* %144, i32 %145)
%147 = load i32, i32* %13
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 %148
store i8 0, i8* %149
%150 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%151 = call i32 @atoi(i8* %150)
%152 = load i32*, i32** %9
store i32 %151, i32* %152
%153 = load i8*, i8** %6
%154 = load i32, i32* %13
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds i8, i8* %153, i64 %155
store i8* %156, i8** %6
br label %204
157: ; preds = %114
%158 = load i8*, i8** %6
%159 = call i64 @strncmp(i8* %158, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 3)
%160 = icmp eq i64 %159, 0
br i1 %160, label %161, label %200
161: ; preds = %157
%162 = load i8*, i8** %6
%163 = getelementptr inbounds i8, i8* %162, i64 3
store i8* %163, i8** %6
store i32 0, i32* %13
br label %164
164: ; preds = %182, %161
%165 = load i8*, i8** %6
%166 = load i32, i32* %13
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds i8, i8* %165, i64 %167
%169 = load i8, i8* %168
%170 = sext i8 %169 to i32
%171 = icmp ne i32 %170, 45
br i1 %171, label %172, label %180
172: ; preds = %164
%173 = load i8*, i8** %6
%174 = load i32, i32* %13
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds i8, i8* %173, i64 %175
%177 = load i8, i8* %176
%178 = sext i8 %177 to i32
%179 = icmp ne i32 %178, 0
br label %180
180: ; preds = %172, %164
%181 = phi i1 [ false, %164 ], [ %179, %172 ]
br i1 %181, label %182, label %185
182: ; preds = %180
%183 = load i32, i32* %13
%184 = add nsw i32 %183, 1
store i32 %184, i32* %13
br label %164
185: ; preds = %180
%186 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%187 = load i8*, i8** %6
%188 = load i32, i32* %13
%189 = call i32 @strncpy(i8* %186, i8* %187, i32 %188)
%190 = load i32, i32* %13
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 %191
store i8 0, i8* %192
%193 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%194 = call i32 @atoi(i8* %193)
%195 = load i32*, i32** %10
store i32 %194, i32* %195
%196 = load i8*, i8** %6
%197 = load i32, i32* %13
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds i8, i8* %196, i64 %198
store i8* %199, i8** %6
br label %203
200: ; preds = %157
%201 = load i8*, i8** %6
%202 = getelementptr inbounds i8, i8* %201, i64 0
store i8 0, i8* %202
br label %203
203: ; preds = %200, %185
br label %204
204: ; preds = %203, %142
br label %205
205: ; preds = %204, %99
br label %206
206: ; preds = %205, %56
br label %210
207: ; preds = %20
%208 = load i8*, i8** %6
%209 = getelementptr inbounds i8, i8* %208, i64 0
store i8 0, i8* %209
br label %210
210: ; preds = %207, %206
br label %14
211: ; preds = %14
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"flo\00"
@.str.1 = [4 x i8] c"fhi\00"
@.str.2 = [4 x i8] c"ord\00"
@.str.3 = [4 x i8] c"phs\00"
define void @get_filtvals(i8* %0, float* nocapture writeonly %1, float* nocapture writeonly %2, i32* nocapture writeonly %3, i32* nocapture writeonly %4) {
%6 = alloca [1024 x i8]
%7 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
br label %8
8: ; preds = %32, %5
%9 = phi i8* [ %0, %5 ], [ %33, %32 ]
%10 = load i8, i8* %9
br label %11
11: ; preds = %8, %89
%12 = phi i8 [ %10, %8 ], [ 0, %89 ]
switch i8 %12, label %89 [
i8 0, label %90
i8 45, label %13
]
13: ; preds = %11
%14 = getelementptr inbounds i8, i8* %9, i64 1
%15 = call i64 @strncmp(i8* %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %34
17: ; preds = %13
%18 = getelementptr inbounds i8, i8* %9, i64 4
br label %19
19: ; preds = %23, %17
%20 = phi i64 [ %24, %23 ], [ 0, %17 ]
%21 = getelementptr inbounds i8, i8* %18, i64 %20
%22 = load i8, i8* %21
switch i8 %22, label %23 [
i8 45, label %25
i8 0, label %25
]
23: ; preds = %19
%24 = add nuw i64 %20, 1
br label %19
25: ; preds = %19, %19
%26 = trunc i64 %20 to i32
%27 = and i64 %20, 4294967295
%28 = getelementptr inbounds i8, i8* %18, i64 %27
%29 = call i32 @strncpy(i8* %7, i8* %18, i32 %26)
%30 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 %27
store i8 0, i8* %30
%31 = call float @atof(i8* %7)
store float %31, float* %1
br label %32
32: ; preds = %25, %45, %63, %81, %88
%33 = phi i8* [ %14, %88 ], [ %84, %81 ], [ %66, %63 ], [ %48, %45 ], [ %28, %25 ]
br label %8
34: ; preds = %13
%35 = call i64 @strncmp(i8* %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 3)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %52
37: ; preds = %34
%38 = getelementptr inbounds i8, i8* %9, i64 4
br label %39
39: ; preds = %43, %37
%40 = phi i64 [ %44, %43 ], [ 0, %37 ]
%41 = getelementptr inbounds i8, i8* %38, i64 %40
%42 = load i8, i8* %41
switch i8 %42, label %43 [
i8 45, label %45
i8 0, label %45
]
43: ; preds = %39
%44 = add nuw i64 %40, 1
br label %39
45: ; preds = %39, %39
%46 = trunc i64 %40 to i32
%47 = and i64 %40, 4294967295
%48 = getelementptr inbounds i8, i8* %38, i64 %47
%49 = call i32 @strncpy(i8* %7, i8* %38, i32 %46)
%50 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 %47
store i8 0, i8* %50
%51 = call float @atof(i8* %7)
store float %51, float* %2
br label %32
52: ; preds = %34
%53 = call i64 @strncmp(i8* %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 3)
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %70
55: ; preds = %52
%56 = getelementptr inbounds i8, i8* %9, i64 4
br label %57
57: ; preds = %61, %55
%58 = phi i64 [ %62, %61 ], [ 0, %55 ]
%59 = getelementptr inbounds i8, i8* %56, i64 %58
%60 = load i8, i8* %59
switch i8 %60, label %61 [
i8 45, label %63
i8 0, label %63
]
61: ; preds = %57
%62 = add nuw i64 %58, 1
br label %57
63: ; preds = %57, %57
%64 = trunc i64 %58 to i32
%65 = and i64 %58, 4294967295
%66 = getelementptr inbounds i8, i8* %56, i64 %65
%67 = call i32 @strncpy(i8* %7, i8* %56, i32 %64)
%68 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 %65
store i8 0, i8* %68
%69 = call i32 @atoi(i8* %7)
store i32 %69, i32* %3
br label %32
70: ; preds = %52
%71 = call i64 @strncmp(i8* %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 3)
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %88
73: ; preds = %70
%74 = getelementptr inbounds i8, i8* %9, i64 4
br label %75
75: ; preds = %79, %73
%76 = phi i64 [ %80, %79 ], [ 0, %73 ]
%77 = getelementptr inbounds i8, i8* %74, i64 %76
%78 = load i8, i8* %77
switch i8 %78, label %79 [
i8 45, label %81
i8 0, label %81
]
79: ; preds = %75
%80 = add nuw i64 %76, 1
br label %75
81: ; preds = %75, %75
%82 = trunc i64 %76 to i32
%83 = and i64 %76, 4294967295
%84 = getelementptr inbounds i8, i8* %74, i64 %83
%85 = call i32 @strncpy(i8* %7, i8* %74, i32 %82)
%86 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 %83
store i8 0, i8* %86
%87 = call i32 @atoi(i8* %7)
store i32 %87, i32* %4
br label %32
88: ; preds = %70
store i8 0, i8* %14
br label %32
89: ; preds = %11
store i8 0, i8* %9
br label %11
90: ; preds = %11
ret void
}