#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 /*<<< orphan*/ strcpy(char *, char *);
int read_line2(char *str, char *addr, char *label, char *opcode,
               char *operand) {
  int i, j, k, flag;
  char word[4][100];
  strcpy(addr, "");
  strcpy(label, "");
  strcpy(opcode, "");
  strcpy(operand, "");
  flag = 1;
  for (i = 0, j = 0, k = 0; str[i] != '\0' && flag == 1; i++, k++) {
    if (str[i] == ';') {
      flag = 0;
    } else if (str[i] == ' ' || str[i] == '\n' || str[i] == '\t') {
      word[j][k] = '\0';
      k = -1;
      if (i != 0)
        j++;
      for (; str[i] == ' ' || str[i] == '\n' || str[i] == '\t'; i++)
        ;
      i--;
    } else
      word[j][k] = str[i];
  }
  if (j - 1 == 3) {
    strcpy(addr, word[0]);
    strcpy(label, word[1]);
    strcpy(opcode, word[2]);
    strcpy(operand, word[3]);
  } else if (j - 1 == 2) {
    strcpy(addr, word[0]);
    strcpy(label, "");
    strcpy(opcode, word[1]);
    strcpy(operand, word[2]);
  } else if (j - 1 == 1) {
    strcpy(addr, word[0]);
    strcpy(label, "");
    strcpy(opcode, word[1]);
    strcpy(operand, "");
  }
  return j - 1;
}


x86 assembly (clang, -O0):
<read_line2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1e0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xec6(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x18(%rbp),%rdi
lea    0xeb6(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x20(%rbp),%rdi
lea    0xea6(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x28(%rbp),%rdi
lea    0xe96(%rip),%rsi
call   1030 <strcpy@plt>
movl   $0x1,-0x38(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x1d1(%rbp)
je     11b5 <read_line2+0xa5>
cmpl   $0x1,-0x38(%rbp)
sete   %al
mov    %al,-0x1d1(%rbp)
mov    -0x1d1(%rbp),%al
test   $0x1,%al
jne    11c8 <read_line2+0xb8>
jmp    132c <read_line2+0x21c>
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x3b,%eax
jne    11e9 <read_line2+0xd9>
movl   $0x0,-0x38(%rbp)
jmp    1310 <read_line2+0x200>
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
je     1228 <read_line2+0x118>
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0xa,%eax
je     1228 <read_line2+0x118>
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x9,%eax
jne    12e7 <read_line2+0x1d7>
movslq -0x30(%rbp),%rcx
lea    -0x1d0(%rbp),%rax
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
movl   $0xffffffff,-0x34(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     125c <read_line2+0x14c>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1261 <read_line2+0x151>
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x1d2(%rbp)
je     12b3 <read_line2+0x1a3>
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
mov    $0x1,%al
cmp    $0xa,%ecx
mov    %al,-0x1d2(%rbp)
je     12b3 <read_line2+0x1a3>
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0x1d2(%rbp)
mov    -0x1d2(%rbp),%al
test   $0x1,%al
jne    12c6 <read_line2+0x1b6>
jmp    12d9 <read_line2+0x1c9>
jmp    12cb <read_line2+0x1bb>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1261 <read_line2+0x151>
mov    -0x2c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x2c(%rbp)
jmp    130b <read_line2+0x1fb>
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
movslq -0x30(%rbp),%rcx
lea    -0x1d0(%rbp),%rax
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
jmp    1310 <read_line2+0x200>
jmp    1315 <read_line2+0x205>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    118b <read_line2+0x7b>
mov    -0x30(%rbp),%eax
sub    $0x1,%eax
cmp    $0x3,%eax
jne    1392 <read_line2+0x282>
mov    -0x10(%rbp),%rdi
lea    -0x1d0(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x18(%rbp),%rdi
lea    -0x1d0(%rbp),%rsi
add    $0x64,%rsi
call   1030 <strcpy@plt>
mov    -0x20(%rbp),%rdi
lea    -0x1d0(%rbp),%rsi
add    $0xc8,%rsi
call   1030 <strcpy@plt>
mov    -0x28(%rbp),%rdi
lea    -0x1d0(%rbp),%rsi
add    $0x12c,%rsi
call   1030 <strcpy@plt>
jmp    144e <read_line2+0x33e>
mov    -0x30(%rbp),%eax
sub    $0x1,%eax
cmp    $0x2,%eax
jne    13f1 <read_line2+0x2e1>
mov    -0x10(%rbp),%rdi
lea    -0x1d0(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x18(%rbp),%rdi
lea    0xc44(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x20(%rbp),%rdi
lea    -0x1d0(%rbp),%rsi
add    $0x64,%rsi
call   1030 <strcpy@plt>
mov    -0x28(%rbp),%rdi
lea    -0x1d0(%rbp),%rsi
add    $0xc8,%rsi
call   1030 <strcpy@plt>
jmp    1449 <read_line2+0x339>
mov    -0x30(%rbp),%eax
sub    $0x1,%eax
cmp    $0x1,%eax
jne    1444 <read_line2+0x334>
mov    -0x10(%rbp),%rdi
lea    -0x1d0(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x18(%rbp),%rdi
lea    0xbe5(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x20(%rbp),%rdi
lea    -0x1d0(%rbp),%rsi
add    $0x64,%rsi
call   1030 <strcpy@plt>
mov    -0x28(%rbp),%rdi
lea    0xbc1(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1449 <read_line2+0x339>
jmp    144e <read_line2+0x33e>
mov    -0x30(%rbp),%eax
sub    $0x1,%eax
add    $0x1e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_line2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1a8,%rsp
mov    %r8,%rbx
mov    %rcx,%r15
mov    %rdx,%r12
mov    %rsi,%r13
mov    %rdi,%r14
lea    0xec9(%rip),%rbp
mov    %rsi,%rdi
mov    %rbp,%rsi
call   1030 <strcpy@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
call   1030 <strcpy@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
call   1030 <strcpy@plt>
mov    %rbx,0x8(%rsp)
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1030 <strcpy@plt>
mov    (%r14),%dil
test   %dil,%dil
je     128d <read_line2+0x17d>
xor    %esi,%esi
movabs $0x100000600,%rcx
xor    %eax,%eax
xor    %edx,%edx
jmp    11af <read_line2+0x9f>
cs nopw 0x0(%rax,%rax,1)
add    %esi,%eax
mov    $0xffffffff,%esi
movslq %edx,%rdx
add    $0x1,%esi
mov    0x1(%r14,%rdx,1),%dil
add    $0x1,%rdx
test   %dil,%dil
je     1230 <read_line2+0x120>
lea    -0x9(%rdi),%ebp
cmp    $0x2,%bpl
jb     11e0 <read_line2+0xd0>
cmp    $0x20,%dil
je     11e0 <read_line2+0xd0>
cmp    $0x3b,%dil
je     1230 <read_line2+0x120>
movslq %eax,%rbp
movslq %esi,%rbx
imul   $0x64,%rbp,%rbp
add    %rsp,%rbp
add    $0x10,%rbp
mov    %dil,(%rbx,%rbp,1)
jmp    1197 <read_line2+0x87>
nopl   0x0(%rax,%rax,1)
movslq %eax,%rdi
movslq %esi,%rsi
imul   $0x64,%rdi,%rdi
add    %rsp,%rdi
add    $0x10,%rdi
movb   $0x0,(%rsi,%rdi,1)
xor    %esi,%esi
movslq %edx,%rdi
add    $0xffffffff,%edx
setb   %sil
add    %r14,%rdi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movzbl (%rdi),%ebp
cmp    $0x20,%rbp
ja     1190 <read_line2+0x80>
bt     %rbp,%rcx
jae    1190 <read_line2+0x80>
add    $0x1,%edx
add    $0x1,%rdi
jmp    1210 <read_line2+0x100>
cmp    $0x2,%eax
je     1294 <read_line2+0x184>
cmp    $0x3,%eax
je     12d4 <read_line2+0x1c4>
cmp    $0x4,%eax
jne    1314 <read_line2+0x204>
lea    0x10(%rsp),%rsi
mov    %r13,%rdi
call   1030 <strcpy@plt>
lea    0x74(%rsp),%rsi
mov    %r12,%rdi
call   1030 <strcpy@plt>
lea    0xd8(%rsp),%rsi
mov    %r15,%rdi
call   1030 <strcpy@plt>
lea    0x13c(%rsp),%rsi
mov    0x8(%rsp),%rdi
call   1030 <strcpy@plt>
mov    $0x4,%eax
jmp    1314 <read_line2+0x204>
xor    %eax,%eax
jmp    1314 <read_line2+0x204>
lea    0x10(%rsp),%rsi
mov    %r13,%rdi
call   1030 <strcpy@plt>
lea    0xd58(%rip),%rbx
mov    %r12,%rdi
mov    %rbx,%rsi
call   1030 <strcpy@plt>
lea    0x74(%rsp),%rsi
mov    %r15,%rdi
call   1030 <strcpy@plt>
mov    0x8(%rsp),%rdi
mov    %rbx,%rsi
call   1030 <strcpy@plt>
mov    $0x2,%eax
jmp    1314 <read_line2+0x204>
lea    0x10(%rsp),%rsi
mov    %r13,%rdi
call   1030 <strcpy@plt>
lea    0xd18(%rip),%rsi
mov    %r12,%rdi
call   1030 <strcpy@plt>
lea    0x74(%rsp),%rsi
mov    %r15,%rdi
call   1030 <strcpy@plt>
lea    0xd8(%rsp),%rsi
mov    0x8(%rsp),%rdi
call   1030 <strcpy@plt>
mov    $0x3,%eax
add    $0xffffffff,%eax
add    $0x1a8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
define i32 @read_line2(i8* nocapture %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = alloca [4 x [100 x i8]]
%7 = getelementptr inbounds [4 x [100 x i8]], [4 x [100 x i8]]* %6, i64 0, i64 0, i64 0
%8 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%10 = tail call i32 @strcpy(i8* %3, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%12 = load i8, i8* %0
%13 = icmp eq i8 %12, 0
br i1 %13, label %73, label %14
14: ; preds = %5, %40
%15 = phi i8 [ %48, %40 ], [ %12, %5 ]
%16 = phi i32 [ %45, %40 ], [ 0, %5 ]
%17 = phi i32 [ %42, %40 ], [ 0, %5 ]
%18 = phi i32 [ %44, %40 ], [ 0, %5 ]
switch i8 %15, label %36 [
i8 59, label %50
i8 32, label %19
i8 10, label %19
i8 9, label %19
]
19: ; preds = %14, %14, %14
%20 = sext i32 %17 to i64
%21 = sext i32 %16 to i64
%22 = getelementptr inbounds [4 x [100 x i8]], [4 x [100 x i8]]* %6, i64 0, i64 %20, i64 %21
store i8 0, i8* %22
%23 = icmp ne i32 %18, 0
%24 = zext i1 %23 to i32
%25 = sext i32 %18 to i64
br label %26
26: ; preds = %30, %19
%27 = phi i64 [ %31, %30 ], [ %25, %19 ]
%28 = getelementptr inbounds i8, i8* %0, i64 %27
%29 = load i8, i8* %28
switch i8 %29, label %32 [
i8 32, label %30
i8 10, label %30
i8 9, label %30
]
30: ; preds = %26, %26, %26
%31 = add i64 %27, 1
br label %26
32: ; preds = %26
%33 = add nsw i32 %17, %24
%34 = trunc i64 %27 to i32
%35 = add nsw i32 %34, -1
br label %40
36: ; preds = %14
%37 = sext i32 %17 to i64
%38 = sext i32 %16 to i64
%39 = getelementptr inbounds [4 x [100 x i8]], [4 x [100 x i8]]* %6, i64 0, i64 %37, i64 %38
store i8 %15, i8* %39
br label %40
40: ; preds = %36, %32
%41 = phi i32 [ %35, %32 ], [ %18, %36 ]
%42 = phi i32 [ %33, %32 ], [ %17, %36 ]
%43 = phi i32 [ -1, %32 ], [ %16, %36 ]
%44 = add nsw i32 %41, 1
%45 = add nsw i32 %43, 1
%46 = sext i32 %44 to i64
%47 = getelementptr inbounds i8, i8* %0, i64 %46
%48 = load i8, i8* %47
%49 = icmp eq i8 %48, 0
br i1 %49, label %50, label %14
50: ; preds = %14, %40
%51 = phi i32 [ %42, %40 ], [ %17, %14 ]
switch i32 %51, label %73 [
i32 4, label %52
i32 3, label %60
i32 2, label %67
]
52: ; preds = %50
%53 = call i32 @strcpy(i8* %1, i8* %7)
%54 = getelementptr inbounds [4 x [100 x i8]], [4 x [100 x i8]]* %6, i64 0, i64 1, i64 0
%55 = call i32 @strcpy(i8* %2, i8* %54)
%56 = getelementptr inbounds [4 x [100 x i8]], [4 x [100 x i8]]* %6, i64 0, i64 2, i64 0
%57 = call i32 @strcpy(i8* %3, i8* %56)
%58 = getelementptr inbounds [4 x [100 x i8]], [4 x [100 x i8]]* %6, i64 0, i64 3, i64 0
%59 = call i32 @strcpy(i8* %4, i8* %58)
br label %73
60: ; preds = %50
%61 = call i32 @strcpy(i8* %1, i8* %7)
%62 = call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%63 = getelementptr inbounds [4 x [100 x i8]], [4 x [100 x i8]]* %6, i64 0, i64 1, i64 0
%64 = call i32 @strcpy(i8* %3, i8* %63)
%65 = getelementptr inbounds [4 x [100 x i8]], [4 x [100 x i8]]* %6, i64 0, i64 2, i64 0
%66 = call i32 @strcpy(i8* %4, i8* %65)
br label %73
67: ; preds = %50
%68 = call i32 @strcpy(i8* %1, i8* %7)
%69 = call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%70 = getelementptr inbounds [4 x [100 x i8]], [4 x [100 x i8]]* %6, i64 0, i64 1, i64 0
%71 = call i32 @strcpy(i8* %3, i8* %70)
%72 = call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
br label %73
73: ; preds = %5, %50, %60, %67, %52
%74 = phi i32 [ %51, %50 ], [ 3, %60 ], [ 2, %67 ], [ 4, %52 ], [ 0, %5 ]
%75 = add nsw i32 %74, -1
ret i32 %75
}