#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 */
struct cnfnode {
  int dummy;
};
typedef int /*<<< orphan*/ buf;

/* Variables and functions */
int /*<<< orphan*/ append_node(struct cnfnode *, struct cnfnode *);
int /*<<< orphan*/ cnfnode_setval(struct cnfnode *, char const *);
struct cnfnode *create_cnfnode(char *);
char const *dup_next_line_b(char const **, char *, int);
int /*<<< orphan*/ dup_next_quoted_b(char const **, char *, int, char const);
scalar_t__ isalnum(char const);
scalar_t__ isspace(char const);
struct cnfnode *parse_shell_line(const char **pp) {
  char buf[256], *q;
  const char *p = *pp;
  struct cnfnode *cn = NULL;
  q = buf;
  while (*p && (isalnum(*p) || *p == '_') && q < buf + sizeof(buf) - 1)
    *(q++) = *(p++);
  *q = 0;
  if (*p == '=') {
    const char *p0;
    p++;
    cn = create_cnfnode(buf);
    q = buf;
    if (*p == '"' || *p == '\'')
      dup_next_quoted_b(&p, buf, sizeof(buf) - 1, *p);
    else {
      while (*p && !isspace(*p) && *p != '#')
        *q++ = *p++;
      *q = 0;
    }
    cnfnode_setval(cn, buf);
    p0 = p;
    while (*p && isspace(*p))
      p++;
    if (*p == '#') {
      struct cnfnode *cn_cmt;
      cn_cmt = create_cnfnode(".comment");
      cnfnode_setval(cn_cmt, dup_next_line_b(&p0, buf, sizeof(buf) - 1));
      append_node(cn, cn_cmt);
    }
  } else {
    cn = create_cnfnode(".unparsed");
    cnfnode_setval(cn, *pp);
  }
  *pp = p;
  return cn;
}


x86 assembly (clang, -O0):
<parse_shell_line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x120(%rbp)
movq   $0x0,-0x128(%rbp)
lea    -0x110(%rbp),%rax
mov    %rax,-0x118(%rbp)
mov    -0x120(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x139(%rbp)
je     121a <parse_shell_line+0xaa>
mov    -0x120(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isalnum@plt>
cmp    $0x0,%rax
jne    11f5 <parse_shell_line+0x85>
mov    -0x120(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x5f,%ecx
mov    %al,-0x139(%rbp)
jne    121a <parse_shell_line+0xaa>
mov    -0x118(%rbp),%rax
lea    -0x110(%rbp),%rcx
add    $0x100,%rcx
add    $0xffffffffffffffff,%rcx
cmp    %rcx,%rax
setb   %al
mov    %al,-0x139(%rbp)
mov    -0x139(%rbp),%al
test   $0x1,%al
jne    122d <parse_shell_line+0xbd>
jmp    1260 <parse_shell_line+0xf0>
mov    -0x120(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x120(%rbp)
mov    (%rax),%cl
mov    -0x118(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x118(%rbp)
mov    %cl,(%rax)
jmp    11a6 <parse_shell_line+0x36>
mov    -0x118(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x120(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3d,%eax
jne    149c <parse_shell_line+0x32c>
mov    -0x120(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x120(%rbp)
lea    -0x110(%rbp),%rdi
call   1090 <create_cnfnode@plt>
mov    %rax,-0x128(%rbp)
lea    -0x110(%rbp),%rax
mov    %rax,-0x118(%rbp)
mov    -0x120(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x22,%eax
je     12d6 <parse_shell_line+0x166>
mov    -0x120(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x27,%eax
jne    12fd <parse_shell_line+0x18d>
lea    -0x110(%rbp),%rsi
mov    -0x120(%rbp),%rax
lea    -0x120(%rbp),%rdi
mov    $0xff,%edx
movsbl (%rax),%ecx
call   1030 <dup_next_quoted_b@plt>
jmp    13a7 <parse_shell_line+0x237>
jmp    1302 <parse_shell_line+0x192>
mov    -0x120(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x13a(%rbp)
je     1357 <parse_shell_line+0x1e7>
mov    -0x120(%rbp),%rax
movsbl (%rax),%edi
call   1060 <isspace@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x13a(%rbp)
jne    1357 <parse_shell_line+0x1e7>
mov    -0x120(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
setne  %al
mov    %al,-0x13a(%rbp)
mov    -0x13a(%rbp),%al
test   $0x1,%al
jne    136a <parse_shell_line+0x1fa>
jmp    139d <parse_shell_line+0x22d>
mov    -0x120(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x120(%rbp)
mov    (%rax),%cl
mov    -0x118(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x118(%rbp)
mov    %cl,(%rax)
jmp    1302 <parse_shell_line+0x192>
mov    -0x118(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x128(%rbp),%rdi
lea    -0x110(%rbp),%rsi
call   1080 <cnfnode_setval@plt>
mov    -0x120(%rbp),%rax
mov    %rax,-0x130(%rbp)
mov    -0x120(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x13b(%rbp)
je     13ff <parse_shell_line+0x28f>
mov    -0x120(%rbp),%rax
movsbl (%rax),%edi
call   1060 <isspace@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x13b(%rbp)
mov    -0x13b(%rbp),%al
test   $0x1,%al
jne    1412 <parse_shell_line+0x2a2>
jmp    1429 <parse_shell_line+0x2b9>
mov    -0x120(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x120(%rbp)
jmp    13c8 <parse_shell_line+0x258>
mov    -0x120(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
jne    1497 <parse_shell_line+0x327>
lea    0xbbd(%rip),%rdi
call   1090 <create_cnfnode@plt>
mov    %rax,-0x138(%rbp)
mov    -0x138(%rbp),%rax
mov    %rax,-0x148(%rbp)
lea    -0x110(%rbp),%rsi
lea    -0x130(%rbp),%rdi
mov    $0xff,%edx
call   1070 <dup_next_line_b@plt>
mov    -0x148(%rbp),%rdi
mov    %rax,%rsi
call   1080 <cnfnode_setval@plt>
mov    -0x128(%rbp),%rdi
mov    -0x138(%rbp),%rsi
call   1040 <append_node@plt>
jmp    14c2 <parse_shell_line+0x352>
lea    0xb66(%rip),%rdi
call   1090 <create_cnfnode@plt>
mov    %rax,-0x128(%rbp)
mov    -0x128(%rbp),%rdi
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
call   1080 <cnfnode_setval@plt>
mov    -0x120(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x128(%rbp),%rax
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_shell_line>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x110,%rsp
mov    %rdi,%r14
mov    (%rdi),%rbx
mov    %rbx,(%rsp)
mov    (%rbx),%al
test   %al,%al
je     11e4 <parse_shell_line+0x74>
lea    0x10f(%rsp),%r12
lea    0x10(%rsp),%r15
add    $0x1,%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsbl %al,%edi
call   1050 <isalnum@plt>
test   %rax,%rax
jne    11c3 <parse_shell_line+0x53>
cmpb   $0x5f,-0x1(%rbx)
jne    11e9 <parse_shell_line+0x79>
cmp    %r12,%r15
jae    11e9 <parse_shell_line+0x79>
mov    %rbx,(%rsp)
movzbl -0x1(%rbx),%eax
mov    %al,(%r15)
add    $0x1,%r15
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    11b0 <parse_shell_line+0x40>
jmp    11e9 <parse_shell_line+0x79>
lea    0x10(%rsp),%r15
movb   $0x0,(%r15)
mov    (%rsp),%rbx
cmpb   $0x3d,(%rbx)
jne    1238 <parse_shell_line+0xc8>
lea    0x10(%rsp),%r12
lea    0x1(%rbx),%r13
mov    %r13,(%rsp)
mov    %r12,%rdi
call   1090 <create_cnfnode@plt>
mov    %rax,%r15
mov    0x1(%rbx),%al
test   %al,%al
je     1295 <parse_shell_line+0x125>
cmp    $0x22,%al
je     1221 <parse_shell_line+0xb1>
cmp    $0x27,%al
jne    1257 <parse_shell_line+0xe7>
movsbl %al,%ecx
mov    %rsp,%rdi
lea    0x10(%rsp),%rsi
mov    $0xff,%edx
call   1030 <dup_next_quoted_b@plt>
jmp    129a <parse_shell_line+0x12a>
lea    0xdca(%rip),%rdi
call   1090 <create_cnfnode@plt>
mov    %rax,%r15
mov    (%r14),%rsi
mov    %rax,%rdi
call   1080 <cnfnode_setval@plt>
jmp    1328 <parse_shell_line+0x1b8>
lea    0x10(%rsp),%r12
nopl   0x0(%rax)
movsbl %al,%edi
call   1060 <isspace@plt>
test   %rax,%rax
jne    1295 <parse_shell_line+0x125>
cmpb   $0x23,0x0(%r13)
je     1295 <parse_shell_line+0x125>
lea    0x1(%r13),%rcx
mov    %rcx,(%rsp)
movzbl 0x0(%r13),%eax
mov    %al,(%r12)
add    $0x1,%r12
movzbl 0x1(%r13),%eax
mov    %rcx,%r13
test   %al,%al
jne    1260 <parse_shell_line+0xf0>
movb   $0x0,(%r12)
lea    0x10(%rsp),%rsi
mov    %r15,%rdi
call   1080 <cnfnode_setval@plt>
mov    (%rsp),%rbx
mov    %rbx,0x8(%rsp)
mov    (%rbx),%al
test   %al,%al
je     1328 <parse_shell_line+0x1b8>
cs nopw 0x0(%rax,%rax,1)
movsbl %al,%edi
call   1060 <isspace@plt>
mov    (%rsp),%rbx
test   %rax,%rax
je     12e6 <parse_shell_line+0x176>
lea    0x1(%rbx),%rcx
mov    %rcx,(%rsp)
movzbl 0x1(%rbx),%eax
test   %al,%al
jne    12c0 <parse_shell_line+0x150>
mov    %rcx,%rbx
jmp    1328 <parse_shell_line+0x1b8>
cmpb   $0x23,(%rbx)
jne    1328 <parse_shell_line+0x1b8>
lea    0xd0e(%rip),%rdi
call   1090 <create_cnfnode@plt>
mov    %rax,%rbx
lea    0x8(%rsp),%rdi
lea    0x10(%rsp),%rsi
mov    $0xff,%edx
call   1070 <dup_next_line_b@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1080 <cnfnode_setval@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <append_node@plt>
mov    (%rsp),%rbx
mov    %rbx,(%r14)
mov    %r15,%rax
add    $0x110,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.cnfnode = type { i32 }
@.str = [9 x i8] c".comment\00"
@.str.1 = [10 x i8] c".unparsed\00"
define %struct.cnfnode* @parse_shell_line(i8** %0) {
%2 = alloca i8**
%3 = alloca [256 x i8]
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca %struct.cnfnode*
%7 = alloca i8*
%8 = alloca %struct.cnfnode*
store i8** %0, i8*** %2
%9 = load i8**, i8*** %2
%10 = load i8*, i8** %9
store i8* %10, i8** %5
store %struct.cnfnode* null, %struct.cnfnode** %6
%11 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
store i8* %11, i8** %4
br label %12
12: ; preds = %35, %1
%13 = load i8*, i8** %5
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %33
17: ; preds = %12
%18 = load i8*, i8** %5
%19 = load i8, i8* %18
%20 = call i64 @isalnum(i8 signext %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %27, label %22
22: ; preds = %17
%23 = load i8*, i8** %5
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 95
br i1 %26, label %27, label %33
27: ; preds = %22, %17
%28 = load i8*, i8** %4
%29 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%30 = getelementptr inbounds i8, i8* %29, i64 256
%31 = getelementptr inbounds i8, i8* %30, i64 -1
%32 = icmp ult i8* %28, %31
br label %33
33: ; preds = %27, %22, %12
%34 = phi i1 [ false, %22 ], [ false, %12 ], [ %32, %27 ]
br i1 %34, label %35, label %41
35: ; preds = %33
%36 = load i8*, i8** %5
%37 = getelementptr inbounds i8, i8* %36, i32 1
store i8* %37, i8** %5
%38 = load i8, i8* %36
%39 = load i8*, i8** %4
%40 = getelementptr inbounds i8, i8* %39, i32 1
store i8* %40, i8** %4
store i8 %38, i8* %39
br label %12
41: ; preds = %33
%42 = load i8*, i8** %4
store i8 0, i8* %42
%43 = load i8*, i8** %5
%44 = load i8, i8* %43
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 61
br i1 %46, label %47, label %128
47: ; preds = %41
%48 = load i8*, i8** %5
%49 = getelementptr inbounds i8, i8* %48, i32 1
store i8* %49, i8** %5
%50 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%51 = call %struct.cnfnode* @create_cnfnode(i8* %50)
store %struct.cnfnode* %51, %struct.cnfnode** %6
%52 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
store i8* %52, i8** %4
%53 = load i8*, i8** %5
%54 = load i8, i8* %53
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 34
br i1 %56, label %62, label %57
57: ; preds = %47
%58 = load i8*, i8** %5
%59 = load i8, i8* %58
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 39
br i1 %61, label %62, label %67
62: ; preds = %57, %47
%63 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%64 = load i8*, i8** %5
%65 = load i8, i8* %64
%66 = call i32 @dup_next_quoted_b(i8** %5, i8* %63, i32 255, i8 signext %65)
br label %93
67: ; preds = %57
br label %68
68: ; preds = %85, %67
%69 = load i8*, i8** %5
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %83
73: ; preds = %68
%74 = load i8*, i8** %5
%75 = load i8, i8* %74
%76 = call i64 @isspace(i8 signext %75)
%77 = icmp ne i64 %76, 0
br i1 %77, label %83, label %78
78: ; preds = %73
%79 = load i8*, i8** %5
%80 = load i8, i8* %79
%81 = sext i8 %80 to i32
%82 = icmp ne i32 %81, 35
br label %83
83: ; preds = %78, %73, %68
%84 = phi i1 [ false, %73 ], [ false, %68 ], [ %82, %78 ]
br i1 %84, label %85, label %91
85: ; preds = %83
%86 = load i8*, i8** %5
%87 = getelementptr inbounds i8, i8* %86, i32 1
store i8* %87, i8** %5
%88 = load i8, i8* %86
%89 = load i8*, i8** %4
%90 = getelementptr inbounds i8, i8* %89, i32 1
store i8* %90, i8** %4
store i8 %88, i8* %89
br label %68
91: ; preds = %83
%92 = load i8*, i8** %4
store i8 0, i8* %92
br label %93
93: ; preds = %91, %62
%94 = load %struct.cnfnode*, %struct.cnfnode** %6
%95 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%96 = call i32 @cnfnode_setval(%struct.cnfnode* %94, i8* %95)
%97 = load i8*, i8** %5
store i8* %97, i8** %7
br label %98
98: ; preds = %110, %93
%99 = load i8*, i8** %5
%100 = load i8, i8* %99
%101 = sext i8 %100 to i32
%102 = icmp ne i32 %101, 0
br i1 %102, label %103, label %108
103: ; preds = %98
%104 = load i8*, i8** %5
%105 = load i8, i8* %104
%106 = call i64 @isspace(i8 signext %105)
%107 = icmp ne i64 %106, 0
br label %108
108: ; preds = %103, %98
%109 = phi i1 [ false, %98 ], [ %107, %103 ]
br i1 %109, label %110, label %113
110: ; preds = %108
%111 = load i8*, i8** %5
%112 = getelementptr inbounds i8, i8* %111, i32 1
store i8* %112, i8** %5
br label %98
113: ; preds = %108
%114 = load i8*, i8** %5
%115 = load i8, i8* %114
%116 = sext i8 %115 to i32
%117 = icmp eq i32 %116, 35
br i1 %117, label %118, label %127
118: ; preds = %113
%119 = call %struct.cnfnode* @create_cnfnode(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
store %struct.cnfnode* %119, %struct.cnfnode** %8
%120 = load %struct.cnfnode*, %struct.cnfnode** %8
%121 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%122 = call i8* @dup_next_line_b(i8** %7, i8* %121, i32 255)
%123 = call i32 @cnfnode_setval(%struct.cnfnode* %120, i8* %122)
%124 = load %struct.cnfnode*, %struct.cnfnode** %6
%125 = load %struct.cnfnode*, %struct.cnfnode** %8
%126 = call i32 @append_node(%struct.cnfnode* %124, %struct.cnfnode* %125)
br label %127
127: ; preds = %118, %113
br label %134
128: ; preds = %41
%129 = call %struct.cnfnode* @create_cnfnode(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
store %struct.cnfnode* %129, %struct.cnfnode** %6
%130 = load %struct.cnfnode*, %struct.cnfnode** %6
%131 = load i8**, i8*** %2
%132 = load i8*, i8** %131
%133 = call i32 @cnfnode_setval(%struct.cnfnode* %130, i8* %132)
br label %134
134: ; preds = %128, %127
%135 = load i8*, i8** %5
%136 = load i8**, i8*** %2
store i8* %135, i8** %136
%137 = load %struct.cnfnode*, %struct.cnfnode** %6
ret %struct.cnfnode* %137
}

LLVM IR (-O2):
%struct.cnfnode = type { i32 }
@.str = [9 x i8] c".comment\00"
@.str.1 = [10 x i8] c".unparsed\00"
define %struct.cnfnode* @parse_shell_line(i8** nocapture %0) {
%2 = alloca [256 x i8]
%3 = alloca i8*
%4 = alloca i8*
%5 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%6 = bitcast i8** %3 to i8*
%7 = load i8*, i8** %0
store i8* %7, i8** %3
%8 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 255
%9 = load i8, i8* %7
%10 = icmp eq i8 %9, 0
br i1 %10, label %30, label %11
11: ; preds = %1, %24
%12 = phi i8* [ %25, %24 ], [ %7, %1 ]
%13 = phi i8 [ %28, %24 ], [ %9, %1 ]
%14 = phi i8* [ %27, %24 ], [ %5, %1 ]
%15 = call i64 @isalnum(i8 signext %13)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %22
17: ; preds = %11
%18 = load i8, i8* %12
%19 = icmp eq i8 %18, 95
%20 = icmp ult i8* %14, %8
%21 = select i1 %19, i1 %20, i1 false
br i1 %21, label %24, label %30
22: ; preds = %11
%23 = icmp ult i8* %14, %8
br i1 %23, label %24, label %30
24: ; preds = %17, %22
%25 = getelementptr inbounds i8, i8* %12, i64 1
store i8* %25, i8** %3
%26 = load i8, i8* %12
%27 = getelementptr inbounds i8, i8* %14, i64 1
store i8 %26, i8* %14
%28 = load i8, i8* %25
%29 = icmp eq i8 %28, 0
br i1 %29, label %30, label %11
30: ; preds = %22, %17, %24, %1
%31 = phi i8* [ %5, %1 ], [ %27, %24 ], [ %14, %17 ], [ %14, %22 ]
store i8 0, i8* %31
%32 = load i8*, i8** %3
%33 = load i8, i8* %32
%34 = icmp eq i8 %33, 61
br i1 %34, label %35, label %86
35: ; preds = %30
%36 = bitcast i8** %4 to i8*
%37 = getelementptr inbounds i8, i8* %32, i64 1
store i8* %37, i8** %3
%38 = call %struct.cnfnode* @create_cnfnode(i8* %5)
%39 = load i8, i8* %37
switch i8 %39, label %42 [
i8 34, label %40
i8 39, label %40
i8 0, label %57
]
40: ; preds = %35, %35
%41 = call i32 @dup_next_quoted_b(i8** %3, i8* %5, i32 255, i8 signext %39)
br label %59
42: ; preds = %35, %51
%43 = phi i8* [ %52, %51 ], [ %37, %35 ]
%44 = phi i8 [ %55, %51 ], [ %39, %35 ]
%45 = phi i8* [ %54, %51 ], [ %5, %35 ]
%46 = call i64 @isspace(i8 signext %44)
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %57
48: ; preds = %42
%49 = load i8, i8* %43
%50 = icmp eq i8 %49, 35
br i1 %50, label %57, label %51
51: ; preds = %48
%52 = getelementptr inbounds i8, i8* %43, i64 1
store i8* %52, i8** %3
%53 = load i8, i8* %43
%54 = getelementptr inbounds i8, i8* %45, i64 1
store i8 %53, i8* %45
%55 = load i8, i8* %52
%56 = icmp eq i8 %55, 0
br i1 %56, label %57, label %42
57: ; preds = %48, %42, %51, %35
%58 = phi i8* [ %5, %35 ], [ %54, %51 ], [ %45, %42 ], [ %45, %48 ]
store i8 0, i8* %58
br label %59
59: ; preds = %57, %40
%60 = call i32 @cnfnode_setval(%struct.cnfnode* %38, i8* %5)
%61 = load i8*, i8** %3
store i8* %61, i8** %4
%62 = load i8, i8* %61
%63 = icmp eq i8 %62, 0
br i1 %63, label %84, label %64
64: ; preds = %59, %69
%65 = phi i8 [ %71, %69 ], [ %62, %59 ]
%66 = call i64 @isspace(i8 signext %65)
%67 = icmp eq i64 %66, 0
%68 = load i8*, i8** %3
br i1 %67, label %73, label %69
69: ; preds = %64
%70 = getelementptr inbounds i8, i8* %68, i64 1
store i8* %70, i8** %3
%71 = load i8, i8* %70
%72 = icmp eq i8 %71, 0
br i1 %72, label %82, label %64
73: ; preds = %64
%74 = load i8, i8* %68
%75 = icmp eq i8 %74, 35
br i1 %75, label %76, label %84
76: ; preds = %73
%77 = call %struct.cnfnode* @create_cnfnode(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%78 = call i8* @dup_next_line_b(i8** %4, i8* %5, i32 255)
%79 = call i32 @cnfnode_setval(%struct.cnfnode* %77, i8* %78)
%80 = call i32 @append_node(%struct.cnfnode* %38, %struct.cnfnode* %77)
%81 = load i8*, i8** %3
br label %84
82: ; preds = %69
%83 = getelementptr inbounds i8, i8* %68, i64 1
br label %84
84: ; preds = %82, %59, %76, %73
%85 = phi i8* [ %81, %76 ], [ %68, %73 ], [ %61, %59 ], [ %83, %82 ]
br label %90
86: ; preds = %30
%87 = call %struct.cnfnode* @create_cnfnode(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%88 = load i8*, i8** %0
%89 = call i32 @cnfnode_setval(%struct.cnfnode* %87, i8* %88)
br label %90
90: ; preds = %86, %84
%91 = phi i8* [ %85, %84 ], [ %32, %86 ]
%92 = phi %struct.cnfnode* [ %38, %84 ], [ %87, %86 ]
store i8* %91, i8** %0
ret %struct.cnfnode* %92
}