#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 nary_node {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ con_log(char *, char *, int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ *get_file();
scalar_t__ get_flgInteractive();
char *get_prompt();
int /*<<< orphan*/ interpreter_cleanup();
int /*<<< orphan*/ interpreter_init();
int /*<<< orphan*/ iwetlex_destroy(void *);
scalar_t__ iwetlex_init(void **);
scalar_t__ iwetparse(struct nary_node **, void *);
int /*<<< orphan*/ iwetset_in(int /*<<< orphan*/ *, void *);
scalar_t__ parse_args(int, char **);
int /*<<< orphan*/ parse_program(struct nary_node *);
int /*<<< orphan*/ parse_program_interactive(struct nary_node *, int *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ *stdin;
char *strerror(int /*<<< orphan*/);
int /*<<< orphan*/ wetlex_destroy(void *);
scalar_t__ wetlex_init(void **);
scalar_t__ wetparse(struct nary_node **, void *);
int /*<<< orphan*/ wetset_in(int /*<<< orphan*/ *, void *);
int main(int argc, char **argv) {
  FILE *pfile;
  struct nary_node *root;
  if (parse_args(argc, argv)) {
    con_log("The arguments of the interpreter could not be parsed", "main()",
            2);
    exit(EXIT_FAILURE);
  }
  if (get_flgInteractive()) {
    con_log("Starting interactive interpreter", "main()", 2);
    int first = 1;
    void *iwetscan;
    if (iwetlex_init(&iwetscan)) {
      con_log("Could not initialize the scanner", "main()", 2);
      exit(EXIT_FAILURE);
    }
    iwetset_in(stdin, iwetscan);
    interpreter_init();
    while (!feof(stdin)) {
      printf("%s", get_prompt());
      if (iwetparse(&root, iwetscan)) {
        printf("Ein Syntaxfehler ist aufgetreten!\n");
        continue;
      }
      parse_program_interactive(root, &first);
    }
    interpreter_cleanup();
    iwetlex_destroy(iwetscan);
  } else {
    void *wetscan;
    if (wetlex_init(&wetscan)) {
      con_log("Could not initialize the scanner", "main()", 2);
      exit(EXIT_FAILURE);
    }
    if (get_file() != NULL) {
      pfile = fopen(get_file(), "r");
      if (pfile == NULL) {
        con_log("Error while opening the file", "main()", 2);
        con_log(strerror(errno), "main()", 2);
        exit(EXIT_FAILURE);
      }
      wetset_in(pfile, wetscan);
    } else {
      wetset_in(stdin, wetscan);
    }
    interpreter_init();
    if (wetparse(&root, wetscan)) {
      con_log("Parser exitcode != 0", "main()", 2);
      exit(EXIT_FAILURE);
    }
    parse_program(root);
    interpreter_cleanup();
    wetlex_destroy(wetscan);
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10b0 <parse_args@plt>
cmp    $0x0,%rax
je     12b2 <main+0x52>
lea    0xd6d(%rip),%rdi
lea    0xd9b(%rip),%rsi
mov    $0x2,%edx
call   10d0 <con_log@plt>
mov    0x2d25(%rip),%rax
mov    (%rax),%edi
call   1160 <exit@plt>
mov    $0x0,%al
call   1140 <get_flgInteractive@plt>
cmp    $0x0,%rax
je     13c2 <main+0x162>
lea    0xd72(%rip),%rdi
lea    0xd64(%rip),%rsi
mov    $0x2,%edx
call   10d0 <con_log@plt>
movl   $0x1,-0x24(%rbp)
lea    -0x30(%rbp),%rdi
call   1080 <iwetlex_init@plt>
cmp    $0x0,%rax
je     131b <main+0xbb>
lea    0xd61(%rip),%rdi
lea    0xd32(%rip),%rsi
mov    $0x2,%edx
call   10d0 <con_log@plt>
mov    0x2cbc(%rip),%rax
mov    (%rax),%edi
call   1160 <exit@plt>
mov    0x2cc6(%rip),%rax
mov    (%rax),%rdi
mov    -0x30(%rbp),%rsi
call   1030 <iwetset_in@plt>
mov    $0x0,%al
call   1170 <interpreter_init@plt>
mov    0x2cac(%rip),%rax
mov    (%rax),%rdi
call   10e0 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1359 <main+0xf9>
jmp    13ad <main+0x14d>
mov    $0x0,%al
call   1070 <get_prompt@plt>
mov    %rax,%rsi
lea    0xd14(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x30(%rbp),%rsi
lea    -0x20(%rbp),%rdi
call   10a0 <iwetparse@plt>
cmp    $0x0,%rax
je     139b <main+0x13b>
lea    0xcf2(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
jmp    1335 <main+0xd5>
mov    -0x20(%rbp),%rdi
lea    -0x24(%rbp),%rsi
call   1120 <parse_program_interactive@plt>
jmp    1335 <main+0xd5>
mov    $0x0,%al
call   1050 <interpreter_cleanup@plt>
mov    -0x30(%rbp),%rdi
call   1060 <iwetlex_destroy@plt>
jmp    14fb <main+0x29b>
lea    -0x38(%rbp),%rdi
call   1130 <wetlex_init@plt>
cmp    $0x0,%rax
je     13fb <main+0x19b>
lea    0xc81(%rip),%rdi
lea    0xc52(%rip),%rsi
mov    $0x2,%edx
call   10d0 <con_log@plt>
mov    0x2bdc(%rip),%rax
mov    (%rax),%edi
call   1160 <exit@plt>
mov    $0x0,%al
call   10c0 <get_file@plt>
cmp    $0x0,%rax
je     148b <main+0x22b>
mov    $0x0,%al
call   10c0 <get_file@plt>
mov    %rax,%rdi
lea    0xc5f(%rip),%rsi
call   1110 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1479 <main+0x219>
lea    0xc6c(%rip),%rdi
lea    0xbf6(%rip),%rsi
mov    $0x2,%edx
call   10d0 <con_log@plt>
mov    0x2b88(%rip),%rax
mov    (%rax),%edi
call   1180 <strerror@plt>
mov    %rax,%rdi
lea    0xbd4(%rip),%rsi
mov    $0x2,%edx
call   10d0 <con_log@plt>
mov    0x2b5e(%rip),%rax
mov    (%rax),%edi
call   1160 <exit@plt>
mov    -0x18(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   10f0 <wetset_in@plt>
jmp    149e <main+0x23e>
mov    0x2b56(%rip),%rax
mov    (%rax),%rdi
mov    -0x38(%rbp),%rsi
call   10f0 <wetset_in@plt>
mov    $0x0,%al
call   1170 <interpreter_init@plt>
mov    -0x38(%rbp),%rsi
lea    -0x20(%rbp),%rdi
call   1150 <wetparse@plt>
cmp    $0x0,%rax
je     14e2 <main+0x282>
lea    0xbfe(%rip),%rdi
lea    0xb6b(%rip),%rsi
mov    $0x2,%edx
call   10d0 <con_log@plt>
mov    0x2af5(%rip),%rax
mov    (%rax),%edi
call   1160 <exit@plt>
mov    -0x20(%rbp),%rdi
call   1040 <parse_program@plt>
mov    $0x0,%al
call   1050 <interpreter_cleanup@plt>
mov    -0x38(%rbp),%rdi
call   1100 <wetlex_destroy@plt>
mov    0x2ac6(%rip),%rax
mov    (%rax),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x20,%rsp
call   10c0 <parse_args@plt>
test   %rax,%rax
jne    141f <main+0x1af>
xor    %eax,%eax
call   1150 <get_flgInteractive@plt>
test   %rax,%rax
je     1309 <main+0x99>
lea    0xd9e(%rip),%rdi
lea    0xd90(%rip),%rsi
mov    $0x2,%edx
call   10e0 <con_log@plt>
movl   $0x1,0x1c(%rsp)
lea    0x8(%rsp),%rdi
call   1090 <iwetlex_init@plt>
test   %rax,%rax
jne    1428 <main+0x1b8>
mov    0x2d17(%rip),%r13
mov    0x0(%r13),%rdi
mov    0x8(%rsp),%rsi
call   1030 <iwetset_in@plt>
xor    %eax,%eax
call   1180 <interpreter_init@plt>
mov    0x0(%r13),%rdi
call   10f0 <feof@plt>
test   %eax,%eax
je     1355 <main+0xe5>
xor    %eax,%eax
call   1060 <interpreter_cleanup@plt>
mov    0x8(%rsp),%rdi
call   1070 <iwetlex_destroy@plt>
jmp    1408 <main+0x198>
lea    0x8(%rsp),%rdi
call   1140 <wetlex_init@plt>
test   %rax,%rax
jne    1428 <main+0x1b8>
xor    %eax,%eax
call   10d0 <get_file@plt>
test   %rax,%rax
je     13be <main+0x14e>
xor    %eax,%eax
call   10d0 <get_file@plt>
lea    0xd42(%rip),%rsi
mov    %rax,%rdi
call   1120 <fopen@plt>
test   %rax,%rax
je     1457 <main+0x1e7>
mov    0x8(%rsp),%rsi
mov    %rax,%rdi
jmp    13cd <main+0x15d>
lea    0xd22(%rip),%r14
lea    0x10(%rsp),%rbx
lea    0x1c(%rsp),%r15
lea    0xd46(%rip),%r12
jmp    1389 <main+0x119>
nop
mov    %r12,%rdi
call   1050 <puts@plt>
mov    0x0(%r13),%rdi
call   10f0 <feof@plt>
test   %eax,%eax
jne    12f3 <main+0x83>
xor    %eax,%eax
call   1080 <get_prompt@plt>
mov    %r14,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   10a0 <printf@plt>
mov    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   10b0 <iwetparse@plt>
test   %rax,%rax
jne    1370 <main+0x100>
mov    0x10(%rsp),%rdi
mov    %r15,%rsi
call   1130 <parse_program_interactive@plt>
jmp    1378 <main+0x108>
mov    0x2c23(%rip),%rax
mov    (%rax),%rdi
mov    0x8(%rsp),%rsi
call   1100 <wetset_in@plt>
xor    %eax,%eax
call   1180 <interpreter_init@plt>
mov    0x8(%rsp),%rsi
lea    0x10(%rsp),%rdi
call   1160 <wetparse@plt>
test   %rax,%rax
jne    1431 <main+0x1c1>
mov    0x10(%rsp),%rdi
call   1040 <parse_program@plt>
xor    %eax,%eax
call   1060 <interpreter_cleanup@plt>
mov    0x8(%rsp),%rdi
call   1110 <wetlex_destroy@plt>
mov    0x2bb9(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret
lea    0xbda(%rip),%rdi
jmp    1438 <main+0x1c8>
lea    0xc2e(%rip),%rdi
jmp    1438 <main+0x1c8>
lea    0xc66(%rip),%rdi
lea    0xbf6(%rip),%rsi
mov    $0x2,%edx
call   10e0 <con_log@plt>
mov    0x2b80(%rip),%rax
mov    (%rax),%edi
call   1170 <exit@plt>
lea    0xc23(%rip),%rdi
lea    0xbd0(%rip),%rbx
mov    %rbx,%rsi
mov    $0x2,%edx
call   10e0 <con_log@plt>
mov    0x2b5f(%rip),%rax
mov    (%rax),%edi
call   1190 <strerror@plt>
mov    %rax,%rdi
mov    %rbx,%rsi
jmp    143f <main+0x1cf>

LLVM IR (-O0):
%struct.nary_node = type { i32 }
@.str = [53 x i8] c"The arguments of the interpreter could not be parsed\00"
@.str.1 = [7 x i8] c"main()\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [33 x i8] c"Starting interactive interpreter\00"
@.str.3 = [33 x i8] c"Could not initialize the scanner\00"
@stdin = global i32* null
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [35 x i8] c"Ein Syntaxfehler ist aufgetreten!\0A\00"
@.str.6 = [2 x i8] c"r\00"
@.str.7 = [29 x i8] c"Error while opening the file\00"
@errno = global i32 0
@.str.8 = [21 x i8] c"Parser exitcode != 0\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca %struct.nary_node*
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = load i32, i32* %4
%12 = load i8**, i8*** %5
%13 = call i64 @parse_args(i32 %11, i8** %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %2
%16 = call i32 @con_log(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 2)
%17 = load i32, i32* @EXIT_FAILURE
%18 = call i32 @exit(i32 %17)
unreachable
19: ; preds = %2
%20 = call i64 (...) @get_flgInteractive()
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %55
22: ; preds = %19
%23 = call i32 @con_log(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 2)
store i32 1, i32* %8
%24 = call i64 @iwetlex_init(i8** %9)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %22
%27 = call i32 @con_log(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 2)
%28 = load i32, i32* @EXIT_FAILURE
%29 = call i32 @exit(i32 %28)
unreachable
30: ; preds = %22
%31 = load i32*, i32** @stdin
%32 = load i8*, i8** %9
%33 = call i32 @iwetset_in(i32* %31, i8* %32)
%34 = call i32 (...) @interpreter_init()
br label %35
35: ; preds = %48, %46, %30
%36 = load i32*, i32** @stdin
%37 = call i32 @feof(i32* %36)
%38 = icmp ne i32 %37, 0
%39 = xor i1 %38, true
br i1 %39, label %40, label %51
40: ; preds = %35
%41 = call i8* (...) @get_prompt()
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %41)
%43 = load i8*, i8** %9
%44 = call i64 @iwetparse(%struct.nary_node** %7, i8* %43)
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %40
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
br label %35
48: ; preds = %40
%49 = load %struct.nary_node*, %struct.nary_node** %7
%50 = call i32 @parse_program_interactive(%struct.nary_node* %49, i32* %8)
br label %35
51: ; preds = %35
%52 = call i32 (...) @interpreter_cleanup()
%53 = load i8*, i8** %9
%54 = call i32 @iwetlex_destroy(i8* %53)
br label %100
55: ; preds = %19
%56 = call i64 @wetlex_init(i8** %10)
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %62
58: ; preds = %55
%59 = call i32 @con_log(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 2)
%60 = load i32, i32* @EXIT_FAILURE
%61 = call i32 @exit(i32 %60)
unreachable
62: ; preds = %55
%63 = call i32* (...) @get_file()
%64 = icmp ne i32* %63, null
br i1 %64, label %65, label %81
65: ; preds = %62
%66 = call i32* (...) @get_file()
%67 = call i32* @fopen(i32* %66, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i32* %67, i32** %6
%68 = load i32*, i32** %6
%69 = icmp eq i32* %68, null
br i1 %69, label %70, label %77
70: ; preds = %65
%71 = call i32 @con_log(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 2)
%72 = load i32, i32* @errno
%73 = call i8* @strerror(i32 %72)
%74 = call i32 @con_log(i8* %73, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 2)
%75 = load i32, i32* @EXIT_FAILURE
%76 = call i32 @exit(i32 %75)
unreachable
77: ; preds = %65
%78 = load i32*, i32** %6
%79 = load i8*, i8** %10
%80 = call i32 @wetset_in(i32* %78, i8* %79)
br label %85
81: ; preds = %62
%82 = load i32*, i32** @stdin
%83 = load i8*, i8** %10
%84 = call i32 @wetset_in(i32* %82, i8* %83)
br label %85
85: ; preds = %81, %77
%86 = call i32 (...) @interpreter_init()
%87 = load i8*, i8** %10
%88 = call i64 @wetparse(%struct.nary_node** %7, i8* %87)
%89 = icmp ne i64 %88, 0
br i1 %89, label %90, label %94
90: ; preds = %85
%91 = call i32 @con_log(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 2)
%92 = load i32, i32* @EXIT_FAILURE
%93 = call i32 @exit(i32 %92)
unreachable
94: ; preds = %85
%95 = load %struct.nary_node*, %struct.nary_node** %7
%96 = call i32 @parse_program(%struct.nary_node* %95)
%97 = call i32 (...) @interpreter_cleanup()
%98 = load i8*, i8** %10
%99 = call i32 @wetlex_destroy(i8* %98)
br label %100
100: ; preds = %94, %51
%101 = load i32, i32* @EXIT_SUCCESS
ret i32 %101
}

LLVM IR (-O2):
%struct.nary_node = type { i32 }
@.str = [53 x i8] c"The arguments of the interpreter could not be parsed\00"
@.str.1 = [7 x i8] c"main()\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [33 x i8] c"Starting interactive interpreter\00"
@.str.3 = [33 x i8] c"Could not initialize the scanner\00"
@stdin = global i32* null
@.str.4 = [3 x i8] c"%s\00"
@.str.6 = [2 x i8] c"r\00"
@.str.7 = [29 x i8] c"Error while opening the file\00"
@errno = global i32 0
@.str.8 = [21 x i8] c"Parser exitcode != 0\00"
@EXIT_SUCCESS = global i32 0
@str = [34 x i8] c"Ein Syntaxfehler ist aufgetreten!\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca %struct.nary_node*
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = bitcast %struct.nary_node** %3 to i8*
%8 = tail call i64 @parse_args(i32 %0, i8** %1)
%9 = icmp eq i64 %8, 0
br i1 %9, label %14, label %10
10: ; preds = %2
%11 = tail call i32 @con_log(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 2)
%12 = load i32, i32* @EXIT_FAILURE
%13 = tail call i32 @exit(i32 %12)
unreachable
14: ; preds = %2
%15 = tail call i64 (...) @get_flgInteractive()
%16 = icmp eq i64 %15, 0
br i1 %16, label %54, label %17
17: ; preds = %14
%18 = tail call i32 @con_log(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 2)
%19 = bitcast i32* %4 to i8*
store i32 1, i32* %4
%20 = bitcast i8** %5 to i8*
%21 = call i64 @iwetlex_init(i8** %5)
%22 = icmp eq i64 %21, 0
br i1 %22, label %27, label %23
23: ; preds = %17
%24 = call i32 @con_log(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 2)
%25 = load i32, i32* @EXIT_FAILURE
%26 = call i32 @exit(i32 %25)
unreachable
27: ; preds = %17
%28 = load i32*, i32** @stdin
%29 = load i8*, i8** %5
%30 = call i32 @iwetset_in(i32* %28, i8* %29)
%31 = call i32 (...) @interpreter_init()
%32 = load i32*, i32** @stdin
%33 = call i32 @feof(i32* %32)
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %50
35: ; preds = %27, %43
%36 = call i8* (...) @get_prompt()
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %36)
%38 = load i8*, i8** %5
%39 = call i64 @iwetparse(%struct.nary_node** %3, i8* %38)
%40 = icmp eq i64 %39, 0
br i1 %40, label %47, label %41
41: ; preds = %35
%42 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
br label %43
43: ; preds = %41, %47
%44 = load i32*, i32** @stdin
%45 = call i32 @feof(i32* %44)
%46 = icmp eq i32 %45, 0
br i1 %46, label %35, label %50
47: ; preds = %35
%48 = load %struct.nary_node*, %struct.nary_node** %3
%49 = call i32 @parse_program_interactive(%struct.nary_node* %48, i32* %4)
br label %43
50: ; preds = %43, %27
%51 = call i32 (...) @interpreter_cleanup()
%52 = load i8*, i8** %5
%53 = call i32 @iwetlex_destroy(i8* %52)
br label %98
54: ; preds = %14
%55 = bitcast i8** %6 to i8*
%56 = call i64 @wetlex_init(i8** %6)
%57 = icmp eq i64 %56, 0
br i1 %57, label %62, label %58
58: ; preds = %54
%59 = call i32 @con_log(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 2)
%60 = load i32, i32* @EXIT_FAILURE
%61 = call i32 @exit(i32 %60)
unreachable
62: ; preds = %54
%63 = call i32* (...) @get_file()
%64 = icmp eq i32* %63, null
br i1 %64, label %79, label %65
65: ; preds = %62
%66 = call i32* (...) @get_file()
%67 = call i32* @fopen(i32* %66, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%68 = icmp eq i32* %67, null
br i1 %68, label %69, label %76
69: ; preds = %65
%70 = call i32 @con_log(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 2)
%71 = load i32, i32* @errno
%72 = call i8* @strerror(i32 %71)
%73 = call i32 @con_log(i8* %72, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 2)
%74 = load i32, i32* @EXIT_FAILURE
%75 = call i32 @exit(i32 %74)
unreachable
76: ; preds = %65
%77 = load i8*, i8** %6
%78 = call i32 @wetset_in(i32* %67, i8* %77)
br label %83
79: ; preds = %62
%80 = load i32*, i32** @stdin
%81 = load i8*, i8** %6
%82 = call i32 @wetset_in(i32* %80, i8* %81)
br label %83
83: ; preds = %79, %76
%84 = call i32 (...) @interpreter_init()
%85 = load i8*, i8** %6
%86 = call i64 @wetparse(%struct.nary_node** %3, i8* %85)
%87 = icmp eq i64 %86, 0
br i1 %87, label %92, label %88
88: ; preds = %83
%89 = call i32 @con_log(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 2)
%90 = load i32, i32* @EXIT_FAILURE
%91 = call i32 @exit(i32 %90)
unreachable
92: ; preds = %83
%93 = load %struct.nary_node*, %struct.nary_node** %3
%94 = call i32 @parse_program(%struct.nary_node* %93)
%95 = call i32 (...) @interpreter_cleanup()
%96 = load i8*, i8** %6
%97 = call i32 @wetlex_destroy(i8* %96)
br label %98
98: ; preds = %92, %50
%99 = load i32, i32* @EXIT_SUCCESS
ret i32 %99
}