#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*/ fpos_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ SEEK_CUR;
int /*<<< orphan*/ fgetpos(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
char *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fsetpos(int /*<<< orphan*/ *, 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;
  fpos_t pos;
  int nbytes;
  int nonUNIX;
  nonUNIX = 0;
  nbytes = 0;
  fgetpos(fp, &pos);
  words = (char **)my_alloc((sizeof(char *) * max_words), 1934,
                            "/scratch/repos/new/home/jordi_armengol_estape/"
                            "c-scraper/outputs/2022-01-22/02-19-57/repos/vilya/"
                            "OBJViewer/refs/heads/master/thirdparty/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;
    nbytes++;
    if (*ptr == '\t') {
      *ptr = ' ';
      *ptr2 = ' ';
    } else if (*ptr == '\n') {
      *ptr = ' ';
      *ptr2 = '\0';
      break;
    } else if (*ptr == '\r') {
      nonUNIX = 1;
      if (*(ptr + 1) == '\n') {
        nbytes++;
      }
      *ptr = ' ';
      *(ptr + 1) = '\0';
      *ptr2 = '\0';
      break;
    }
  }
  if (nonUNIX == 1) {
    fsetpos(fp, &pos);
    fseek(fp, nbytes, SEEK_CUR);
  }
  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);
    }
    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,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x54(%rbp)
movl   $0x0,-0x50(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x4c(%rbp),%rsi
call   1040 <fgetpos@plt>
movslq -0x2c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
mov    $0x78e,%esi
lea    0xe4d(%rip),%rdx
call   1030 <my_alloc@plt>
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rdx
lea    0x2e99(%rip),%rdi
mov    $0x1000,%esi
call   1050 <fgets@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
jne    1202 <get_words+0xa2>
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x20(%rbp),%rax
movq   $0x0,(%rax)
movq   $0x0,-0x8(%rbp)
jmp    1428 <get_words+0x2c8>
movb   $0x20,0x3e55(%rip)
movb   $0x0,0x3e4f(%rip)
lea    0x2e49(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0x3e3e(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1309 <get_words+0x1a9>
mov    -0x38(%rbp),%rax
mov    (%rax),%cl
mov    -0x40(%rbp),%rax
mov    %cl,(%rax)
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
jne    126e <get_words+0x10e>
mov    -0x38(%rbp),%rax
movb   $0x20,(%rax)
mov    -0x40(%rbp),%rax
movb   $0x20,(%rax)
jmp    12e7 <get_words+0x187>
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
jne    1291 <get_words+0x131>
mov    -0x38(%rbp),%rax
movb   $0x20,(%rax)
mov    -0x40(%rbp),%rax
movb   $0x0,(%rax)
jmp    1309 <get_words+0x1a9>
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xd,%eax
jne    12dd <get_words+0x17d>
movl   $0x1,-0x54(%rbp)
mov    -0x38(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0xa,%eax
jne    12c2 <get_words+0x162>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
mov    -0x38(%rbp),%rax
movb   $0x20,(%rax)
mov    -0x38(%rbp),%rax
movb   $0x0,0x1(%rax)
mov    -0x40(%rbp),%rax
movb   $0x0,(%rax)
jmp    1309 <get_words+0x1a9>
jmp    12e2 <get_words+0x182>
jmp    12e7 <get_words+0x187>
jmp    12ec <get_words+0x18c>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    1226 <get_words+0xc6>
cmpl   $0x1,-0x54(%rbp)
jne    1335 <get_words+0x1d5>
mov    -0x10(%rbp),%rdi
lea    -0x4c(%rbp),%rsi
call   1080 <fsetpos@plt>
mov    -0x10(%rbp),%rdi
mov    -0x50(%rbp),%esi
mov    0x2cba(%rip),%rax
mov    (%rax),%edx
call   1060 <fseek@plt>
lea    0x2d24(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1409 <get_words+0x2a9>
jmp    1355 <get_words+0x1f5>
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
jne    1376 <get_words+0x216>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    1355 <get_words+0x1f5>
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    138b <get_words+0x22b>
jmp    1409 <get_words+0x2a9>
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jl     13b7 <get_words+0x257>
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   1070 <realloc@plt>
mov    %rax,-0x28(%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),%eax
cmp    $0x20,%eax
je     13f2 <get_words+0x292>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    13d1 <get_words+0x271>
mov    -0x38(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x38(%rbp)
movb   $0x0,(%rax)
jmp    1340 <get_words+0x1e0>
mov    -0x30(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x20(%rbp),%rax
lea    0x3c43(%rip),%rcx
mov    %rcx,(%rax)
mov    -0x28(%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,0x8(%rsp)
mov    %rdi,%r13
lea    0x14(%rsp),%rsi
call   1040 <fgetpos@plt>
lea    0xe76(%rip),%rdx
mov    $0x50,%edi
mov    $0x78e,%esi
call   1030 <my_alloc@plt>
mov    %rax,%r12
lea    0x2ebd(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1000,%esi
mov    %r13,%rdx
call   1050 <fgets@plt>
xor    %r14d,%r14d
test   %rax,%rax
je     1246 <get_words+0xe6>
movw   $0x20,0x3e96(%rip)
mov    0x2e92(%rip),%cl
test   %cl,%cl
je     1250 <get_words+0xf0>
xor    %eax,%eax
lea    0x3e85(%rip),%rbp
jmp    11f5 <get_words+0x95>
nopl   (%rax)
movb   $0x20,(%rax,%rbx,1)
movb   $0x20,(%rax,%rbp,1)
movzbl 0x1(%rax,%rbx,1),%ecx
add    $0x1,%rax
test   %cl,%cl
je     1264 <get_words+0x104>
mov    %cl,(%rax,%rbp,1)
cmp    $0x9,%cl
je     11e0 <get_words+0x80>
cmp    $0xa,%cl
je     125c <get_words+0xfc>
cmp    $0xd,%cl
jne    11e8 <get_words+0x88>
xor    %ecx,%ecx
cmpb   $0xa,0x1(%rax,%rbx,1)
sete   %cl
lea    (%rcx,%rax,1),%r14d
add    $0x1,%r14d
movw   $0x20,(%rax,%rbx,1)
movb   $0x0,(%rax,%rbp,1)
lea    0x14(%rsp),%rsi
mov    %r13,%rdi
call   1080 <fsetpos@plt>
mov    0x2db1(%rip),%rax
mov    (%rax),%edx
mov    %r13,%rdi
mov    %r14d,%esi
call   1060 <fseek@plt>
jmp    1264 <get_words+0x104>
xor    %ebp,%ebp
xor    %r12d,%r12d
jmp    12dc <get_words+0x17c>
lea    0x3e09(%rip),%rbp
jmp    12dc <get_words+0x17c>
movb   $0x20,(%rax,%rbx,1)
movb   $0x0,(%rax,%rbp,1)
mov    0x2df6(%rip),%cl
test   %cl,%cl
je     12d9 <get_words+0x179>
mov    $0xa,%eax
xor    %r14d,%r14d
jmp    1287 <get_words+0x127>
nopl   0x0(%rax,%rax,1)
mov    0x1(%rbx),%cl
add    $0x1,%rbx
cmp    $0x20,%cl
je     1280 <get_words+0x120>
test   %cl,%cl
je     12dc <get_words+0x17c>
movslq %eax,%rcx
cmp    %rcx,%r14
jl     12b4 <get_words+0x154>
mov    %eax,%r13d
add    $0xa,%r13d
lea    0x50(,%rax,8),%esi
mov    %r12,%rdi
call   1070 <realloc@plt>
mov    %rax,%r12
mov    %r13d,%eax
mov    %rbx,(%r12,%r14,8)
nopl   0x0(%rax,%rax,1)
cmpb   $0x20,(%rbx)
lea    0x1(%rbx),%rbx
jne    12c0 <get_words+0x160>
add    $0x1,%r14
movb   $0x0,-0x1(%rbx)
mov    (%rbx),%cl
test   %cl,%cl
jne    1287 <get_words+0x127>
jmp    12dc <get_words+0x17c>
xor    %r14d,%r14d
mov    0x8(%rsp),%rax
mov    %r14d,(%rax)
mov    %rbp,(%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 = [141 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/vilya/OBJViewer/refs/heads/master/thirdparty/ply.c\00"
@SEEK_CUR = global i32 0
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*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
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
store i32 0, i32* %16
store i32 0, i32* %15
%17 = load i32*, i32** %5
%18 = call i32 @fgetpos(i32* %17, i32* %14)
%19 = load i32, i32* %9
%20 = sext i32 %19 to i64
%21 = mul i64 8, %20
%22 = trunc i64 %21 to i32
%23 = call i64 @my_alloc(i32 %22, i32 1934, i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str, i64 0, i64 0))
%24 = inttoptr i64 %23 to i8**
store i8** %24, i8*** %8
%25 = load i32*, i32** %5
%26 = call i8* @fgets(i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str, i64 0, i64 0), i32 4096, i32* %25)
store i8* %26, i8** %13
%27 = load i8*, i8** %13
%28 = icmp eq i8* %27, null
br i1 %28, label %29, label %32
29: ; preds = %3
%30 = load i32*, i32** %6
store i32 0, i32* %30
%31 = load i8**, i8*** %7
store i8* null, i8** %31
store i8** null, i8*** %4
br label %154
32: ; 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 %33
33: ; preds = %81, %32
%34 = load i8*, i8** %11
%35 = load i8, i8* %34
%36 = sext i8 %35 to i32
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %86
38: ; preds = %33
%39 = load i8*, i8** %11
%40 = load i8, i8* %39
%41 = load i8*, i8** %12
store i8 %40, i8* %41
%42 = load i32, i32* %15
%43 = add nsw i32 %42, 1
store i32 %43, i32* %15
%44 = load i8*, i8** %11
%45 = load i8, i8* %44
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 9
br i1 %47, label %48, label %51
48: ; preds = %38
%49 = load i8*, i8** %11
store i8 32, i8* %49
%50 = load i8*, i8** %12
store i8 32, i8* %50
br label %80
51: ; preds = %38
%52 = load i8*, i8** %11
%53 = load i8, i8* %52
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 10
br i1 %55, label %56, label %59
56: ; preds = %51
%57 = load i8*, i8** %11
store i8 32, i8* %57
%58 = load i8*, i8** %12
store i8 0, i8* %58
br label %86
59: ; preds = %51
%60 = load i8*, i8** %11
%61 = load i8, i8* %60
%62 = sext i8 %61 to i32
%63 = icmp eq i32 %62, 13
br i1 %63, label %64, label %78
64: ; preds = %59
store i32 1, i32* %16
%65 = load i8*, i8** %11
%66 = getelementptr inbounds i8, i8* %65, i64 1
%67 = load i8, i8* %66
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 10
br i1 %69, label %70, label %73
70: ; preds = %64
%71 = load i32, i32* %15
%72 = add nsw i32 %71, 1
store i32 %72, i32* %15
br label %73
73: ; preds = %70, %64
%74 = load i8*, i8** %11
store i8 32, i8* %74
%75 = load i8*, i8** %11
%76 = getelementptr inbounds i8, i8* %75, i64 1
store i8 0, i8* %76
%77 = load i8*, i8** %12
store i8 0, i8* %77
br label %86
78: ; preds = %59
br label %79
79: ; preds = %78
br label %80
80: ; preds = %79, %48
br label %81
81: ; preds = %80
%82 = load i8*, i8** %11
%83 = getelementptr inbounds i8, i8* %82, i32 1
store i8* %83, i8** %11
%84 = load i8*, i8** %12
%85 = getelementptr inbounds i8, i8* %84, i32 1
store i8* %85, i8** %12
br label %33
86: ; preds = %73, %56, %33
%87 = load i32, i32* %16
%88 = icmp eq i32 %87, 1
br i1 %88, label %89, label %96
89: ; preds = %86
%90 = load i32*, i32** %5
%91 = call i32 @fsetpos(i32* %90, i32* %14)
%92 = load i32*, i32** %5
%93 = load i32, i32* %15
%94 = load i32, i32* @SEEK_CUR
%95 = call i32 @fseek(i32* %92, i32 %93, i32 %94)
br label %96
96: ; preds = %89, %86
store i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str, i64 0, i64 0), i8** %11
br label %97
97: ; preds = %146, %96
%98 = load i8*, i8** %11
%99 = load i8, i8* %98
%100 = sext i8 %99 to i32
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %149
102: ; preds = %97
br label %103
103: ; preds = %108, %102
%104 = load i8*, i8** %11
%105 = load i8, i8* %104
%106 = sext i8 %105 to i32
%107 = icmp eq i32 %106, 32
br i1 %107, label %108, label %111
108: ; preds = %103
%109 = load i8*, i8** %11
%110 = getelementptr inbounds i8, i8* %109, i32 1
store i8* %110, i8** %11
br label %103
111: ; preds = %103
%112 = load i8*, i8** %11
%113 = load i8, i8* %112
%114 = sext i8 %113 to i32
%115 = icmp eq i32 %114, 0
br i1 %115, label %116, label %117
116: ; preds = %111
br label %149
117: ; preds = %111
%118 = load i32, i32* %10
%119 = load i32, i32* %9
%120 = icmp sge i32 %118, %119
br i1 %120, label %121, label %131
121: ; preds = %117
%122 = load i32, i32* %9
%123 = add nsw i32 %122, 10
store i32 %123, i32* %9
%124 = load i8**, i8*** %8
%125 = load i32, i32* %9
%126 = sext i32 %125 to i64
%127 = mul i64 8, %126
%128 = trunc i64 %127 to i32
%129 = call i64 @realloc(i8** %124, i32 %128)
%130 = inttoptr i64 %129 to i8**
store i8** %130, i8*** %8
br label %131
131: ; preds = %121, %117
%132 = load i8*, i8** %11
%133 = load i8**, i8*** %8
%134 = load i32, i32* %10
%135 = add nsw i32 %134, 1
store i32 %135, i32* %10
%136 = sext i32 %134 to i64
%137 = getelementptr inbounds i8*, i8** %133, i64 %136
store i8* %132, i8** %137
br label %138
138: ; preds = %143, %131
%139 = load i8*, i8** %11
%140 = load i8, i8* %139
%141 = sext i8 %140 to i32
%142 = icmp ne i32 %141, 32
br i1 %142, label %143, label %146
143: ; preds = %138
%144 = load i8*, i8** %11
%145 = getelementptr inbounds i8, i8* %144, i32 1
store i8* %145, i8** %11
br label %138
146: ; preds = %138
%147 = load i8*, i8** %11
%148 = getelementptr inbounds i8, i8* %147, i32 1
store i8* %148, i8** %11
store i8 0, i8* %147
br label %97
149: ; preds = %116, %97
%150 = load i32, i32* %10
%151 = load i32*, i32** %6
store i32 %150, i32* %151
%152 = load i8**, i8*** %7
store i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @get_words.str_copy, i64 0, i64 0), i8** %152
%153 = load i8**, i8*** %8
store i8** %153, i8*** %4
br label %154
154: ; preds = %149, %29
%155 = load i8**, i8*** %4
ret i8** %155
}

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