#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 */
char *fgets(char *, int, int /*<<< orphan*/ *);
scalar_t__ my_alloc(int, int, char *);
scalar_t__ realloc(char **, int);
char **get_words(FILE *fp, int *nwords, char **orig_line) {
  static char str[4096];
  static char str_copy[4096];
  char **words;
  int max_words = 10;
  int num_words = 0;
  char *ptr, *ptr2;
  char *result;
  words =
      (char **)my_alloc((sizeof(char *) * max_words), 1989,
                        "/scratch/repos/new/home/jordi_armengol_estape/"
                        "c-scraper/outputs/2022-01-22/02-19-57/repos/sglab/"
                        "OpenIRT/refs/heads/master/Builder/Builder/src/ply.c");
  result = fgets(str, 4096, fp);
  if (result == NULL) {
    *nwords = 0;
    *orig_line = NULL;
    return (NULL);
  }
  str[4096 - 2] = ' ';
  str[4096 - 1] = '\0';
  for (ptr = str, ptr2 = str_copy; *ptr != '\0'; ptr++, ptr2++) {
    *ptr2 = *ptr;
    if (*ptr == '\t') {
      *ptr = ' ';
      *ptr2 = ' ';
    } else if (*ptr == '\n') {
      *ptr = ' ';
      *ptr2 = '\0';
      break;
    }
  }
  ptr = str;
  while (*ptr != '\0') {
    while (*ptr == ' ')
      ptr++;
    if (*ptr == '\0')
      break;
    if (num_words >= max_words) {
      max_words += 10;
      words = (char **)realloc(words, sizeof(char *) * max_words);
    }
    if (*ptr == '\"') {
      ptr++;
      words[num_words++] = ptr;
      while (*ptr != '\"' && *ptr != '\0')
        ptr++;
      if (*ptr != '\0')
        *ptr++ = '\0';
    } else {
      words[num_words++] = ptr;
      while (*ptr != ' ')
        ptr++;
      *ptr++ = '\0';
    }
  }
  *nwords = num_words;
  *orig_line = str_copy;
  return (words);
}


x86 assembly (clang, -O0):
<get_words>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movl   $0xa,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movslq -0x2c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
mov    $0x7c5,%esi
lea    0xe98(%rip),%rdx
call   1030 <my_alloc@plt>
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rdx
lea    0x2ed4(%rip),%rdi
mov    $0x1000,%esi
call   1040 <fgets@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
jne    11b7 <get_words+0x87>
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x20(%rbp),%rax
movq   $0x0,(%rax)
movq   $0x0,-0x8(%rbp)
jmp    13fa <get_words+0x2ca>
movb   $0x20,0x3e90(%rip)
movb   $0x0,0x3e8a(%rip)
lea    0x2e84(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0x3e79(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1264 <get_words+0x134>
mov    -0x38(%rbp),%rax
mov    (%rax),%cl
mov    -0x40(%rbp),%rax
mov    %cl,(%rax)
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
jne    121a <get_words+0xea>
mov    -0x38(%rbp),%rax
movb   $0x20,(%rax)
mov    -0x40(%rbp),%rax
movb   $0x20,(%rax)
jmp    1242 <get_words+0x112>
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
jne    123d <get_words+0x10d>
mov    -0x38(%rbp),%rax
movb   $0x20,(%rax)
mov    -0x40(%rbp),%rax
movb   $0x0,(%rax)
jmp    1264 <get_words+0x134>
jmp    1242 <get_words+0x112>
jmp    1247 <get_words+0x117>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    11db <get_words+0xab>
lea    0x2de5(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     13db <get_words+0x2ab>
jmp    1284 <get_words+0x154>
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
jne    12a5 <get_words+0x175>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    1284 <get_words+0x154>
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    12ba <get_words+0x18a>
jmp    13db <get_words+0x2ab>
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jl     12e6 <get_words+0x1b6>
mov    -0x2c(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%rdi
movslq -0x2c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%esi
call   1050 <realloc@plt>
mov    %rax,-0x28(%rbp)
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x22,%eax
jne    1389 <get_words+0x259>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdx
mov    -0x28(%rbp),%rax
mov    -0x30(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x30(%rbp)
movslq %ecx,%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x22,%ecx
mov    %al,-0x49(%rbp)
je     1341 <get_words+0x211>
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x49(%rbp)
mov    -0x49(%rbp),%al
test   $0x1,%al
jne    1351 <get_words+0x221>
jmp    1362 <get_words+0x232>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    131c <get_words+0x1ec>
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1384 <get_words+0x254>
mov    -0x38(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x38(%rbp)
movb   $0x0,(%rax)
jmp    13d6 <get_words+0x2a6>
mov    -0x38(%rbp),%rdx
mov    -0x28(%rbp),%rax
mov    -0x30(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x30(%rbp)
movslq %ecx,%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     13c4 <get_words+0x294>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    13a3 <get_words+0x273>
mov    -0x38(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x38(%rbp)
movb   $0x0,(%rax)
jmp    126f <get_words+0x13f>
mov    -0x30(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x20(%rbp),%rax
lea    0x3c61(%rip),%rcx
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_words>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdx,%r15
mov    %rsi,%rbx
mov    %rdi,%r13
lea    0xeb2(%rip),%rdx
mov    $0x50,%edi
mov    $0x7c5,%esi
call   1030 <my_alloc@plt>
mov    %rax,%r12
lea    0x2ee9(%rip),%r14
mov    %r14,%rdi
mov    $0x1000,%esi
mov    %r13,%rdx
call   1040 <fgets@plt>
xor    %ebp,%ebp
test   %rax,%rax
je     12b8 <get_words+0x188>
movw   $0x20,0x3ec3(%rip)
mov    0x2ebf(%rip),%cl
test   %cl,%cl
je     12c0 <get_words+0x190>
xor    %eax,%eax
lea    0x3eae(%rip),%r13
jmp    11c8 <get_words+0x98>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movb   $0x20,(%rax,%r14,1)
movb   $0x20,(%rax,%r13,1)
movzbl 0x1(%rax,%r14,1),%ecx
add    $0x1,%rax
test   %cl,%cl
je     11e0 <get_words+0xb0>
mov    %cl,(%rax,%r13,1)
cmp    $0x9,%cl
je     11b0 <get_words+0x80>
cmp    $0xa,%cl
jne    11ba <get_words+0x8a>
movb   $0x20,(%rax,%r14,1)
movb   $0x0,(%rax,%r13,1)
mov    0x2e6a(%rip),%cl
test   %cl,%cl
je     12c9 <get_words+0x199>
mov    %rbx,0x8(%rsp)
mov    $0xa,%eax
xor    %ebp,%ebp
add    $0x1,%r14
mov    %r14,%rbx
cmp    $0x20,%cl
jne    121c <get_words+0xec>
cs nopw 0x0(%rax,%rax,1)
movzbl (%rbx),%ecx
add    $0x1,%rbx
cmp    $0x20,%cl
je     1210 <get_words+0xe0>
test   %cl,%cl
je     12d1 <get_words+0x1a1>
movslq %eax,%rdx
lea    -0x1(%rbx),%r14
cmp    %rdx,%rbp
jl     1259 <get_words+0x129>
mov    %r15,0x10(%rsp)
mov    %eax,%r15d
add    $0xa,%r15d
lea    0x50(,%rax,8),%esi
mov    %r12,%rdi
call   1050 <realloc@plt>
mov    %rax,%r12
mov    (%r14),%cl
mov    %r15d,%eax
mov    0x10(%rsp),%r15
cmp    $0x22,%cl
jne    1282 <get_words+0x152>
mov    %rbx,(%r12,%rbp,8)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl (%rbx),%ecx
cmp    $0x22,%cl
je     12a0 <get_words+0x170>
test   %cl,%cl
je     12cd <get_words+0x19d>
add    $0x1,%rbx
jmp    1270 <get_words+0x140>
mov    %r14,(%r12,%rbp,8)
cs nopw 0x0(%rax,%rax,1)
cmpb   $0x20,(%r14)
lea    0x1(%r14),%r14
jne    1290 <get_words+0x160>
lea    -0x1(%r14),%rbx
jmp    12a4 <get_words+0x174>
lea    0x1(%rbx),%r14
movb   $0x0,(%rbx)
mov    (%r14),%cl
add    $0x1,%rbp
test   %cl,%cl
jne    11fa <get_words+0xca>
jmp    12d1 <get_words+0x1a1>
xor    %r13d,%r13d
xor    %r12d,%r12d
jmp    12d6 <get_words+0x1a6>
lea    0x3d89(%rip),%r13
jmp    12d6 <get_words+0x1a6>
xor    %ebp,%ebp
jmp    12d6 <get_words+0x1a6>
add    $0x1,%rbp
mov    0x8(%rsp),%rbx
mov    %ebp,(%rbx)
mov    %r13,(%r15)
mov    %r12,%rax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@get_words.str = internal global [4096 x i8] zeroinitializer
@get_words.str_copy = internal global [4096 x i8] zeroinitializer
@.str = [148 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sglab/OpenIRT/refs/heads/master/Builder/Builder/src/ply.c\00"
define i8** @get_words(i32* %0, i32* %1, i8** %2) {
%4 = alloca i8**
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i8**
%8 = alloca i8**
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
store i32* %0, i32** %5
store i32* %1, i32** %6
store i8** %2, i8*** %7
store i32 10, i32* %9
store i32 0, i32* %10
%14 = load i32, i32* %9
%15 = sext i32 %14 to i64
%16 = mul i64 8, %15
%17 = trunc i64 %16 to i32
%18 = call i64 @my_alloc(i32 %17, i32 1989, i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str, i64 0, i64 0))
%19 = inttoptr i64 %18 to i8**
store i8** %19, i8*** %8
%20 = load i32*, i32** %5
%21 = call i8* @fgets(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str, i64 0, i64 0), i32 4096, i32* %20)
store i8* %21, i8** %13
%22 = load i8*, i8** %13
%23 = icmp eq i8* %22, null
br i1 %23, label %24, label %27
24: ; preds = %3
%25 = load i32*, i32** %6
store i32 0, i32* %25
%26 = load i8**, i8*** %7
store i8* null, i8** %26
store i8** null, i8*** %4
br label %156
27: ; preds = %3
store i8 32, i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str, i64 0, i64 4094)
store i8 0, i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str, i64 0, i64 4095)
store i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str, i64 0, i64 0), i8** %11
store i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str_copy, i64 0, i64 0), i8** %12
br label %28
28: ; preds = %54, %27
%29 = load i8*, i8** %11
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %59
33: ; preds = %28
%34 = load i8*, i8** %11
%35 = load i8, i8* %34
%36 = load i8*, i8** %12
store i8 %35, i8* %36
%37 = load i8*, i8** %11
%38 = load i8, i8* %37
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 9
br i1 %40, label %41, label %44
41: ; preds = %33
%42 = load i8*, i8** %11
store i8 32, i8* %42
%43 = load i8*, i8** %12
store i8 32, i8* %43
br label %53
44: ; preds = %33
%45 = load i8*, i8** %11
%46 = load i8, i8* %45
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 10
br i1 %48, label %49, label %52
49: ; preds = %44
%50 = load i8*, i8** %11
store i8 32, i8* %50
%51 = load i8*, i8** %12
store i8 0, i8* %51
br label %59
52: ; preds = %44
br label %53
53: ; preds = %52, %41
br label %54
54: ; preds = %53
%55 = load i8*, i8** %11
%56 = getelementptr inbounds i8, i8* %55, i32 1
store i8* %56, i8** %11
%57 = load i8*, i8** %12
%58 = getelementptr inbounds i8, i8* %57, i32 1
store i8* %58, i8** %12
br label %28
59: ; preds = %49, %28
store i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str, i64 0, i64 0), i8** %11
br label %60
60: ; preds = %150, %59
%61 = load i8*, i8** %11
%62 = load i8, i8* %61
%63 = sext i8 %62 to i32
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %151
65: ; preds = %60
br label %66
66: ; preds = %71, %65
%67 = load i8*, i8** %11
%68 = load i8, i8* %67
%69 = sext i8 %68 to i32
%70 = icmp eq i32 %69, 32
br i1 %70, label %71, label %74
71: ; preds = %66
%72 = load i8*, i8** %11
%73 = getelementptr inbounds i8, i8* %72, i32 1
store i8* %73, i8** %11
br label %66
74: ; preds = %66
%75 = load i8*, i8** %11
%76 = load i8, i8* %75
%77 = sext i8 %76 to i32
%78 = icmp eq i32 %77, 0
br i1 %78, label %79, label %80
79: ; preds = %74
br label %151
80: ; preds = %74
%81 = load i32, i32* %10
%82 = load i32, i32* %9
%83 = icmp sge i32 %81, %82
br i1 %83, label %84, label %94
84: ; preds = %80
%85 = load i32, i32* %9
%86 = add nsw i32 %85, 10
store i32 %86, i32* %9
%87 = load i8**, i8*** %8
%88 = load i32, i32* %9
%89 = sext i32 %88 to i64
%90 = mul i64 8, %89
%91 = trunc i64 %90 to i32
%92 = call i64 @realloc(i8** %87, i32 %91)
%93 = inttoptr i64 %92 to i8**
store i8** %93, i8*** %8
br label %94
94: ; preds = %84, %80
%95 = load i8*, i8** %11
%96 = load i8, i8* %95
%97 = sext i8 %96 to i32
%98 = icmp eq i32 %97, 34
br i1 %98, label %99, label %132
99: ; preds = %94
%100 = load i8*, i8** %11
%101 = getelementptr inbounds i8, i8* %100, i32 1
store i8* %101, i8** %11
%102 = load i8*, i8** %11
%103 = load i8**, i8*** %8
%104 = load i32, i32* %10
%105 = add nsw i32 %104, 1
store i32 %105, i32* %10
%106 = sext i32 %104 to i64
%107 = getelementptr inbounds i8*, i8** %103, i64 %106
store i8* %102, i8** %107
br label %108
108: ; preds = %120, %99
%109 = load i8*, i8** %11
%110 = load i8, i8* %109
%111 = sext i8 %110 to i32
%112 = icmp ne i32 %111, 34
br i1 %112, label %113, label %118
113: ; preds = %108
%114 = load i8*, i8** %11
%115 = load i8, i8* %114
%116 = sext i8 %115 to i32
%117 = icmp ne i32 %116, 0
br label %118
118: ; preds = %113, %108
%119 = phi i1 [ false, %108 ], [ %117, %113 ]
br i1 %119, label %120, label %123
120: ; preds = %118
%121 = load i8*, i8** %11
%122 = getelementptr inbounds i8, i8* %121, i32 1
store i8* %122, i8** %11
br label %108
123: ; preds = %118
%124 = load i8*, i8** %11
%125 = load i8, i8* %124
%126 = sext i8 %125 to i32
%127 = icmp ne i32 %126, 0
br i1 %127, label %128, label %131
128: ; preds = %123
%129 = load i8*, i8** %11
%130 = getelementptr inbounds i8, i8* %129, i32 1
store i8* %130, i8** %11
store i8 0, i8* %129
br label %131
131: ; preds = %128, %123
br label %150
132: ; preds = %94
%133 = load i8*, i8** %11
%134 = load i8**, i8*** %8
%135 = load i32, i32* %10
%136 = add nsw i32 %135, 1
store i32 %136, i32* %10
%137 = sext i32 %135 to i64
%138 = getelementptr inbounds i8*, i8** %134, i64 %137
store i8* %133, i8** %138
br label %139
139: ; preds = %144, %132
%140 = load i8*, i8** %11
%141 = load i8, i8* %140
%142 = sext i8 %141 to i32
%143 = icmp ne i32 %142, 32
br i1 %143, label %144, label %147
144: ; preds = %139
%145 = load i8*, i8** %11
%146 = getelementptr inbounds i8, i8* %145, i32 1
store i8* %146, i8** %11
br label %139
147: ; preds = %139
%148 = load i8*, i8** %11
%149 = getelementptr inbounds i8, i8* %148, i32 1
store i8* %149, i8** %11
store i8 0, i8* %148
br label %150
150: ; preds = %147, %131
br label %60
151: ; preds = %79, %60
%152 = load i32, i32* %10
%153 = load i32*, i32** %6
store i32 %152, i32* %153
%154 = load i8**, i8*** %7
store i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str_copy, i64 0, i64 0), i8** %154
%155 = load i8**, i8*** %8
store i8** %155, i8*** %4
br label %156
156: ; preds = %151, %24
%157 = load i8**, i8*** %4
ret i8** %157
}

LLVM IR (-O2):
@get_words.str = internal global [4096 x i8] zeroinitializer
@get_words.str_copy = internal global [4096 x i8] zeroinitializer
@.str = [148 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sglab/OpenIRT/refs/heads/master/Builder/Builder/src/ply.c\00"
define i8** @get_words(i32* nocapture %0, i32* nocapture writeonly %1, i8** nocapture writeonly %2) {
%4 = tail call i64 @my_alloc(i32 80, i32 1989, i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str, i64 0, i64 0))
%5 = inttoptr i64 %4 to i8**
%6 = tail call i8* @fgets(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str, i64 0, i64 0), i32 4096, i32* %0)
%7 = icmp eq i8* %6, null
br i1 %7, label %81, label %8
8: ; preds = %3
store i8 32, i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str, i64 0, i64 4094)
store i8 0, i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str, i64 0, i64 4095)
%9 = load i8, i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str, i64 0, i64 0)
%10 = icmp eq i8 %9, 0
br i1 %10, label %81, label %11
11: ; preds = %8, %17
%12 = phi i8 [ %20, %17 ], [ %9, %8 ]
%13 = phi i8* [ %19, %17 ], [ getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str_copy, i64 0, i64 0), %8 ]
%14 = phi i8* [ %18, %17 ], [ getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str, i64 0, i64 0), %8 ]
store i8 %12, i8* %13
switch i8 %12, label %17 [
i8 9, label %15
i8 10, label %16
]
15: ; preds = %11
store i8 32, i8* %14
store i8 32, i8* %13
br label %17
16: ; preds = %11
store i8 32, i8* %14
store i8 0, i8* %13
br label %22
17: ; preds = %11, %15
%18 = getelementptr inbounds i8, i8* %14, i64 1
%19 = getelementptr inbounds i8, i8* %13, i64 1
%20 = load i8, i8* %18
%21 = icmp eq i8 %20, 0
br i1 %21, label %22, label %11
22: ; preds = %17, %16
%23 = load i8, i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str, i64 0, i64 0)
%24 = icmp eq i8 %23, 0
br i1 %24, label %81, label %25
25: ; preds = %22, %70
%26 = phi i64 [ %74, %70 ], [ 0, %22 ]
%27 = phi i8 [ %73, %70 ], [ %23, %22 ]
%28 = phi i8* [ %72, %70 ], [ getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str, i64 0, i64 0), %22 ]
%29 = phi i32 [ %49, %70 ], [ 10, %22 ]
%30 = phi i8** [ %48, %70 ], [ %5, %22 ]
br label %31
31: ; preds = %25, %34
%32 = phi i8 [ %36, %34 ], [ %27, %25 ]
%33 = phi i8* [ %35, %34 ], [ %28, %25 ]
switch i8 %32, label %37 [
i8 32, label %34
i8 0, label %76
]
34: ; preds = %31
%35 = getelementptr inbounds i8, i8* %33, i64 1
%36 = load i8, i8* %35
br label %31
37: ; preds = %31
%38 = sext i32 %29 to i64
%39 = icmp slt i64 %26, %38
br i1 %39, label %46, label %40
40: ; preds = %37
%41 = add nsw i32 %29, 10
%42 = shl i32 %41, 3
%43 = tail call i64 @realloc(i8** %30, i32 %42)
%44 = inttoptr i64 %43 to i8**
%45 = load i8, i8* %33
br label %46
46: ; preds = %40, %37
%47 = phi i8 [ %45, %40 ], [ %32, %37 ]
%48 = phi i8** [ %44, %40 ], [ %30, %37 ]
%49 = phi i32 [ %41, %40 ], [ %29, %37 ]
%50 = icmp eq i8 %47, 34
br i1 %50, label %51, label %63
51: ; preds = %46
%52 = getelementptr inbounds i8, i8* %33, i64 1
%53 = getelementptr inbounds i8*, i8** %48, i64 %26
store i8* %52, i8** %53
br label %54
54: ; preds = %59, %51
%55 = phi i8* [ %52, %51 ], [ %60, %59 ]
%56 = load i8, i8* %55
switch i8 %56, label %59 [
i8 0, label %57
i8 34, label %61
]
57: ; preds = %54
%58 = add nuw i64 %26, 1
br label %78
59: ; preds = %54
%60 = getelementptr inbounds i8, i8* %55, i64 1
br label %54
61: ; preds = %54
%62 = getelementptr inbounds i8, i8* %55, i64 1
br label %70
63: ; preds = %46
%64 = getelementptr inbounds i8*, i8** %48, i64 %26
store i8* %33, i8** %64
br label %65
65: ; preds = %65, %63
%66 = phi i8* [ %33, %63 ], [ %69, %65 ]
%67 = load i8, i8* %66
%68 = icmp eq i8 %67, 32
%69 = getelementptr inbounds i8, i8* %66, i64 1
br i1 %68, label %70, label %65
70: ; preds = %65, %61
%71 = phi i8* [ %55, %61 ], [ %66, %65 ]
%72 = phi i8* [ %62, %61 ], [ %69, %65 ]
store i8 0, i8* %71
%73 = load i8, i8* %72
%74 = add nuw i64 %26, 1
%75 = icmp eq i8 %73, 0
br i1 %75, label %78, label %25
76: ; preds = %31
%77 = trunc i64 %26 to i32
br label %81
78: ; preds = %70, %57
%79 = phi i64 [ %58, %57 ], [ %74, %70 ]
%80 = trunc i64 %79 to i32
br label %81
81: ; preds = %8, %78, %76, %22, %3
%82 = phi i32 [ 0, %3 ], [ 0, %22 ], [ %77, %76 ], [ %80, %78 ], [ 0, %8 ]
%83 = phi i8* [ null, %3 ], [ getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str_copy, i64 0, i64 0), %22 ], [ getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str_copy, i64 0, i64 0), %76 ], [ getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str_copy, i64 0, i64 0), %78 ], [ getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str_copy, i64 0, i64 0), %8 ]
%84 = phi i8** [ null, %3 ], [ %5, %22 ], [ %30, %76 ], [ %48, %78 ], [ %5, %8 ]
store i32 %82, i32* %1
store i8* %83, i8** %2
ret i8** %84
}