#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 /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int, char, ...);
scalar_t__ isspace(char const);
char *skip_white(char const *);
int /*<<< orphan*/ *stderr;
float strtof(char const *, char **);
char toupper(int /*<<< orphan*/);
const char *gcodep_parse_pair_with_linenumber(int line_num, const char *line,
                                              char *letter, float *value,
                                              FILE *err_stream) {
  if (line == NULL)
    return NULL;
  line = skip_white(line);
  if (*line == '\0' || *line == ';' || *line == '%')
    return NULL;
  if (*line == '(') {
    while (*line && *line != ')')
      line++;
    line = skip_white(line + 1);
    if (*line == '\0')
      return NULL;
  }
  *letter = toupper(*line++);
  if (*line == '\0') {
    fprintf(err_stream ? err_stream : stderr,
            "// Line %d G-Code Syntax Error: expected value after '%c'\n",
            line_num, *letter);
    return NULL;
  }
  if (*letter == '*')
    return NULL;
  while (*line && isspace(*line))
    line++;
  char *repair_x =
      (*(line + 1) == 'x' || *(line + 1) == 'X') ? (char *)line + 1 : NULL;
  if (repair_x)
    *repair_x = '\0';
  char *endptr;
  *value = strtof(line, &endptr);
  if (repair_x)
    *repair_x = 'X';
  if (line == endptr) {
    fprintf(err_stream ? err_stream : stderr,
            "// Line %d G-Code Syntax Error:"
            " Letter '%c' is not followed by a number `%s`.\n",
            line_num, *letter, line);
    return NULL;
  }
  line = endptr;
  line = skip_white(line);
  return line;
}


x86 assembly (clang, -O0):
<gcodep_parse_pair_with_linenumber>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0xc(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1183 <gcodep_parse_pair_with_linenumber+0x33>
movq   $0x0,-0x8(%rbp)
jmp    1446 <gcodep_parse_pair_with_linenumber+0x2f6>
mov    -0x18(%rbp),%rdi
call   1070 <skip_white@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     11c0 <gcodep_parse_pair_with_linenumber+0x70>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3b,%eax
je     11c0 <gcodep_parse_pair_with_linenumber+0x70>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x25,%eax
jne    11cd <gcodep_parse_pair_with_linenumber+0x7d>
movq   $0x0,-0x8(%rbp)
jmp    1446 <gcodep_parse_pair_with_linenumber+0x2f6>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x28,%eax
jne    125b <gcodep_parse_pair_with_linenumber+0x10b>
jmp    11e2 <gcodep_parse_pair_with_linenumber+0x92>
mov    -0x18(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x41(%rbp)
je     1207 <gcodep_parse_pair_with_linenumber+0xb7>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x29,%eax
setne  %al
mov    %al,-0x41(%rbp)
mov    -0x41(%rbp),%al
test   $0x1,%al
jne    1217 <gcodep_parse_pair_with_linenumber+0xc7>
jmp    1228 <gcodep_parse_pair_with_linenumber+0xd8>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    11e2 <gcodep_parse_pair_with_linenumber+0x92>
mov    -0x18(%rbp),%rdi
add    $0x1,%rdi
call   1070 <skip_white@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1256 <gcodep_parse_pair_with_linenumber+0x106>
movq   $0x0,-0x8(%rbp)
jmp    1446 <gcodep_parse_pair_with_linenumber+0x2f6>
jmp    125b <gcodep_parse_pair_with_linenumber+0x10b>
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x18(%rbp)
movsbl (%rax),%edi
call   1030 <toupper@plt>
mov    %al,%cl
mov    -0x20(%rbp),%rax
mov    %cl,(%rax)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    12d9 <gcodep_parse_pair_with_linenumber+0x189>
cmpq   $0x0,-0x30(%rbp)
je     12a2 <gcodep_parse_pair_with_linenumber+0x152>
mov    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
jmp    12b0 <gcodep_parse_pair_with_linenumber+0x160>
mov    0x2d37(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rdi
mov    -0xc(%rbp),%edx
mov    -0x20(%rbp),%rax
lea    0xd3e(%rip),%rsi
movsbl (%rax),%ecx
mov    $0x0,%al
call   1060 <fprintf@plt>
movq   $0x0,-0x8(%rbp)
jmp    1446 <gcodep_parse_pair_with_linenumber+0x2f6>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2a,%eax
jne    12f6 <gcodep_parse_pair_with_linenumber+0x1a6>
movq   $0x0,-0x8(%rbp)
jmp    1446 <gcodep_parse_pair_with_linenumber+0x2f6>
jmp    12fb <gcodep_parse_pair_with_linenumber+0x1ab>
mov    -0x18(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x51(%rbp)
je     1326 <gcodep_parse_pair_with_linenumber+0x1d6>
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isspace@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x51(%rbp)
mov    -0x51(%rbp),%al
test   $0x1,%al
jne    1336 <gcodep_parse_pair_with_linenumber+0x1e6>
jmp    1347 <gcodep_parse_pair_with_linenumber+0x1f7>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    12fb <gcodep_parse_pair_with_linenumber+0x1ab>
mov    -0x18(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x78,%eax
je     1369 <gcodep_parse_pair_with_linenumber+0x219>
mov    -0x18(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x58,%eax
jne    137a <gcodep_parse_pair_with_linenumber+0x22a>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x60(%rbp)
jmp    1385 <gcodep_parse_pair_with_linenumber+0x235>
xor    %eax,%eax
mov    %rax,-0x60(%rbp)
jmp    1385 <gcodep_parse_pair_with_linenumber+0x235>
mov    -0x60(%rbp),%rax
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     139f <gcodep_parse_pair_with_linenumber+0x24f>
mov    -0x38(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x18(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1040 <strtof@plt>
mov    -0x28(%rbp),%rax
movss  %xmm0,(%rax)
cmpq   $0x0,-0x38(%rbp)
je     13c6 <gcodep_parse_pair_with_linenumber+0x276>
mov    -0x38(%rbp),%rax
movb   $0x58,(%rax)
mov    -0x18(%rbp),%rax
cmp    -0x40(%rbp),%rax
jne    1429 <gcodep_parse_pair_with_linenumber+0x2d9>
cmpq   $0x0,-0x30(%rbp)
je     13ec <gcodep_parse_pair_with_linenumber+0x29c>
mov    -0x30(%rbp),%rax
mov    %rax,-0x68(%rbp)
jmp    13fa <gcodep_parse_pair_with_linenumber+0x2aa>
mov    0x2bed(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rdi
mov    -0xc(%rbp),%edx
mov    -0x20(%rbp),%rax
mov    (%rax),%al
mov    -0x18(%rbp),%r8
lea    0xc29(%rip),%rsi
movsbl %al,%ecx
mov    $0x0,%al
call   1060 <fprintf@plt>
movq   $0x0,-0x8(%rbp)
jmp    1446 <gcodep_parse_pair_with_linenumber+0x2f6>
mov    -0x40(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1070 <skip_white@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gcodep_parse_pair_with_linenumber>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
test   %rsi,%rsi
je     11d9 <gcodep_parse_pair_with_linenumber+0x89>
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%r13
mov    %edi,%r14d
mov    %rsi,%rdi
call   1070 <skip_white@plt>
mov    %rax,%rbx
mov    (%rax),%al
xor    %ebp,%ebp
cmp    $0x27,%al
jg     1189 <gcodep_parse_pair_with_linenumber+0x39>
test   %al,%al
je     11db <gcodep_parse_pair_with_linenumber+0x8b>
cmp    $0x25,%al
je     11db <gcodep_parse_pair_with_linenumber+0x8b>
jmp    11c2 <gcodep_parse_pair_with_linenumber+0x72>
cmp    $0x3b,%al
je     11db <gcodep_parse_pair_with_linenumber+0x8b>
cmp    $0x28,%al
jne    11c2 <gcodep_parse_pair_with_linenumber+0x72>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
test   %al,%al
je     11b1 <gcodep_parse_pair_with_linenumber+0x61>
cmp    $0x29,%al
je     11b1 <gcodep_parse_pair_with_linenumber+0x61>
movzbl (%rbx),%eax
jmp    11a0 <gcodep_parse_pair_with_linenumber+0x50>
mov    %rbx,%rdi
call   1070 <skip_white@plt>
mov    %rax,%rbx
mov    (%rax),%al
test   %al,%al
je     11d9 <gcodep_parse_pair_with_linenumber+0x89>
movsbl %al,%edi
call   1030 <toupper@plt>
mov    %al,0x0(%r13)
mov    0x1(%rbx),%cl
test   %cl,%cl
je     11ed <gcodep_parse_pair_with_linenumber+0x9d>
cmp    $0x2a,%al
jne    1217 <gcodep_parse_pair_with_linenumber+0xc7>
xor    %ebp,%ebp
mov    %rbp,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
test   %r15,%r15
jne    11fc <gcodep_parse_pair_with_linenumber+0xac>
mov    0x2de7(%rip),%rcx
mov    (%rcx),%r15
movsbl %al,%ecx
lea    0xdfa(%rip),%rsi
xor    %ebp,%ebp
mov    %r15,%rdi
mov    %r14d,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    11db <gcodep_parse_pair_with_linenumber+0x8b>
add    $0x1,%rbx
nopl   0x0(%rax,%rax,1)
movsbl %cl,%edi
call   1050 <isspace@plt>
test   %rax,%rax
je     1239 <gcodep_parse_pair_with_linenumber+0xe9>
movzbl 0x1(%rbx),%ecx
add    $0x1,%rbx
test   %cl,%cl
jne    1220 <gcodep_parse_pair_with_linenumber+0xd0>
mov    0x1(%rbx),%al
or     $0x20,%al
cmp    $0x78,%al
jne    125d <gcodep_parse_pair_with_linenumber+0x10d>
movb   $0x0,0x1(%rbx)
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1040 <strtof@plt>
movss  %xmm0,(%r12)
movb   $0x58,0x1(%rbx)
jmp    126e <gcodep_parse_pair_with_linenumber+0x11e>
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1040 <strtof@plt>
movss  %xmm0,(%r12)
mov    (%rsp),%rdi
cmp    %rdi,%rbx
je     1284 <gcodep_parse_pair_with_linenumber+0x134>
call   1070 <skip_white@plt>
mov    %rax,%rbp
jmp    11db <gcodep_parse_pair_with_linenumber+0x8b>
test   %r15,%r15
jne    1293 <gcodep_parse_pair_with_linenumber+0x143>
mov    0x2d50(%rip),%rax
mov    (%rax),%r15
movsbl 0x0(%r13),%ecx
lea    0xd9c(%rip),%rsi
xor    %ebp,%ebp
mov    %r15,%rdi
mov    %r14d,%edx
mov    %rbx,%r8
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    11db <gcodep_parse_pair_with_linenumber+0x8b>

LLVM IR (-O0):
@stderr = global i32* null
@.str = [59 x i8] c"// Line %d G-Code Syntax Error: expected value after '%c'\0A\00"
@.str.1 = [79 x i8] c"// Line %d G-Code Syntax Error: Letter '%c' is not followed by a number `%s`.\0A\00"
define i8* @gcodep_parse_pair_with_linenumber(i32 %0, i8* %1, i8* %2, float* %3, i32* %4) {
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca float*
%11 = alloca i32*
%12 = alloca i8*
%13 = alloca i8*
store i32 %0, i32* %7
store i8* %1, i8** %8
store i8* %2, i8** %9
store float* %3, float** %10
store i32* %4, i32** %11
%14 = load i8*, i8** %8
%15 = icmp eq i8* %14, null
br i1 %15, label %16, label %17
16: ; preds = %5
store i8* null, i8** %6
br label %165
17: ; preds = %5
%18 = load i8*, i8** %8
%19 = call i8* @skip_white(i8* %18)
store i8* %19, i8** %8
%20 = load i8*, i8** %8
%21 = load i8, i8* %20
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label %34, label %24
24: ; preds = %17
%25 = load i8*, i8** %8
%26 = load i8, i8* %25
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 59
br i1 %28, label %34, label %29
29: ; preds = %24
%30 = load i8*, i8** %8
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 37
br i1 %33, label %34, label %35
34: ; preds = %29, %24, %17
store i8* null, i8** %6
br label %165
35: ; preds = %29
%36 = load i8*, i8** %8
%37 = load i8, i8* %36
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 40
br i1 %39, label %40, label %66
40: ; preds = %35
br label %41
41: ; preds = %53, %40
%42 = load i8*, i8** %8
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %51
46: ; preds = %41
%47 = load i8*, i8** %8
%48 = load i8, i8* %47
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %49, 41
br label %51
51: ; preds = %46, %41
%52 = phi i1 [ false, %41 ], [ %50, %46 ]
br i1 %52, label %53, label %56
53: ; preds = %51
%54 = load i8*, i8** %8
%55 = getelementptr inbounds i8, i8* %54, i32 1
store i8* %55, i8** %8
br label %41
56: ; preds = %51
%57 = load i8*, i8** %8
%58 = getelementptr inbounds i8, i8* %57, i64 1
%59 = call i8* @skip_white(i8* %58)
store i8* %59, i8** %8
%60 = load i8*, i8** %8
%61 = load i8, i8* %60
%62 = sext i8 %61 to i32
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %65
64: ; preds = %56
store i8* null, i8** %6
br label %165
65: ; preds = %56
br label %66
66: ; preds = %65, %35
%67 = load i8*, i8** %8
%68 = getelementptr inbounds i8, i8* %67, i32 1
store i8* %68, i8** %8
%69 = load i8, i8* %67
%70 = sext i8 %69 to i32
%71 = call signext i8 @toupper(i32 %70)
%72 = load i8*, i8** %9
store i8 %71, i8* %72
%73 = load i8*, i8** %8
%74 = load i8, i8* %73
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 0
br i1 %76, label %77, label %90
77: ; preds = %66
%78 = load i32*, i32** %11
%79 = icmp ne i32* %78, null
br i1 %79, label %80, label %82
80: ; preds = %77
%81 = load i32*, i32** %11
br label %84
82: ; preds = %77
%83 = load i32*, i32** @stderr
br label %84
84: ; preds = %82, %80
%85 = phi i32* [ %81, %80 ], [ %83, %82 ]
%86 = load i32, i32* %7
%87 = load i8*, i8** %9
%88 = load i8, i8* %87
%89 = call i32 (i32*, i8*, i32, i8, ...) @fprintf(i32* %85, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0), i32 %86, i8 signext %88)
store i8* null, i8** %6
br label %165
90: ; preds = %66
%91 = load i8*, i8** %9
%92 = load i8, i8* %91
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 42
br i1 %94, label %95, label %96
95: ; preds = %90
store i8* null, i8** %6
br label %165
96: ; preds = %90
br label %97
97: ; preds = %109, %96
%98 = load i8*, i8** %8
%99 = load i8, i8* %98
%100 = sext i8 %99 to i32
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %107
102: ; preds = %97
%103 = load i8*, i8** %8
%104 = load i8, i8* %103
%105 = call i64 @isspace(i8 signext %104)
%106 = icmp ne i64 %105, 0
br label %107
107: ; preds = %102, %97
%108 = phi i1 [ false, %97 ], [ %106, %102 ]
br i1 %108, label %109, label %112
109: ; preds = %107
%110 = load i8*, i8** %8
%111 = getelementptr inbounds i8, i8* %110, i32 1
store i8* %111, i8** %8
br label %97
112: ; preds = %107
%113 = load i8*, i8** %8
%114 = getelementptr inbounds i8, i8* %113, i64 1
%115 = load i8, i8* %114
%116 = sext i8 %115 to i32
%117 = icmp eq i32 %116, 120
br i1 %117, label %124, label %118
118: ; preds = %112
%119 = load i8*, i8** %8
%120 = getelementptr inbounds i8, i8* %119, i64 1
%121 = load i8, i8* %120
%122 = sext i8 %121 to i32
%123 = icmp eq i32 %122, 88
br i1 %123, label %124, label %127
124: ; preds = %118, %112
%125 = load i8*, i8** %8
%126 = getelementptr inbounds i8, i8* %125, i64 1
br label %128
127: ; preds = %118
br label %128
128: ; preds = %127, %124
%129 = phi i8* [ %126, %124 ], [ null, %127 ]
store i8* %129, i8** %12
%130 = load i8*, i8** %12
%131 = icmp ne i8* %130, null
br i1 %131, label %132, label %134
132: ; preds = %128
%133 = load i8*, i8** %12
store i8 0, i8* %133
br label %134
134: ; preds = %132, %128
%135 = load i8*, i8** %8
%136 = call float @strtof(i8* %135, i8** %13)
%137 = load float*, float** %10
store float %136, float* %137
%138 = load i8*, i8** %12
%139 = icmp ne i8* %138, null
br i1 %139, label %140, label %142
140: ; preds = %134
%141 = load i8*, i8** %12
store i8 88, i8* %141
br label %142
142: ; preds = %140, %134
%143 = load i8*, i8** %8
%144 = load i8*, i8** %13
%145 = icmp eq i8* %143, %144
br i1 %145, label %146, label %160
146: ; preds = %142
%147 = load i32*, i32** %11
%148 = icmp ne i32* %147, null
br i1 %148, label %149, label %151
149: ; preds = %146
%150 = load i32*, i32** %11
br label %153
151: ; preds = %146
%152 = load i32*, i32** @stderr
br label %153
153: ; preds = %151, %149
%154 = phi i32* [ %150, %149 ], [ %152, %151 ]
%155 = load i32, i32* %7
%156 = load i8*, i8** %9
%157 = load i8, i8* %156
%158 = load i8*, i8** %8
%159 = call i32 (i32*, i8*, i32, i8, ...) @fprintf(i32* %154, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.1, i64 0, i64 0), i32 %155, i8 signext %157, i8* %158)
store i8* null, i8** %6
br label %165
160: ; preds = %142
%161 = load i8*, i8** %13
store i8* %161, i8** %8
%162 = load i8*, i8** %8
%163 = call i8* @skip_white(i8* %162)
store i8* %163, i8** %8
%164 = load i8*, i8** %8
store i8* %164, i8** %6
br label %165
165: ; preds = %160, %153, %95, %84, %64, %34, %16
%166 = load i8*, i8** %6
ret i8* %166
}

LLVM IR (-O2):
@stderr = global i32* null
@.str = [59 x i8] c"// Line %d G-Code Syntax Error: expected value after '%c'\0A\00"
@.str.1 = [79 x i8] c"// Line %d G-Code Syntax Error: Letter '%c' is not followed by a number `%s`.\0A\00"
define i8* @gcodep_parse_pair_with_linenumber(i32 %0, i8* %1, i8* nocapture %2, float* nocapture writeonly %3, i32* %4) {
%6 = alloca i8*
%7 = icmp eq i8* %1, null
br i1 %7, label %70, label %8
8: ; preds = %5
%9 = tail call i8* @skip_white(i8* %1)
%10 = load i8, i8* %9
switch i8 %10, label %22 [
i8 0, label %70
i8 59, label %70
i8 37, label %70
i8 40, label %11
]
11: ; preds = %8, %14
%12 = phi i8 [ %16, %14 ], [ %10, %8 ]
%13 = phi i8* [ %15, %14 ], [ %9, %8 ]
switch i8 %12, label %14 [
i8 0, label %17
i8 41, label %17
]
14: ; preds = %11
%15 = getelementptr inbounds i8, i8* %13, i64 1
%16 = load i8, i8* %15
br label %11
17: ; preds = %11, %11
%18 = getelementptr inbounds i8, i8* %13, i64 1
%19 = tail call i8* @skip_white(i8* %18)
%20 = load i8, i8* %19
%21 = icmp eq i8 %20, 0
br i1 %21, label %70, label %22
22: ; preds = %8, %17
%23 = phi i8 [ %20, %17 ], [ %10, %8 ]
%24 = phi i8* [ %19, %17 ], [ %9, %8 ]
%25 = getelementptr inbounds i8, i8* %24, i64 1
%26 = sext i8 %23 to i32
%27 = tail call signext i8 @toupper(i32 %26)
store i8 %27, i8* %2
%28 = load i8, i8* %25
%29 = icmp eq i8 %28, 0
br i1 %29, label %30, label %35
30: ; preds = %22
%31 = icmp eq i32* %4, null
%32 = load i32*, i32** @stderr
%33 = select i1 %31, i32* %32, i32* %4
%34 = tail call i32 (i32*, i8*, i32, i8, ...) @fprintf(i32* %33, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0), i32 %0, i8 signext %27)
br label %70
35: ; preds = %22
%36 = icmp eq i8 %27, 42
br i1 %36, label %70, label %37
37: ; preds = %35, %42
%38 = phi i8* [ %43, %42 ], [ %25, %35 ]
%39 = phi i8 [ %44, %42 ], [ %28, %35 ]
%40 = tail call i64 @isspace(i8 signext %39)
%41 = icmp eq i64 %40, 0
br i1 %41, label %46, label %42
42: ; preds = %37
%43 = getelementptr inbounds i8, i8* %38, i64 1
%44 = load i8, i8* %43
%45 = icmp eq i8 %44, 0
br i1 %45, label %46, label %37
46: ; preds = %37, %42
%47 = phi i8* [ %38, %37 ], [ %43, %42 ]
%48 = getelementptr inbounds i8, i8* %47, i64 1
%49 = load i8, i8* %48
switch i8 %49, label %50 [
i8 120, label %53
i8 88, label %53
]
50: ; preds = %46
%51 = bitcast i8** %6 to i8*
%52 = call float @strtof(i8* %47, i8** %6)
store float %52, float* %3
br label %56
53: ; preds = %46, %46
store i8 0, i8* %48
%54 = bitcast i8** %6 to i8*
%55 = call float @strtof(i8* %47, i8** %6)
store float %55, float* %3
store i8 88, i8* %48
br label %56
56: ; preds = %50, %53
%57 = bitcast i8** %6 to i8*
%58 = load i8*, i8** %6
%59 = icmp eq i8* %47, %58
br i1 %59, label %60, label %66
60: ; preds = %56
%61 = icmp eq i32* %4, null
%62 = load i32*, i32** @stderr
%63 = select i1 %61, i32* %62, i32* %4
%64 = load i8, i8* %2
%65 = tail call i32 (i32*, i8*, i32, i8, ...) @fprintf(i32* %63, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.1, i64 0, i64 0), i32 %0, i8 signext %64, i8* %47)
br label %68
66: ; preds = %56
%67 = tail call i8* @skip_white(i8* %58)
br label %68
68: ; preds = %66, %60
%69 = phi i8* [ null, %60 ], [ %67, %66 ]
br label %70
70: ; preds = %35, %17, %8, %8, %8, %5, %68, %30
%71 = phi i8* [ null, %30 ], [ %69, %68 ], [ null, %5 ], [ null, %8 ], [ null, %8 ], [ null, %8 ], [ null, %17 ], [ null, %35 ]
ret i8* %71
}