#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 */
int atoi(char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
void AHRS_Parsing_RPY5(char *Data, int *ahrs_num1, double *phi, double *theta,
                       double *psi) {
  int i, j, k, token_cnt = 0;
  int comm_check = 0;
  char temp[10] = "'\0',";
  char AHRS_ID[10] = "'\0',";
  char AHRS_phi[10] = "'\0',";
  char AHRS_theta[10] = "'\0',";
  char AHRS_psi[10] = "'\0',";
  for (i = 0, token_cnt = 0; i < strlen(Data); i++) {
    for (j = 0; ((Data[i + j] != ',') && (Data[i + j] != '*')); j++) {
      temp[j] = Data[i + j];
      if (temp[j] == '\0') {
        break;
      }
    }
    temp[j] = '\0';
    for (k = 0; k < strlen(temp); k++) {
      if (temp[k] == '.')
        comm_check = 1;
      if (comm_check == 1)
        temp[k] = temp[k + 1];
    }
    comm_check = 0;
    switch (token_cnt) {
    case 1:
      strcpy(AHRS_ID, temp);
      *ahrs_num1 = atoi(AHRS_ID);
      break;
    case 2:
      strcpy(AHRS_phi, temp);
      *phi = ((double)atoi(AHRS_phi)) / 100;
      break;
    case 3:
      strcpy(AHRS_theta, temp);
      *theta = ((double)atoi(AHRS_theta)) / 100;
      break;
    case 4:
      strcpy(AHRS_psi, temp);
      *psi = ((double)atoi(AHRS_psi)) / 100;
      break;
    }
    token_cnt++;
    i += j;
  }
}


x86 assembly (clang, -O0):
<AHRS_Parsing_RPY5>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    0xeb4(%rip),%rax
mov    %rax,-0x46(%rbp)
mov    0xeb1(%rip),%ax
mov    %ax,-0x3e(%rbp)
mov    0xea8(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xea5(%rip),%ax
mov    %ax,-0x48(%rbp)
mov    0xe9c(%rip),%rax
mov    %rax,-0x5a(%rbp)
mov    0xe99(%rip),%ax
mov    %ax,-0x52(%rbp)
mov    0xe90(%rip),%rax
mov    %rax,-0x64(%rbp)
mov    0xe8d(%rip),%ax
mov    %ax,-0x5c(%rbp)
mov    0xe84(%rip),%rax
mov    %rax,-0x6e(%rbp)
mov    0xe81(%rip),%ax
mov    %ax,-0x66(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x74(%rbp),%eax
cmp    %ecx,%eax
jge    140a <AHRS_Parsing_RPY5+0x2da>
movl   $0x0,-0x30(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%ecx
xor    %eax,%eax
cmp    $0x2c,%ecx
mov    %al,-0x75(%rbp)
je     1235 <AHRS_Parsing_RPY5+0x105>
mov    -0x8(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2a,%eax
setne  %al
mov    %al,-0x75(%rbp)
mov    -0x75(%rbp),%al
test   $0x1,%al
jne    1245 <AHRS_Parsing_RPY5+0x115>
jmp    1287 <AHRS_Parsing_RPY5+0x157>
mov    -0x8(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%cl
movslq -0x30(%rbp),%rax
mov    %cl,-0x46(%rbp,%rax,1)
movslq -0x30(%rbp),%rax
movsbl -0x46(%rbp,%rax,1),%eax
cmp    $0x0,%eax
jne    1274 <AHRS_Parsing_RPY5+0x144>
jmp    1287 <AHRS_Parsing_RPY5+0x157>
jmp    1279 <AHRS_Parsing_RPY5+0x149>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11fc <AHRS_Parsing_RPY5+0xcc>
movslq -0x30(%rbp),%rax
movb   $0x0,-0x46(%rbp,%rax,1)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x7c(%rbp)
lea    -0x46(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x7c(%rbp),%eax
cmp    %ecx,%eax
jge    12fd <AHRS_Parsing_RPY5+0x1cd>
movslq -0x34(%rbp),%rax
movsbl -0x46(%rbp,%rax,1),%eax
cmp    $0x2e,%eax
jne    12cc <AHRS_Parsing_RPY5+0x19c>
movl   $0x1,-0x3c(%rbp)
cmpl   $0x1,-0x3c(%rbp)
jne    12ea <AHRS_Parsing_RPY5+0x1ba>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
cltq
mov    -0x46(%rbp,%rax,1),%cl
movslq -0x34(%rbp),%rax
mov    %cl,-0x46(%rbp,%rax,1)
jmp    12ef <AHRS_Parsing_RPY5+0x1bf>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1297 <AHRS_Parsing_RPY5+0x167>
movl   $0x0,-0x3c(%rbp)
mov    -0x38(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x88(%rbp)
sub    $0x3,%eax
ja     13ea <AHRS_Parsing_RPY5+0x2ba>
mov    -0x88(%rbp),%rax
lea    0xcde(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    -0x50(%rbp),%rdi
lea    -0x46(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x50(%rbp),%rdi
call   1050 <atoi@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
jmp    13ea <AHRS_Parsing_RPY5+0x2ba>
lea    -0x5a(%rbp),%rdi
lea    -0x46(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x5a(%rbp),%rdi
call   1050 <atoi@plt>
cvtsi2sd %eax,%xmm0
movsd  0xc88(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    13ea <AHRS_Parsing_RPY5+0x2ba>
lea    -0x64(%rbp),%rdi
lea    -0x46(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x64(%rbp),%rdi
call   1050 <atoi@plt>
cvtsi2sd %eax,%xmm0
movsd  0xc55(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    13ea <AHRS_Parsing_RPY5+0x2ba>
lea    -0x6e(%rbp),%rdi
lea    -0x46(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x6e(%rbp),%rdi
call   1050 <atoi@plt>
cvtsi2sd %eax,%xmm0
movsd  0xc22(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x30(%rbp),%eax
add    -0x2c(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11d9 <AHRS_Parsing_RPY5+0xa9>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AHRS_Parsing_RPY5>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %r8,0x70(%rsp)
mov    %rcx,0x68(%rsp)
mov    %rdx,0x60(%rsp)
mov    %rsi,0x58(%rsp)
mov    %rdi,%r12
movw   $0x0,0x10(%rsp)
movq   $0x2c270027,0x8(%rsp)
27 2c
movw   $0x0,0x50(%rsp)
movq   $0x2c270027,0x48(%rsp)
27 2c
movw   $0x0,0x40(%rsp)
movq   $0x2c270027,0x38(%rsp)
27 2c
movw   $0x0,0x30(%rsp)
movq   $0x2c270027,0x28(%rsp)
27 2c
movw   $0x0,0x20(%rsp)
movq   $0x2c270027,0x18(%rsp)
27 2c
call   1040 <strlen@plt>
test   %eax,%eax
jle    1360 <AHRS_Parsing_RPY5+0x230>
xor    %ebx,%ebx
lea    0x8(%rsp),%rbp
mov    $0x1,%r13d
xor    %r14d,%r14d
mov    %r12,0x78(%rsp)
jmp    121a <AHRS_Parsing_RPY5+0xea>
nopl   0x0(%rax)
lea    0x18(%rsp),%rdi
mov    %rbp,%rsi
call   1030 <strcpy@plt>
lea    0x18(%rsp),%rdi
call   1050 <atoi@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xe0a(%rip),%xmm0
mov    0x70(%rsp),%rax
movsd  %xmm0,(%rax)
add    $0x1,%ebx
add    %r15d,%r14d
add    $0x1,%r14d
mov    %r12,%rdi
call   1040 <strlen@plt>
cmp    %eax,%r14d
jge    1360 <AHRS_Parsing_RPY5+0x230>
movslq %r14d,%rax
add    %r12,%rax
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movzbl (%rax,%r15,1),%ecx
cmp    $0x2a,%cl
je     1250 <AHRS_Parsing_RPY5+0x120>
cmp    $0x2c,%cl
je     1250 <AHRS_Parsing_RPY5+0x120>
mov    %cl,0x8(%rsp,%r15,1)
test   %cl,%cl
je     1250 <AHRS_Parsing_RPY5+0x120>
add    $0x1,%r15
jmp    1230 <AHRS_Parsing_RPY5+0x100>
xchg   %ax,%ax
mov    %rbx,0x80(%rsp)
mov    %r15d,%eax
movb   $0x0,0x8(%rsp,%rax,1)
mov    %rbp,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    12b0 <AHRS_Parsing_RPY5+0x180>
xor    %eax,%eax
xor    %ebx,%ebx
jmp    1293 <AHRS_Parsing_RPY5+0x163>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbp,%rdi
call   1040 <strlen@plt>
movslq %eax,%rcx
mov    %r12,%rax
cmp    %rcx,%r12
jge    12b0 <AHRS_Parsing_RPY5+0x180>
cmpb   $0x2e,0x8(%rsp,%rax,1)
cmove  %r13d,%ebx
lea    0x1(%rax),%r12
cmp    $0x1,%ebx
jne    1280 <AHRS_Parsing_RPY5+0x150>
movzbl 0x9(%rsp,%rax,1),%ecx
mov    %cl,0x8(%rsp,%rax,1)
jmp    1280 <AHRS_Parsing_RPY5+0x150>
mov    0x80(%rsp),%rbx
lea    -0x1(%rbx),%eax
cmp    $0x3,%eax
mov    0x78(%rsp),%r12
ja     11ff <AHRS_Parsing_RPY5+0xcf>
lea    0xd38(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x48(%rsp),%rdi
mov    %rbp,%rsi
call   1030 <strcpy@plt>
lea    0x48(%rsp),%rdi
call   1050 <atoi@plt>
mov    0x58(%rsp),%rcx
mov    %eax,(%rcx)
jmp    11ff <AHRS_Parsing_RPY5+0xcf>
nopl   0x0(%rax)
lea    0x38(%rsp),%rdi
mov    %rbp,%rsi
call   1030 <strcpy@plt>
lea    0x38(%rsp),%rdi
call   1050 <atoi@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xcda(%rip),%xmm0
mov    0x60(%rsp),%rax
jmp    11fb <AHRS_Parsing_RPY5+0xcb>
lea    0x28(%rsp),%rdi
mov    %rbp,%rsi
call   1030 <strcpy@plt>
lea    0x28(%rsp),%rdi
call   1050 <atoi@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xcaa(%rip),%xmm0
mov    0x68(%rsp),%rax
jmp    11fb <AHRS_Parsing_RPY5+0xcb>
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.AHRS_Parsing_RPY5.temp = [10 x i8] c"'\00',\00\00\00\00\00\00"
@__const.AHRS_Parsing_RPY5.AHRS_ID = [10 x i8] c"'\00',\00\00\00\00\00\00"
@__const.AHRS_Parsing_RPY5.AHRS_phi = [10 x i8] c"'\00',\00\00\00\00\00\00"
@__const.AHRS_Parsing_RPY5.AHRS_theta = [10 x i8] c"'\00',\00\00\00\00\00\00"
@__const.AHRS_Parsing_RPY5.AHRS_psi = [10 x i8] c"'\00',\00\00\00\00\00\00"
define void @AHRS_Parsing_RPY5(i8* %0, i32* %1, double* %2, double* %3, double* %4) {
%6 = alloca i8*
%7 = alloca i32*
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca [10 x i8]
%17 = alloca [10 x i8]
%18 = alloca [10 x i8]
%19 = alloca [10 x i8]
%20 = alloca [10 x i8]
store i8* %0, i8** %6
store i32* %1, i32** %7
store double* %2, double** %8
store double* %3, double** %9
store double* %4, double** %10
store i32 0, i32* %14
store i32 0, i32* %15
%21 = bitcast [10 x i8]* %16 to i8*
%22 = bitcast [10 x i8]* %17 to i8*
%23 = bitcast [10 x i8]* %18 to i8*
%24 = bitcast [10 x i8]* %19 to i8*
%25 = bitcast [10 x i8]* %20 to i8*
store i32 0, i32* %11
store i32 0, i32* %14
br label %26
26: ; preds = %151, %5
%27 = load i32, i32* %11
%28 = load i8*, i8** %6
%29 = call i32 @strlen(i8* %28)
%30 = icmp slt i32 %27, %29
br i1 %30, label %31, label %154
31: ; preds = %26
store i32 0, i32* %12
br label %32
32: ; preds = %73, %31
%33 = load i8*, i8** %6
%34 = load i32, i32* %11
%35 = load i32, i32* %12
%36 = add nsw i32 %34, %35
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, i8* %33, i64 %37
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 44
br i1 %41, label %42, label %52
42: ; preds = %32
%43 = load i8*, i8** %6
%44 = load i32, i32* %11
%45 = load i32, i32* %12
%46 = add nsw i32 %44, %45
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, i8* %43, i64 %47
%49 = load i8, i8* %48
%50 = sext i8 %49 to i32
%51 = icmp ne i32 %50, 42
br label %52
52: ; preds = %42, %32
%53 = phi i1 [ false, %32 ], [ %51, %42 ]
br i1 %53, label %54, label %76
54: ; preds = %52
%55 = load i8*, i8** %6
%56 = load i32, i32* %11
%57 = load i32, i32* %12
%58 = add nsw i32 %56, %57
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, i8* %55, i64 %59
%61 = load i8, i8* %60
%62 = load i32, i32* %12
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [10 x i8], [10 x i8]* %16, i64 0, i64 %63
store i8 %61, i8* %64
%65 = load i32, i32* %12
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [10 x i8], [10 x i8]* %16, i64 0, i64 %66
%68 = load i8, i8* %67
%69 = sext i8 %68 to i32
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %54
br label %76
72: ; preds = %54
br label %73
73: ; preds = %72
%74 = load i32, i32* %12
%75 = add nsw i32 %74, 1
store i32 %75, i32* %12
br label %32
76: ; preds = %71, %52
%77 = load i32, i32* %12
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [10 x i8], [10 x i8]* %16, i64 0, i64 %78
store i8 0, i8* %79
store i32 0, i32* %13
br label %80
80: ; preds = %106, %76
%81 = load i32, i32* %13
%82 = getelementptr inbounds [10 x i8], [10 x i8]* %16, i64 0, i64 0
%83 = call i32 @strlen(i8* %82)
%84 = icmp slt i32 %81, %83
br i1 %84, label %85, label %109
85: ; preds = %80
%86 = load i32, i32* %13
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [10 x i8], [10 x i8]* %16, i64 0, i64 %87
%89 = load i8, i8* %88
%90 = sext i8 %89 to i32
%91 = icmp eq i32 %90, 46
br i1 %91, label %92, label %93
92: ; preds = %85
store i32 1, i32* %15
br label %93
93: ; preds = %92, %85
%94 = load i32, i32* %15
%95 = icmp eq i32 %94, 1
br i1 %95, label %96, label %105
96: ; preds = %93
%97 = load i32, i32* %13
%98 = add nsw i32 %97, 1
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [10 x i8], [10 x i8]* %16, i64 0, i64 %99
%101 = load i8, i8* %100
%102 = load i32, i32* %13
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [10 x i8], [10 x i8]* %16, i64 0, i64 %103
store i8 %101, i8* %104
br label %105
105: ; preds = %96, %93
br label %106
106: ; preds = %105
%107 = load i32, i32* %13
%108 = add nsw i32 %107, 1
store i32 %108, i32* %13
br label %80
109: ; preds = %80
store i32 0, i32* %15
%110 = load i32, i32* %14
switch i32 %110, label %145 [
i32 1, label %111
i32 2, label %118
i32 3, label %127
i32 4, label %136
]
111: ; preds = %109
%112 = getelementptr inbounds [10 x i8], [10 x i8]* %17, i64 0, i64 0
%113 = getelementptr inbounds [10 x i8], [10 x i8]* %16, i64 0, i64 0
%114 = call i32 @strcpy(i8* %112, i8* %113)
%115 = getelementptr inbounds [10 x i8], [10 x i8]* %17, i64 0, i64 0
%116 = call i32 @atoi(i8* %115)
%117 = load i32*, i32** %7
store i32 %116, i32* %117
br label %145
118: ; preds = %109
%119 = getelementptr inbounds [10 x i8], [10 x i8]* %18, i64 0, i64 0
%120 = getelementptr inbounds [10 x i8], [10 x i8]* %16, i64 0, i64 0
%121 = call i32 @strcpy(i8* %119, i8* %120)
%122 = getelementptr inbounds [10 x i8], [10 x i8]* %18, i64 0, i64 0
%123 = call i32 @atoi(i8* %122)
%124 = sitofp i32 %123 to double
%125 = fdiv double %124, 1.000000e+02
%126 = load double*, double** %8
store double %125, double* %126
br label %145
127: ; preds = %109
%128 = getelementptr inbounds [10 x i8], [10 x i8]* %19, i64 0, i64 0
%129 = getelementptr inbounds [10 x i8], [10 x i8]* %16, i64 0, i64 0
%130 = call i32 @strcpy(i8* %128, i8* %129)
%131 = getelementptr inbounds [10 x i8], [10 x i8]* %19, i64 0, i64 0
%132 = call i32 @atoi(i8* %131)
%133 = sitofp i32 %132 to double
%134 = fdiv double %133, 1.000000e+02
%135 = load double*, double** %9
store double %134, double* %135
br label %145
136: ; preds = %109
%137 = getelementptr inbounds [10 x i8], [10 x i8]* %20, i64 0, i64 0
%138 = getelementptr inbounds [10 x i8], [10 x i8]* %16, i64 0, i64 0
%139 = call i32 @strcpy(i8* %137, i8* %138)
%140 = getelementptr inbounds [10 x i8], [10 x i8]* %20, i64 0, i64 0
%141 = call i32 @atoi(i8* %140)
%142 = sitofp i32 %141 to double
%143 = fdiv double %142, 1.000000e+02
%144 = load double*, double** %10
store double %143, double* %144
br label %145
145: ; preds = %109, %136, %127, %118, %111
%146 = load i32, i32* %14
%147 = add nsw i32 %146, 1
store i32 %147, i32* %14
%148 = load i32, i32* %12
%149 = load i32, i32* %11
%150 = add nsw i32 %149, %148
store i32 %150, i32* %11
br label %151
151: ; preds = %145
%152 = load i32, i32* %11
%153 = add nsw i32 %152, 1
store i32 %153, i32* %11
br label %26
154: ; preds = %26
ret void
}

LLVM IR (-O2):
@__const.AHRS_Parsing_RPY5.AHRS_psi = [10 x i8] c"'\00',\00\00\00\00\00\00"
define void @AHRS_Parsing_RPY5(i8* %0, i32* nocapture writeonly %1, double* nocapture writeonly %2, double* nocapture writeonly %3, double* nocapture writeonly %4) {
%6 = alloca [10 x i8]
%7 = alloca [10 x i8]
%8 = alloca [10 x i8]
%9 = alloca [10 x i8]
%10 = alloca [10 x i8]
%11 = getelementptr inbounds [10 x i8], [10 x i8]* %6, i64 0, i64 0
%12 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%13 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 0
%14 = getelementptr inbounds [10 x i8], [10 x i8]* %9, i64 0, i64 0
%15 = getelementptr inbounds [10 x i8], [10 x i8]* %10, i64 0, i64 0
%16 = call i32 @strlen(i8* %0)
%17 = icmp sgt i32 %16, 0
br i1 %17, label %18, label %78
18: ; preds = %5, %73
%19 = phi i32 [ %74, %73 ], [ 0, %5 ]
%20 = phi i32 [ %75, %73 ], [ 0, %5 ]
%21 = sext i32 %20 to i64
br label %22
22: ; preds = %18, %30
%23 = phi i64 [ 0, %18 ], [ %31, %30 ]
%24 = add nsw i64 %23, %21
%25 = getelementptr inbounds i8, i8* %0, i64 %24
%26 = load i8, i8* %25
switch i8 %26, label %27 [
i8 44, label %32
i8 42, label %32
]
27: ; preds = %22
%28 = getelementptr inbounds [10 x i8], [10 x i8]* %6, i64 0, i64 %23
store i8 %26, i8* %28
%29 = icmp eq i8 %26, 0
br i1 %29, label %32, label %30
30: ; preds = %27
%31 = add nuw i64 %23, 1
br label %22
32: ; preds = %22, %22, %27
%33 = trunc i64 %24 to i32
%34 = and i64 %23, 4294967295
%35 = getelementptr inbounds [10 x i8], [10 x i8]* %6, i64 0, i64 %34
store i8 0, i8* %35
%36 = call i32 @strlen(i8* %11)
%37 = icmp sgt i32 %36, 0
br i1 %37, label %38, label %54
38: ; preds = %32, %50
%39 = phi i64 [ %46, %50 ], [ 0, %32 ]
%40 = phi i32 [ %44, %50 ], [ 0, %32 ]
%41 = getelementptr inbounds [10 x i8], [10 x i8]* %6, i64 0, i64 %39
%42 = load i8, i8* %41
%43 = icmp eq i8 %42, 46
%44 = select i1 %43, i32 1, i32 %40
%45 = icmp eq i32 %44, 1
%46 = add nuw nsw i64 %39, 1
br i1 %45, label %47, label %50
47: ; preds = %38
%48 = getelementptr inbounds [10 x i8], [10 x i8]* %6, i64 0, i64 %46
%49 = load i8, i8* %48
store i8 %49, i8* %41
br label %50
50: ; preds = %38, %47
%51 = call i32 @strlen(i8* %11)
%52 = sext i32 %51 to i64
%53 = icmp slt i64 %46, %52
br i1 %53, label %38, label %54
54: ; preds = %50, %32
switch i32 %19, label %73 [
i32 1, label %55
i32 2, label %58
i32 3, label %63
i32 4, label %68
]
55: ; preds = %54
%56 = call i32 @strcpy(i8* %12, i8* %11)
%57 = call i32 @atoi(i8* %12)
store i32 %57, i32* %1
br label %73
58: ; preds = %54
%59 = call i32 @strcpy(i8* %13, i8* %11)
%60 = call i32 @atoi(i8* %13)
%61 = sitofp i32 %60 to double
%62 = fdiv double %61, 1.000000e+02
store double %62, double* %2
br label %73
63: ; preds = %54
%64 = call i32 @strcpy(i8* %14, i8* %11)
%65 = call i32 @atoi(i8* %14)
%66 = sitofp i32 %65 to double
%67 = fdiv double %66, 1.000000e+02
store double %67, double* %3
br label %73
68: ; preds = %54
%69 = call i32 @strcpy(i8* %15, i8* %11)
%70 = call i32 @atoi(i8* %15)
%71 = sitofp i32 %70 to double
%72 = fdiv double %71, 1.000000e+02
store double %72, double* %4
br label %73
73: ; preds = %54, %68, %63, %58, %55
%74 = add nuw nsw i32 %19, 1
%75 = add nsw i32 %33, 1
%76 = call i32 @strlen(i8* %0)
%77 = icmp slt i32 %75, %76
br i1 %77, label %18, label %78
78: ; preds = %73, %5
ret void
}