#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) {
  int i, j;
  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), 1709,
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/agarwal-shubham/ACNN/refs/heads/master/"
      "ACNN_patch_constructor/toolbox_graph/mex/gw/gw_toolkit/ply/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    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movl   $0xa,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
movslq -0x34(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
mov    $0x6ad,%esi
lea    0xe98(%rip),%rdx
call   1030 <my_alloc@plt>
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rdx
lea    0x2ed4(%rip),%rdi
mov    $0x1000,%esi
call   1040 <fgets@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%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,-0x40(%rbp)
lea    0x3e79(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    -0x40(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1264 <get_words+0x134>
mov    -0x40(%rbp),%rax
mov    (%rax),%cl
mov    -0x48(%rbp),%rax
mov    %cl,(%rax)
mov    -0x40(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
jne    121a <get_words+0xea>
mov    -0x40(%rbp),%rax
movb   $0x20,(%rax)
mov    -0x48(%rbp),%rax
movb   $0x20,(%rax)
jmp    1242 <get_words+0x112>
mov    -0x40(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
jne    123d <get_words+0x10d>
mov    -0x40(%rbp),%rax
movb   $0x20,(%rax)
mov    -0x48(%rbp),%rax
movb   $0x0,(%rax)
jmp    1264 <get_words+0x134>
jmp    1242 <get_words+0x112>
jmp    1247 <get_words+0x117>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    11db <get_words+0xab>
lea    0x2de5(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     13db <get_words+0x2ab>
jmp    1284 <get_words+0x154>
mov    -0x40(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
jne    12a5 <get_words+0x175>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    1284 <get_words+0x154>
mov    -0x40(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    12ba <get_words+0x18a>
jmp    13db <get_words+0x2ab>
mov    -0x38(%rbp),%eax
cmp    -0x34(%rbp),%eax
jl     12e6 <get_words+0x1b6>
mov    -0x34(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%rdi
movslq -0x34(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%esi
call   1050 <realloc@plt>
mov    %rax,-0x30(%rbp)
mov    -0x40(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x22,%eax
jne    1389 <get_words+0x259>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdx
mov    -0x30(%rbp),%rax
mov    -0x38(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x38(%rbp)
movslq %ecx,%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x22,%ecx
mov    %al,-0x51(%rbp)
je     1341 <get_words+0x211>
mov    -0x40(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x51(%rbp)
mov    -0x51(%rbp),%al
test   $0x1,%al
jne    1351 <get_words+0x221>
jmp    1362 <get_words+0x232>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    131c <get_words+0x1ec>
mov    -0x40(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1384 <get_words+0x254>
mov    -0x40(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x40(%rbp)
movb   $0x0,(%rax)
jmp    13d6 <get_words+0x2a6>
mov    -0x40(%rbp),%rdx
mov    -0x30(%rbp),%rax
mov    -0x38(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x38(%rbp)
movslq %ecx,%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     13c4 <get_words+0x294>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    13a3 <get_words+0x273>
mov    -0x40(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x40(%rbp)
movb   $0x0,(%rax)
jmp    126f <get_words+0x13f>
mov    -0x38(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x20(%rbp),%rax
lea    0x3c61(%rip),%rcx
mov    %rcx,(%rax)
mov    -0x30(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x60,%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    $0x6ad,%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 = [194 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/agarwal-shubham/ACNN/refs/heads/master/ACNN_patch_constructor/toolbox_graph/mex/gw/gw_toolkit/ply/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 i32
%9 = alloca i32
%10 = alloca i8**
%11 = alloca i32
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
store i32* %0, i32** %5
store i32* %1, i32** %6
store i8** %2, i8*** %7
store i32 10, i32* %11
store i32 0, i32* %12
%16 = load i32, i32* %11
%17 = sext i32 %16 to i64
%18 = mul i64 8, %17
%19 = trunc i64 %18 to i32
%20 = call i64 @my_alloc(i32 %19, i32 1709, i8* getelementptr inbounds ([194 x i8], [194 x i8]* @.str, i64 0, i64 0))
%21 = inttoptr i64 %20 to i8**
store i8** %21, i8*** %10
%22 = load i32*, i32** %5
%23 = call i8* @fgets(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str, i64 0, i64 0), i32 4096, i32* %22)
store i8* %23, i8** %15
%24 = load i8*, i8** %15
%25 = icmp eq i8* %24, null
br i1 %25, label %26, label %29
26: ; preds = %3
%27 = load i32*, i32** %6
store i32 0, i32* %27
%28 = load i8**, i8*** %7
store i8* null, i8** %28
store i8** null, i8*** %4
br label %158
29: ; 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** %13
store i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str_copy, i64 0, i64 0), i8** %14
br label %30
30: ; preds = %56, %29
%31 = load i8*, i8** %13
%32 = load i8, i8* %31
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %61
35: ; preds = %30
%36 = load i8*, i8** %13
%37 = load i8, i8* %36
%38 = load i8*, i8** %14
store i8 %37, i8* %38
%39 = load i8*, i8** %13
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 9
br i1 %42, label %43, label %46
43: ; preds = %35
%44 = load i8*, i8** %13
store i8 32, i8* %44
%45 = load i8*, i8** %14
store i8 32, i8* %45
br label %55
46: ; preds = %35
%47 = load i8*, i8** %13
%48 = load i8, i8* %47
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 10
br i1 %50, label %51, label %54
51: ; preds = %46
%52 = load i8*, i8** %13
store i8 32, i8* %52
%53 = load i8*, i8** %14
store i8 0, i8* %53
br label %61
54: ; preds = %46
br label %55
55: ; preds = %54, %43
br label %56
56: ; preds = %55
%57 = load i8*, i8** %13
%58 = getelementptr inbounds i8, i8* %57, i32 1
store i8* %58, i8** %13
%59 = load i8*, i8** %14
%60 = getelementptr inbounds i8, i8* %59, i32 1
store i8* %60, i8** %14
br label %30
61: ; preds = %51, %30
store i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str, i64 0, i64 0), i8** %13
br label %62
62: ; preds = %152, %61
%63 = load i8*, i8** %13
%64 = load i8, i8* %63
%65 = sext i8 %64 to i32
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %153
67: ; preds = %62
br label %68
68: ; preds = %73, %67
%69 = load i8*, i8** %13
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 32
br i1 %72, label %73, label %76
73: ; preds = %68
%74 = load i8*, i8** %13
%75 = getelementptr inbounds i8, i8* %74, i32 1
store i8* %75, i8** %13
br label %68
76: ; preds = %68
%77 = load i8*, i8** %13
%78 = load i8, i8* %77
%79 = sext i8 %78 to i32
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %82
81: ; preds = %76
br label %153
82: ; preds = %76
%83 = load i32, i32* %12
%84 = load i32, i32* %11
%85 = icmp sge i32 %83, %84
br i1 %85, label %86, label %96
86: ; preds = %82
%87 = load i32, i32* %11
%88 = add nsw i32 %87, 10
store i32 %88, i32* %11
%89 = load i8**, i8*** %10
%90 = load i32, i32* %11
%91 = sext i32 %90 to i64
%92 = mul i64 8, %91
%93 = trunc i64 %92 to i32
%94 = call i64 @realloc(i8** %89, i32 %93)
%95 = inttoptr i64 %94 to i8**
store i8** %95, i8*** %10
br label %96
96: ; preds = %86, %82
%97 = load i8*, i8** %13
%98 = load i8, i8* %97
%99 = sext i8 %98 to i32
%100 = icmp eq i32 %99, 34
br i1 %100, label %101, label %134
101: ; preds = %96
%102 = load i8*, i8** %13
%103 = getelementptr inbounds i8, i8* %102, i32 1
store i8* %103, i8** %13
%104 = load i8*, i8** %13
%105 = load i8**, i8*** %10
%106 = load i32, i32* %12
%107 = add nsw i32 %106, 1
store i32 %107, i32* %12
%108 = sext i32 %106 to i64
%109 = getelementptr inbounds i8*, i8** %105, i64 %108
store i8* %104, i8** %109
br label %110
110: ; preds = %122, %101
%111 = load i8*, i8** %13
%112 = load i8, i8* %111
%113 = sext i8 %112 to i32
%114 = icmp ne i32 %113, 34
br i1 %114, label %115, label %120
115: ; preds = %110
%116 = load i8*, i8** %13
%117 = load i8, i8* %116
%118 = sext i8 %117 to i32
%119 = icmp ne i32 %118, 0
br label %120
120: ; preds = %115, %110
%121 = phi i1 [ false, %110 ], [ %119, %115 ]
br i1 %121, label %122, label %125
122: ; preds = %120
%123 = load i8*, i8** %13
%124 = getelementptr inbounds i8, i8* %123, i32 1
store i8* %124, i8** %13
br label %110
125: ; preds = %120
%126 = load i8*, i8** %13
%127 = load i8, i8* %126
%128 = sext i8 %127 to i32
%129 = icmp ne i32 %128, 0
br i1 %129, label %130, label %133
130: ; preds = %125
%131 = load i8*, i8** %13
%132 = getelementptr inbounds i8, i8* %131, i32 1
store i8* %132, i8** %13
store i8 0, i8* %131
br label %133
133: ; preds = %130, %125
br label %152
134: ; preds = %96
%135 = load i8*, i8** %13
%136 = load i8**, i8*** %10
%137 = load i32, i32* %12
%138 = add nsw i32 %137, 1
store i32 %138, i32* %12
%139 = sext i32 %137 to i64
%140 = getelementptr inbounds i8*, i8** %136, i64 %139
store i8* %135, i8** %140
br label %141
141: ; preds = %146, %134
%142 = load i8*, i8** %13
%143 = load i8, i8* %142
%144 = sext i8 %143 to i32
%145 = icmp ne i32 %144, 32
br i1 %145, label %146, label %149
146: ; preds = %141
%147 = load i8*, i8** %13
%148 = getelementptr inbounds i8, i8* %147, i32 1
store i8* %148, i8** %13
br label %141
149: ; preds = %141
%150 = load i8*, i8** %13
%151 = getelementptr inbounds i8, i8* %150, i32 1
store i8* %151, i8** %13
store i8 0, i8* %150
br label %152
152: ; preds = %149, %133
br label %62
153: ; preds = %81, %62
%154 = load i32, i32* %12
%155 = load i32*, i32** %6
store i32 %154, i32* %155
%156 = load i8**, i8*** %7
store i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str_copy, i64 0, i64 0), i8** %156
%157 = load i8**, i8*** %10
store i8** %157, i8*** %4
br label %158
158: ; preds = %153, %26
%159 = load i8**, i8*** %4
ret i8** %159
}

LLVM IR (-O2):
@get_words.str = internal global [4096 x i8] zeroinitializer
@get_words.str_copy = internal global [4096 x i8] zeroinitializer
@.str = [194 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/agarwal-shubham/ACNN/refs/heads/master/ACNN_patch_constructor/toolbox_graph/mex/gw/gw_toolkit/ply/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 1709, i8* getelementptr inbounds ([194 x i8], [194 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
}