#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 */
char EOF;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
scalar_t__ is_current_word_empty(char *);
scalar_t__ isdigit(char);
int skip_spaces(char *, int);
int /*<<< orphan*/ stderr;
int get_next_member(char *temp_member, char *line, int line_number,
                    int last_position, int *syntax_errors,
                    int *expecting_comma) {
  int i = 0;
  int new_position = skip_spaces(line, last_position);
  int number_ended = 0;
  while (line[new_position] != '\0' && line[new_position] != '\n' &&
         line[new_position] != EOF && line[new_position] != '\t') {
    if (line[new_position] == '-' || line[new_position] == '+') {
      if (i == 0) {
        temp_member[i] = line[new_position];
        i++;
      } else {
        fprintf(stderr, "Error in line %d - valid number expected\n",
                line_number);
        *syntax_errors = 1;
      }
    } else if (isdigit(line[new_position]) && number_ended == 0) {
      *expecting_comma = 1;
      temp_member[i] = line[new_position];
      i++;
    } else if (isdigit(line[new_position]) && number_ended == 1) {
      fprintf(stderr, "Error in line %d - expecting comma\n", line_number);
      *syntax_errors = 1;
      return new_position;
    } else if (line[new_position] == ',') {
      if (*expecting_comma == 1) {
        *expecting_comma = 0;
        new_position++;
        break;
      } else {
        fprintf(stderr, "Error in line %d - redundant ','.\n", line_number);
        *syntax_errors = 1;
      }
    } else if (line[new_position] == ' ') {
      number_ended = 1;
    } else {
      fprintf(stderr,
              "Error in line %d - only integers can come after .data / .mat "
              "store command\n",
              line_number);
      *syntax_errors = 1;
    }
    new_position++;
  }
  temp_member[i] = '\0';
  if (is_current_word_empty(temp_member) && line[new_position] != '\0' &&
      line[new_position] != '\n' && line[new_position] != EOF)
    new_position =
        get_next_member(temp_member, line, line_number, new_position + 1,
                        syntax_errors, expecting_comma);
  return new_position;
}


x86 assembly (clang, -O0):
<get_next_member>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %ecx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%esi
call   1060 <skip_spaces@plt>
mov    %eax,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x3d(%rbp)
je     11f7 <get_next_member+0xa7>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x3d(%rbp)
je     11f7 <get_next_member+0xa7>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
mov    0x2e16(%rip),%rax
movsbl (%rax),%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x3d(%rbp)
je     11f7 <get_next_member+0xa7>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x9,%eax
setne  %al
mov    %al,-0x3d(%rbp)
mov    -0x3d(%rbp),%al
test   $0x1,%al
jne    1207 <get_next_member+0xb7>
jmp    13f1 <get_next_member+0x2a1>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2d,%eax
je     1231 <get_next_member+0xe1>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2b,%eax
jne    1286 <get_next_member+0x136>
cmpl   $0x0,-0x34(%rbp)
jne    125f <get_next_member+0x10f>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1281 <get_next_member+0x131>
mov    0x2d72(%rip),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%edx
lea    0xd8e(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
jmp    13e3 <get_next_member+0x293>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1040 <isdigit@plt>
cmp    $0x0,%rax
je     12d9 <get_next_member+0x189>
cmpl   $0x0,-0x3c(%rbp)
jne    12d9 <get_next_member+0x189>
mov    -0x30(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    13de <get_next_member+0x28e>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1040 <isdigit@plt>
cmp    $0x0,%rax
je     132b <get_next_member+0x1db>
cmpl   $0x1,-0x3c(%rbp)
jne    132b <get_next_member+0x1db>
mov    0x2cd3(%rip),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%edx
lea    0xd19(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x38(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    147f <get_next_member+0x32f>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2c,%eax
jne    138c <get_next_member+0x23c>
mov    -0x30(%rbp),%rax
cmpl   $0x1,(%rax)
jne    1365 <get_next_member+0x215>
mov    -0x30(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    13f1 <get_next_member+0x2a1>
mov    0x2c6c(%rip),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%edx
lea    0xcd6(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
jmp    13d4 <get_next_member+0x284>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
jne    13ad <get_next_member+0x25d>
movl   $0x1,-0x3c(%rbp)
jmp    13cf <get_next_member+0x27f>
mov    0x2c24(%rip),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%edx
lea    0xcb1(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
jmp    13d4 <get_next_member+0x284>
jmp    13d9 <get_next_member+0x289>
jmp    13de <get_next_member+0x28e>
jmp    13e3 <get_next_member+0x293>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    118b <get_next_member+0x3b>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x10(%rbp),%rdi
call   1030 <is_current_word_empty@plt>
cmp    $0x0,%rax
je     1479 <get_next_member+0x329>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     1479 <get_next_member+0x329>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0xa,%eax
je     1479 <get_next_member+0x329>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
mov    0x2b9b(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     1479 <get_next_member+0x329>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
call   1070 <get_next_member@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_next_member>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9,0x18(%rsp)
mov    %r8,0x10(%rsp)
mov    %ecx,%ebx
mov    %edx,0xc(%rsp)
mov    %rsi,%rbp
mov    %rdi,%r15
mov    %rsi,0x20(%rsp)
nopl   0x0(%rax)
mov    %rbp,%rdi
mov    %ebx,%esi
call   1060 <skip_spaces@plt>
mov    %eax,%ebx
movslq %eax,%r14
add    %rbp,%r14
xor    %r12d,%r12d
xor    %r13d,%r13d
mov    0x2e49(%rip),%rbp
jmp    11b0 <get_next_member+0x70>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %al,(%r15)
mov    $0x1,%r12d
add    $0x1,%ebx
add    $0x1,%r14
movzbl (%r14),%eax
test   %al,%al
je     12b0 <get_next_member+0x170>
cmp    $0xa,%al
je     12b0 <get_next_member+0x170>
cmp    $0x9,%al
je     12b0 <get_next_member+0x170>
mov    0x2e15(%rip),%rcx
cmp    (%rcx),%al
je     12b0 <get_next_member+0x170>
cmp    $0x2d,%al
je     11e3 <get_next_member+0xa3>
cmp    $0x2b,%al
jne    1210 <get_next_member+0xd0>
test   %r12d,%r12d
je     11a0 <get_next_member+0x60>
mov    0x0(%rbp),%edi
lea    0xe0e(%rip),%rsi
mov    0xc(%rsp),%edx
call   1050 <fprintf@plt>
mov    0x10(%rsp),%rax
movl   $0x1,(%rax)
jmp    11a9 <get_next_member+0x69>
nopl   0x0(%rax,%rax,1)
movsbl %al,%edi
call   1040 <isdigit@plt>
test   %rax,%rax
je     1244 <get_next_member+0x104>
test   %r13d,%r13d
jne    1244 <get_next_member+0x104>
mov    0x18(%rsp),%rax
movl   $0x1,(%rax)
movzbl (%r14),%eax
movslq %r12d,%rcx
mov    %al,(%r15,%rcx,1)
add    $0x1,%r12d
xor    %r13d,%r13d
jmp    11a9 <get_next_member+0x69>
movsbl (%r14),%edi
call   1040 <isdigit@plt>
test   %rax,%rax
je     125c <get_next_member+0x11c>
cmp    $0x1,%r13d
je     12ec <get_next_member+0x1ac>
movzbl (%r14),%eax
cmp    $0x20,%al
je     1281 <get_next_member+0x141>
cmp    $0x2c,%al
jne    128c <get_next_member+0x14c>
mov    0x18(%rsp),%rax
cmpl   $0x1,(%rax)
je     129b <get_next_member+0x15b>
mov    0x0(%rbp),%edi
lea    0xdd2(%rip),%rsi
jmp    11f2 <get_next_member+0xb2>
mov    $0x1,%r13d
jmp    11a9 <get_next_member+0x69>
mov    0x0(%rbp),%edi
lea    0xddb(%rip),%rsi
jmp    11f2 <get_next_member+0xb2>
mov    0x18(%rsp),%rax
movl   $0x0,(%rax)
add    $0x1,%ebx
nopl   0x0(%rax)
movslq %r12d,%rax
movb   $0x0,(%r15,%rax,1)
mov    %r15,%rdi
call   1030 <is_current_word_empty@plt>
test   %rax,%rax
je     130a <get_next_member+0x1ca>
movslq %ebx,%rax
mov    0x20(%rsp),%rbp
mov    0x0(%rbp,%rax,1),%al
test   %al,%al
je     130a <get_next_member+0x1ca>
cmp    $0xa,%al
je     130a <get_next_member+0x1ca>
mov    0x2d08(%rip),%rcx
cmp    (%rcx),%al
je     130a <get_next_member+0x1ca>
add    $0x1,%ebx
jmp    1170 <get_next_member+0x30>
mov    0x0(%rbp),%edi
lea    0xd34(%rip),%rsi
mov    0xc(%rsp),%edx
call   1050 <fprintf@plt>
mov    0x10(%rsp),%rax
movl   $0x1,(%rax)
mov    %ebx,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@EOF = global i8 0
@stderr = global i32 0
@.str = [42 x i8] c"Error in line %d - valid number expected\0A\00"
@.str.1 = [36 x i8] c"Error in line %d - expecting comma\0A\00"
@.str.2 = [35 x i8] c"Error in line %d - redundant ','.\0A\00"
@.str.3 = [76 x i8] c"Error in line %d - only integers can come after .data / .mat store command\0A\00"
define i32 @get_next_member(i8* %0, i8* %1, i32 %2, i32 %3, i32* nocapture writeonly %4, i32* nocapture %5) {
br label %7
7: ; preds = %82, %6
%8 = phi i32 [ %3, %6 ], [ %83, %82 ]
%9 = tail call i32 @skip_spaces(i8* %1, i32 %8)
%10 = sext i32 %9 to i64
br label %11
11: ; preds = %63, %7
%12 = phi i64 [ %66, %63 ], [ %10, %7 ]
%13 = phi i32 [ %64, %63 ], [ 0, %7 ]
%14 = phi i32 [ %65, %63 ], [ 0, %7 ]
%15 = getelementptr inbounds i8, i8* %1, i64 %12
%16 = load i8, i8* %15
switch i8 %16, label %17 [
i8 0, label %67
i8 10, label %67
]
17: ; preds = %11
%18 = load i8, i8* @EOF
%19 = icmp eq i8 %16, %18
%20 = icmp eq i8 %16, 9
%21 = or i1 %20, %19
br i1 %21, label %67, label %22
22: ; preds = %17
switch i8 %16, label %29 [
i8 45, label %23
i8 43, label %23
]
23: ; preds = %22, %22
%24 = icmp eq i32 %13, 0
br i1 %24, label %25, label %26
25: ; preds = %23
store i8 %16, i8* %0
br label %63
26: ; preds = %23
%27 = load i32, i32* @stderr
%28 = tail call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i32 %2)
store i32 1, i32* %4
br label %63
29: ; preds = %22
%30 = tail call i64 @isdigit(i8 signext %16)
%31 = icmp ne i64 %30, 0
%32 = icmp eq i32 %14, 0
%33 = select i1 %31, i1 %32, i1 false
br i1 %33, label %34, label %39
34: ; preds = %29
store i32 1, i32* %5
%35 = load i8, i8* %15
%36 = sext i32 %13 to i64
%37 = getelementptr inbounds i8, i8* %0, i64 %36
store i8 %35, i8* %37
%38 = add nsw i32 %13, 1
br label %63
39: ; preds = %29
%40 = load i8, i8* %15
%41 = tail call i64 @isdigit(i8 signext %40)
%42 = icmp ne i64 %41, 0
%43 = icmp eq i32 %14, 1
%44 = select i1 %42, i1 %43, i1 false
br i1 %44, label %45, label %49
45: ; preds = %39
%46 = trunc i64 %12 to i32
%47 = load i32, i32* @stderr
%48 = tail call i32 @fprintf(i32 %47, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i32 %2)
store i32 1, i32* %4
br label %84
49: ; preds = %39
%50 = load i8, i8* %15
switch i8 %50, label %60 [
i8 44, label %51
i8 32, label %63
]
51: ; preds = %49
%52 = load i32, i32* %5
%53 = icmp eq i32 %52, 1
br i1 %53, label %54, label %57
54: ; preds = %51
%55 = trunc i64 %12 to i32
store i32 0, i32* %5
%56 = add nsw i32 %55, 1
br label %69
57: ; preds = %51
%58 = load i32, i32* @stderr
%59 = tail call i32 @fprintf(i32 %58, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 %2)
store i32 1, i32* %4
br label %63
60: ; preds = %49
%61 = load i32, i32* @stderr
%62 = tail call i32 @fprintf(i32 %61, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.3, i64 0, i64 0), i32 %2)
store i32 1, i32* %4
br label %63
63: ; preds = %49, %34, %57, %60, %25, %26
%64 = phi i32 [ 1, %25 ], [ %13, %26 ], [ %38, %34 ], [ %13, %57 ], [ %13, %60 ], [ %13, %49 ]
%65 = phi i32 [ %14, %25 ], [ %14, %26 ], [ 0, %34 ], [ %14, %57 ], [ %14, %60 ], [ 1, %49 ]
%66 = add i64 %12, 1
br label %11
67: ; preds = %17, %11, %11
%68 = trunc i64 %12 to i32
br label %69
69: ; preds = %67, %54
%70 = phi i32 [ %56, %54 ], [ %68, %67 ]
%71 = sext i32 %13 to i64
%72 = getelementptr inbounds i8, i8* %0, i64 %71
store i8 0, i8* %72
%73 = tail call i64 @is_current_word_empty(i8* %0)
%74 = icmp eq i64 %73, 0
br i1 %74, label %84, label %75
75: ; preds = %69
%76 = sext i32 %70 to i64
%77 = getelementptr inbounds i8, i8* %1, i64 %76
%78 = load i8, i8* %77
switch i8 %78, label %79 [
i8 0, label %84
i8 10, label %84
]
79: ; preds = %75
%80 = load i8, i8* @EOF
%81 = icmp eq i8 %78, %80
br i1 %81, label %84, label %82
82: ; preds = %79
%83 = add nsw i32 %70, 1
br label %7
84: ; preds = %69, %79, %75, %75, %45
%85 = phi i32 [ %46, %45 ], [ %70, %75 ], [ %70, %75 ], [ %70, %79 ], [ %70, %69 ]
ret i32 %85
}