#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 */

/* Variables and functions */
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ insert_file(char *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ rule_for_word(char *, char *);
int /*<<< orphan*/ rules_from_file(char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int main(int argc, char *argv[]) {
  char filename[4096];
  char *include_path;
  if (argc < 2) {
    include_path = (char *)malloc(sizeof(char) * 2);
    strcpy(include_path, ".");
  } else {
    include_path = (char *)malloc(sizeof(char) * strlen(argv[1]) + 1);
    strcpy(include_path, argv[1]);
  }
  sprintf(filename, "%s/%s", include_path, "user_code_top.metaflex");
  insert_file(filename);
  sprintf(filename, "%s/%s", include_path, "roman_numbers.metaflex");
  insert_file(filename);
  printf("\n%%%%\n");
  sprintf(filename, "%s/%s", include_path, "article.wordlist");
  rules_from_file(filename, "ARTICLE");
  sprintf(filename, "%s/%s", include_path, "be.wordlist");
  rules_from_file(filename, "BE");
  sprintf(filename, "%s/%s", include_path, "character.wordlist");
  rules_from_file(filename, "CHARACTER");
  sprintf(filename, "%s/%s", include_path, "first_person.wordlist");
  rules_from_file(filename, "FIRST_PERSON");
  sprintf(filename, "%s/%s", include_path, "first_person_possessive.wordlist");
  rules_from_file(filename, "FIRST_PERSON_POSSESSIVE");
  sprintf(filename, "%s/%s", include_path, "first_person_reflexive.wordlist");
  rules_from_file(filename, "FIRST_PERSON_REFLEXIVE");
  sprintf(filename, "%s/%s", include_path, "negative_adjective.wordlist");
  rules_from_file(filename, "NEGATIVE_ADJECTIVE");
  sprintf(filename, "%s/%s", include_path, "negative_comparative.wordlist");
  rules_from_file(filename, "NEGATIVE_COMPARATIVE");
  sprintf(filename, "%s/%s", include_path, "negative_noun.wordlist");
  rules_from_file(filename, "NEGATIVE_NOUN");
  sprintf(filename, "%s/%s", include_path, "neutral_adjective.wordlist");
  rules_from_file(filename, "NEUTRAL_ADJECTIVE");
  sprintf(filename, "%s/%s", include_path, "neutral_noun.wordlist");
  rules_from_file(filename, "NEUTRAL_NOUN");
  sprintf(filename, "%s/%s", include_path, "nothing.wordlist");
  rules_from_file(filename, "NOTHING");
  sprintf(filename, "%s/%s", include_path, "positive_adjective.wordlist");
  rules_from_file(filename, "POSITIVE_ADJECTIVE");
  sprintf(filename, "%s/%s", include_path, "positive_comparative.wordlist");
  rules_from_file(filename, "POSITIVE_COMPARATIVE");
  sprintf(filename, "%s/%s", include_path, "positive_noun.wordlist");
  rules_from_file(filename, "POSITIVE_NOUN");
  sprintf(filename, "%s/%s", include_path, "second_person.wordlist");
  rules_from_file(filename, "SECOND_PERSON");
  sprintf(filename, "%s/%s", include_path, "second_person_possessive.wordlist");
  rules_from_file(filename, "SECOND_PERSON_POSSESSIVE");
  sprintf(filename, "%s/%s", include_path, "second_person_reflexive.wordlist");
  rules_from_file(filename, "SECOND_PERSON_REFLEXIVE");
  sprintf(filename, "%s/%s", include_path, "third_person_possessive.wordlist");
  rules_from_file(filename, "THIRD_PERSON_POSSESSIVE");
  printf("\n /* single word rules */\n");
  rule_for_word("and", "AND");
  rule_for_word("as", "AS");
  rule_for_word("enter", "ENTER");
  rule_for_word("exeunt", "EXEUNT");
  rule_for_word("exit", "EXIT");
  rule_for_word("heart", "HEART");
  rule_for_word("if not", "IF_NOT");
  rule_for_word("if so", "IF_SO");
  rule_for_word("less", "LESS");
  rule_for_word("let us", "LET_US");
  rule_for_word("listen to", "LISTEN_TO");
  rule_for_word("mind", "MIND");
  rule_for_word("more", "MORE");
  rule_for_word("not", "NOT");
  rule_for_word("open", "OPEN");
  rule_for_word("proceed to", "PROCEED_TO");
  rule_for_word("recall", "RECALL");
  rule_for_word("remember", "REMEMBER");
  rule_for_word("return to", "RETURN_TO");
  rule_for_word("speak", "SPEAK");
  rule_for_word("than", "THAN");
  rule_for_word("the cube of", "THE_CUBE_OF");
  rule_for_word("the difference between", "THE_DIFFERENCE_BETWEEN");
  rule_for_word("the factorial of", "THE_FACTORIAL_OF");
  rule_for_word("the product of", "THE_PRODUCT_OF");
  rule_for_word("the quotient between", "THE_QUOTIENT_BETWEEN");
  rule_for_word("the remainder of the quotient between",
                "THE_REMAINDER_OF_THE_QUOTIENT_BETWEEN");
  rule_for_word("the square of", "THE_SQUARE_OF");
  rule_for_word("the square root of", "THE_SQUARE_ROOT_OF");
  rule_for_word("the sum of", "THE_SUM_OF");
  rule_for_word("twice", "TWICE");
  rule_for_word("we must", "WE_MUST");
  rule_for_word("we shall", "WE_SHALL");
  sprintf(filename, "%s/%s", include_path, "terminals.metaflex");
  printf("\n /* rules for terminals from file %s */", filename);
  insert_file(filename);
  printf("\n%%%%\n");
  sprintf(filename, "%s/%s", include_path, "user_code_bottom.metaflex");
  insert_file(filename);
  free(include_path);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1020,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    11dc <main+0x4c>
mov    $0x2,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x1018(%rbp)
mov    -0x1018(%rbp),%rdi
lea    0xe2e(%rip),%rsi
call   1040 <strcpy@plt>
jmp    1215 <main+0x85>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <strlen@plt>
cltq
shl    $0x0,%rax
add    $0x1,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x1018(%rbp)
mov    -0x1018(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1040 <strcpy@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xdd8(%rip),%rsi
lea    0xdd7(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
call   1090 <insert_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xdab(%rip),%rsi
lea    0xdc1(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
call   1090 <insert_file@plt>
lea    0xdc0(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xd70(%rip),%rsi
lea    0xda4(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xda2(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xd3c(%rip),%rsi
lea    0xd89(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xd82(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xd08(%rip),%rsi
lea    0xd64(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xd64(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xcd4(%rip),%rsi
lea    0xd4d(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xd50(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xca0(%rip),%rsi
lea    0xd3c(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xd4a(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xc6c(%rip),%rsi
lea    0xd41(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xd4e(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xc38(%rip),%rsi
lea    0xd44(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xd4d(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xc04(%rip),%rsi
lea    0xd3f(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xd4a(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xbd0(%rip),%rsi
lea    0xd3e(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xd42(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xb9c(%rip),%rsi
lea    0xd2f(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xd37(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xb68(%rip),%rsi
lea    0xd28(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xd2b(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xb34(%rip),%rsi
lea    0xd17(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xd15(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xb00(%rip),%rsi
lea    0xcfc(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xd05(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xacc(%rip),%rsi
lea    0xcf7(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xd02(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xa98(%rip),%rsi
lea    0xcf6(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xcfa(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xa64(%rip),%rsi
lea    0xce7(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xceb(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0xa30(%rip),%rsi
lea    0xcd8(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xce7(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0x9fc(%rip),%rsi
lea    0xcdf(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xced(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0x9c8(%rip),%rsi
lea    0xce4(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
lea    0xcf2(%rip),%rsi
call   1050 <rules_from_file@plt>
lea    0xcfe(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xd0b(%rip),%rdi
lea    0xd08(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xd00(%rip),%rdi
lea    0xcfc(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xcf3(%rip),%rdi
lea    0xcf2(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xcec(%rip),%rdi
lea    0xcec(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xce7(%rip),%rdi
lea    0xce5(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xcde(%rip),%rdi
lea    0xcdd(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xcd7(%rip),%rdi
lea    0xcd7(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xcd2(%rip),%rdi
lea    0xcd1(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xccb(%rip),%rdi
lea    0xcc9(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xcc2(%rip),%rdi
lea    0xcc2(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xcbd(%rip),%rdi
lea    0xcc0(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xcbe(%rip),%rdi
lea    0xcbc(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xcb5(%rip),%rdi
lea    0xcb3(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xc55(%rip),%rdi
lea    0xc55(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xc99(%rip),%rdi
lea    0xc97(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xc90(%rip),%rdi
lea    0xc94(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xc93(%rip),%rdi
lea    0xc93(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xc8e(%rip),%rdi
lea    0xc90(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xc8d(%rip),%rdi
lea    0xc90(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xc8e(%rip),%rdi
lea    0xc8d(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xc87(%rip),%rdi
lea    0xc85(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xc7e(%rip),%rdi
lea    0xc83(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xc83(%rip),%rdi
lea    0xc93(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xc9e(%rip),%rdi
lea    0xca8(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xcad(%rip),%rdi
lea    0xcb5(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xcc9(%rip),%rdi
lea    0xce8(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xca5(%rip),%rdi
lea    0xcc4(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xcde(%rip),%rdi
lea    0xce5(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xce7(%rip),%rdi
lea    0xcf3(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xcfa(%rip),%rdi
lea    0xcfe(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xcfd(%rip),%rdi
lea    0xcfc(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xcf6(%rip),%rdi
lea    0xcf7(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    0xcf3(%rip),%rdi
lea    0xcf5(%rip),%rsi
call   1080 <rule_for_word@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0x713(%rip),%rsi
lea    0xcdd(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rsi
lea    0xcdd(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x1010(%rbp),%rdi
call   1090 <insert_file@plt>
lea    0x713(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1018(%rbp),%rdx
lea    0x6c3(%rip),%rsi
lea    0xcc9(%rip),%rcx
call   10b0 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
call   1090 <insert_file@plt>
mov    -0x1018(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x1020,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1000,%rsp
cmp    $0x1,%edi
jg     11cb <main+0x2b>
mov    $0x2,%edi
call   10b0 <malloc@plt>
mov    %rax,%r13
lea    0xe37(%rip),%rsi
jmp    11e6 <main+0x46>
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
call   1070 <strlen@plt>
lea    0x1(%rax),%edi
call   10b0 <malloc@plt>
mov    %rax,%r13
mov    0x8(%rbx),%rsi
mov    %rax,%rdi
call   1040 <strcpy@plt>
lea    0xe0d(%rip),%r15
lea    0xe0c(%rip),%rcx
mov    %rsp,%r14
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
mov    %r14,%rdi
call   10a0 <insert_file@plt>
lea    0xe03(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
mov    %r14,%rdi
call   10a0 <insert_file@plt>
lea    0xdfd(%rip),%r12
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xdf3(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xdef(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0xde8(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xddf(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0xdd3(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xdd1(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0xdcc(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xdcd(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0xdcb(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xdd7(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0xde0(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xdeb(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0xdf3(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xdfa(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0xdfe(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xe07(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0xe0d(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xe0f(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0xe0e(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xe14(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0xe17(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xe18(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0xe16(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xe12(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0xe0b(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xe12(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0xe16(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xe1f(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0xe25(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xe27(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0xe26(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xe28(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0xe27(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xe34(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0xe3e(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xe4a(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0xe53(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xe5f(%rip),%rsi
mov    %r14,%rdi
call   1060 <rules_from_file@plt>
lea    0x1118(%rip),%rdi
call   1050 <puts@plt>
lea    0xe5c(%rip),%rdi
lea    0xe59(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe51(%rip),%rdi
lea    0xe4d(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe44(%rip),%rdi
lea    0xe43(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe3d(%rip),%rdi
lea    0xe3d(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe38(%rip),%rdi
lea    0xe36(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe2f(%rip),%rdi
lea    0xe2e(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe28(%rip),%rdi
lea    0xe28(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe23(%rip),%rdi
lea    0xe22(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe1c(%rip),%rdi
lea    0xe1a(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe13(%rip),%rdi
lea    0xe13(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe0e(%rip),%rdi
lea    0xe11(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe0f(%rip),%rdi
lea    0xe0d(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe06(%rip),%rdi
lea    0xe04(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xda6(%rip),%rdi
lea    0xda6(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xdea(%rip),%rdi
lea    0xde8(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xde1(%rip),%rdi
lea    0xde5(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xde4(%rip),%rdi
lea    0xde4(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xddf(%rip),%rdi
lea    0xde1(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xdde(%rip),%rdi
lea    0xde1(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xddf(%rip),%rdi
lea    0xdde(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xdd8(%rip),%rdi
lea    0xdd6(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xdcf(%rip),%rdi
lea    0xdd4(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xdd4(%rip),%rdi
lea    0xde4(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xdef(%rip),%rdi
lea    0xdf9(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xdfe(%rip),%rdi
lea    0xe06(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe1a(%rip),%rdi
lea    0xe39(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xdf6(%rip),%rdi
lea    0xe15(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe2f(%rip),%rdi
lea    0xe36(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe38(%rip),%rdi
lea    0xe44(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe4b(%rip),%rdi
lea    0xe4f(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe4e(%rip),%rdi
lea    0xe4d(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe47(%rip),%rdi
lea    0xe48(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe44(%rip),%rdi
lea    0xe46(%rip),%rsi
call   1090 <rule_for_word@plt>
lea    0xe43(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
lea    0xe41(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %r14,%rdi
call   10a0 <insert_file@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xe47(%rip),%rcx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10c0 <sprintf@plt>
mov    %r14,%rdi
call   10a0 <insert_file@plt>
mov    %r13,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x1000,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [2 x i8] c".\00"
@.str.1 = [6 x i8] c"%s/%s\00"
@.str.2 = [23 x i8] c"user_code_top.metaflex\00"
@.str.3 = [23 x i8] c"roman_numbers.metaflex\00"
@.str.4 = [7 x i8] c"\0A%%%%\0A\00"
@.str.5 = [17 x i8] c"article.wordlist\00"
@.str.6 = [8 x i8] c"ARTICLE\00"
@.str.7 = [12 x i8] c"be.wordlist\00"
@.str.8 = [3 x i8] c"BE\00"
@.str.9 = [19 x i8] c"character.wordlist\00"
@.str.10 = [10 x i8] c"CHARACTER\00"
@.str.11 = [22 x i8] c"first_person.wordlist\00"
@.str.12 = [13 x i8] c"FIRST_PERSON\00"
@.str.13 = [33 x i8] c"first_person_possessive.wordlist\00"
@.str.14 = [24 x i8] c"FIRST_PERSON_POSSESSIVE\00"
@.str.15 = [32 x i8] c"first_person_reflexive.wordlist\00"
@.str.16 = [23 x i8] c"FIRST_PERSON_REFLEXIVE\00"
@.str.17 = [28 x i8] c"negative_adjective.wordlist\00"
@.str.18 = [19 x i8] c"NEGATIVE_ADJECTIVE\00"
@.str.19 = [30 x i8] c"negative_comparative.wordlist\00"
@.str.20 = [21 x i8] c"NEGATIVE_COMPARATIVE\00"
@.str.21 = [23 x i8] c"negative_noun.wordlist\00"
@.str.22 = [14 x i8] c"NEGATIVE_NOUN\00"
@.str.23 = [27 x i8] c"neutral_adjective.wordlist\00"
@.str.24 = [18 x i8] c"NEUTRAL_ADJECTIVE\00"
@.str.25 = [22 x i8] c"neutral_noun.wordlist\00"
@.str.26 = [13 x i8] c"NEUTRAL_NOUN\00"
@.str.27 = [17 x i8] c"nothing.wordlist\00"
@.str.28 = [8 x i8] c"NOTHING\00"
@.str.29 = [28 x i8] c"positive_adjective.wordlist\00"
@.str.30 = [19 x i8] c"POSITIVE_ADJECTIVE\00"
@.str.31 = [30 x i8] c"positive_comparative.wordlist\00"
@.str.32 = [21 x i8] c"POSITIVE_COMPARATIVE\00"
@.str.33 = [23 x i8] c"positive_noun.wordlist\00"
@.str.34 = [14 x i8] c"POSITIVE_NOUN\00"
@.str.35 = [23 x i8] c"second_person.wordlist\00"
@.str.36 = [14 x i8] c"SECOND_PERSON\00"
@.str.37 = [34 x i8] c"second_person_possessive.wordlist\00"
@.str.38 = [25 x i8] c"SECOND_PERSON_POSSESSIVE\00"
@.str.39 = [33 x i8] c"second_person_reflexive.wordlist\00"
@.str.40 = [24 x i8] c"SECOND_PERSON_REFLEXIVE\00"
@.str.41 = [33 x i8] c"third_person_possessive.wordlist\00"
@.str.42 = [24 x i8] c"THIRD_PERSON_POSSESSIVE\00"
@.str.43 = [27 x i8] c"\0A /* single word rules */\0A\00"
@.str.44 = [4 x i8] c"and\00"
@.str.45 = [4 x i8] c"AND\00"
@.str.46 = [3 x i8] c"as\00"
@.str.47 = [3 x i8] c"AS\00"
@.str.48 = [6 x i8] c"enter\00"
@.str.49 = [6 x i8] c"ENTER\00"
@.str.50 = [7 x i8] c"exeunt\00"
@.str.51 = [7 x i8] c"EXEUNT\00"
@.str.52 = [5 x i8] c"exit\00"
@.str.53 = [5 x i8] c"EXIT\00"
@.str.54 = [6 x i8] c"heart\00"
@.str.55 = [6 x i8] c"HEART\00"
@.str.56 = [7 x i8] c"if not\00"
@.str.57 = [7 x i8] c"IF_NOT\00"
@.str.58 = [6 x i8] c"if so\00"
@.str.59 = [6 x i8] c"IF_SO\00"
@.str.60 = [5 x i8] c"less\00"
@.str.61 = [5 x i8] c"LESS\00"
@.str.62 = [7 x i8] c"let us\00"
@.str.63 = [7 x i8] c"LET_US\00"
@.str.64 = [10 x i8] c"listen to\00"
@.str.65 = [10 x i8] c"LISTEN_TO\00"
@.str.66 = [5 x i8] c"mind\00"
@.str.67 = [5 x i8] c"MIND\00"
@.str.68 = [5 x i8] c"more\00"
@.str.69 = [5 x i8] c"MORE\00"
@.str.70 = [4 x i8] c"not\00"
@.str.71 = [4 x i8] c"NOT\00"
@.str.72 = [5 x i8] c"open\00"
@.str.73 = [5 x i8] c"OPEN\00"
@.str.74 = [11 x i8] c"proceed to\00"
@.str.75 = [11 x i8] c"PROCEED_TO\00"
@.str.76 = [7 x i8] c"recall\00"
@.str.77 = [7 x i8] c"RECALL\00"
@.str.78 = [9 x i8] c"remember\00"
@.str.79 = [9 x i8] c"REMEMBER\00"
@.str.80 = [10 x i8] c"return to\00"
@.str.81 = [10 x i8] c"RETURN_TO\00"
@.str.82 = [6 x i8] c"speak\00"
@.str.83 = [6 x i8] c"SPEAK\00"
@.str.84 = [5 x i8] c"than\00"
@.str.85 = [5 x i8] c"THAN\00"
@.str.86 = [12 x i8] c"the cube of\00"
@.str.87 = [12 x i8] c"THE_CUBE_OF\00"
@.str.88 = [23 x i8] c"the difference between\00"
@.str.89 = [23 x i8] c"THE_DIFFERENCE_BETWEEN\00"
@.str.90 = [17 x i8] c"the factorial of\00"
@.str.91 = [17 x i8] c"THE_FACTORIAL_OF\00"
@.str.92 = [15 x i8] c"the product of\00"
@.str.93 = [15 x i8] c"THE_PRODUCT_OF\00"
@.str.94 = [21 x i8] c"the quotient between\00"
@.str.95 = [21 x i8] c"THE_QUOTIENT_BETWEEN\00"
@.str.96 = [38 x i8] c"the remainder of the quotient between\00"
@.str.97 = [38 x i8] c"THE_REMAINDER_OF_THE_QUOTIENT_BETWEEN\00"
@.str.98 = [14 x i8] c"the square of\00"
@.str.99 = [14 x i8] c"THE_SQUARE_OF\00"
@.str.100 = [19 x i8] c"the square root of\00"
@.str.101 = [19 x i8] c"THE_SQUARE_ROOT_OF\00"
@.str.102 = [11 x i8] c"the sum of\00"
@.str.103 = [11 x i8] c"THE_SUM_OF\00"
@.str.104 = [6 x i8] c"twice\00"
@.str.105 = [6 x i8] c"TWICE\00"
@.str.106 = [8 x i8] c"we must\00"
@.str.107 = [8 x i8] c"WE_MUST\00"
@.str.108 = [9 x i8] c"we shall\00"
@.str.109 = [9 x i8] c"WE_SHALL\00"
@.str.110 = [19 x i8] c"terminals.metaflex\00"
@.str.111 = [41 x i8] c"\0A /* rules for terminals from file %s */\00"
@.str.112 = [26 x i8] c"user_code_bottom.metaflex\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [4096 x i8]
%7 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = load i32, i32* %4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = call i64 @malloc(i32 2)
%12 = inttoptr i64 %11 to i8*
store i8* %12, i8** %7
%13 = load i8*, i8** %7
%14 = call i32 @strcpy(i8* %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %31
15: ; preds = %2
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 1
%18 = load i8*, i8** %17
%19 = call i32 @strlen(i8* %18)
%20 = sext i32 %19 to i64
%21 = mul i64 1, %20
%22 = add i64 %21, 1
%23 = trunc i64 %22 to i32
%24 = call i64 @malloc(i32 %23)
%25 = inttoptr i64 %24 to i8*
store i8* %25, i8** %7
%26 = load i8*, i8** %7
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 1
%29 = load i8*, i8** %28
%30 = call i32 @strcpy(i8* %26, i8* %29)
br label %31
31: ; preds = %15, %10
%32 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%33 = load i8*, i8** %7
%34 = call i32 @sprintf(i8* %32, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %33, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%35 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%36 = call i32 @insert_file(i8* %35)
%37 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%38 = load i8*, i8** %7
%39 = call i32 @sprintf(i8* %37, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %38, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%40 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%41 = call i32 @insert_file(i8* %40)
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%43 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%44 = load i8*, i8** %7
%45 = call i32 @sprintf(i8* %43, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %44, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%46 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%47 = call i32 @rules_from_file(i8* %46, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%48 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%49 = load i8*, i8** %7
%50 = call i32 @sprintf(i8* %48, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %49, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%51 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%52 = call i32 @rules_from_file(i8* %51, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%53 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%54 = load i8*, i8** %7
%55 = call i32 @sprintf(i8* %53, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %54, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%56 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%57 = call i32 @rules_from_file(i8* %56, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
%58 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%59 = load i8*, i8** %7
%60 = call i32 @sprintf(i8* %58, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %59, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0))
%61 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%62 = call i32 @rules_from_file(i8* %61, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0))
%63 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%64 = load i8*, i8** %7
%65 = call i32 @sprintf(i8* %63, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %64, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.13, i64 0, i64 0))
%66 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%67 = call i32 @rules_from_file(i8* %66, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.14, i64 0, i64 0))
%68 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%69 = load i8*, i8** %7
%70 = call i32 @sprintf(i8* %68, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %69, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.15, i64 0, i64 0))
%71 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%72 = call i32 @rules_from_file(i8* %71, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0))
%73 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%74 = load i8*, i8** %7
%75 = call i32 @sprintf(i8* %73, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %74, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.17, i64 0, i64 0))
%76 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%77 = call i32 @rules_from_file(i8* %76, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.18, i64 0, i64 0))
%78 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%79 = load i8*, i8** %7
%80 = call i32 @sprintf(i8* %78, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %79, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.19, i64 0, i64 0))
%81 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%82 = call i32 @rules_from_file(i8* %81, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0))
%83 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%84 = load i8*, i8** %7
%85 = call i32 @sprintf(i8* %83, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %84, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.21, i64 0, i64 0))
%86 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%87 = call i32 @rules_from_file(i8* %86, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0))
%88 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%89 = load i8*, i8** %7
%90 = call i32 @sprintf(i8* %88, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %89, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.23, i64 0, i64 0))
%91 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%92 = call i32 @rules_from_file(i8* %91, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.24, i64 0, i64 0))
%93 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%94 = load i8*, i8** %7
%95 = call i32 @sprintf(i8* %93, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %94, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.25, i64 0, i64 0))
%96 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%97 = call i32 @rules_from_file(i8* %96, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.26, i64 0, i64 0))
%98 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%99 = load i8*, i8** %7
%100 = call i32 @sprintf(i8* %98, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %99, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.27, i64 0, i64 0))
%101 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%102 = call i32 @rules_from_file(i8* %101, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i64 0, i64 0))
%103 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%104 = load i8*, i8** %7
%105 = call i32 @sprintf(i8* %103, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %104, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.29, i64 0, i64 0))
%106 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%107 = call i32 @rules_from_file(i8* %106, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.30, i64 0, i64 0))
%108 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%109 = load i8*, i8** %7
%110 = call i32 @sprintf(i8* %108, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %109, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.31, i64 0, i64 0))
%111 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%112 = call i32 @rules_from_file(i8* %111, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.32, i64 0, i64 0))
%113 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%114 = load i8*, i8** %7
%115 = call i32 @sprintf(i8* %113, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %114, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.33, i64 0, i64 0))
%116 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%117 = call i32 @rules_from_file(i8* %116, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.34, i64 0, i64 0))
%118 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%119 = load i8*, i8** %7
%120 = call i32 @sprintf(i8* %118, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %119, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.35, i64 0, i64 0))
%121 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%122 = call i32 @rules_from_file(i8* %121, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.36, i64 0, i64 0))
%123 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%124 = load i8*, i8** %7
%125 = call i32 @sprintf(i8* %123, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %124, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.37, i64 0, i64 0))
%126 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%127 = call i32 @rules_from_file(i8* %126, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.38, i64 0, i64 0))
%128 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%129 = load i8*, i8** %7
%130 = call i32 @sprintf(i8* %128, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %129, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.39, i64 0, i64 0))
%131 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%132 = call i32 @rules_from_file(i8* %131, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.40, i64 0, i64 0))
%133 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%134 = load i8*, i8** %7
%135 = call i32 @sprintf(i8* %133, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %134, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.41, i64 0, i64 0))
%136 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%137 = call i32 @rules_from_file(i8* %136, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.42, i64 0, i64 0))
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.43, i64 0, i64 0))
%139 = call i32 @rule_for_word(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.44, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.45, i64 0, i64 0))
%140 = call i32 @rule_for_word(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.46, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.47, i64 0, i64 0))
%141 = call i32 @rule_for_word(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.48, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.49, i64 0, i64 0))
%142 = call i32 @rule_for_word(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.50, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.51, i64 0, i64 0))
%143 = call i32 @rule_for_word(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.52, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.53, i64 0, i64 0))
%144 = call i32 @rule_for_word(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.54, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.55, i64 0, i64 0))
%145 = call i32 @rule_for_word(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.56, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.57, i64 0, i64 0))
%146 = call i32 @rule_for_word(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.58, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.59, i64 0, i64 0))
%147 = call i32 @rule_for_word(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.60, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.61, i64 0, i64 0))
%148 = call i32 @rule_for_word(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.62, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.63, i64 0, i64 0))
%149 = call i32 @rule_for_word(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.64, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.65, i64 0, i64 0))
%150 = call i32 @rule_for_word(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.66, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.67, i64 0, i64 0))
%151 = call i32 @rule_for_word(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.68, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.69, i64 0, i64 0))
%152 = call i32 @rule_for_word(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.70, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.71, i64 0, i64 0))
%153 = call i32 @rule_for_word(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.72, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.73, i64 0, i64 0))
%154 = call i32 @rule_for_word(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.74, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.75, i64 0, i64 0))
%155 = call i32 @rule_for_word(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.76, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.77, i64 0, i64 0))
%156 = call i32 @rule_for_word(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.78, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.79, i64 0, i64 0))
%157 = call i32 @rule_for_word(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.80, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.81, i64 0, i64 0))
%158 = call i32 @rule_for_word(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.82, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.83, i64 0, i64 0))
%159 = call i32 @rule_for_word(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.84, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.85, i64 0, i64 0))
%160 = call i32 @rule_for_word(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.86, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.87, i64 0, i64 0))
%161 = call i32 @rule_for_word(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.88, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.89, i64 0, i64 0))
%162 = call i32 @rule_for_word(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.90, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.91, i64 0, i64 0))
%163 = call i32 @rule_for_word(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.92, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.93, i64 0, i64 0))
%164 = call i32 @rule_for_word(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.94, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.95, i64 0, i64 0))
%165 = call i32 @rule_for_word(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.96, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.97, i64 0, i64 0))
%166 = call i32 @rule_for_word(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.98, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.99, i64 0, i64 0))
%167 = call i32 @rule_for_word(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.100, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.101, i64 0, i64 0))
%168 = call i32 @rule_for_word(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.102, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.103, i64 0, i64 0))
%169 = call i32 @rule_for_word(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.104, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.105, i64 0, i64 0))
%170 = call i32 @rule_for_word(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.106, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.107, i64 0, i64 0))
%171 = call i32 @rule_for_word(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.108, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.109, i64 0, i64 0))
%172 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%173 = load i8*, i8** %7
%174 = call i32 @sprintf(i8* %172, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %173, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.110, i64 0, i64 0))
%175 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%176 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.111, i64 0, i64 0), i8* %175)
%177 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%178 = call i32 @insert_file(i8* %177)
%179 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%180 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%181 = load i8*, i8** %7
%182 = call i32 @sprintf(i8* %180, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %181, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.112, i64 0, i64 0))
%183 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%184 = call i32 @insert_file(i8* %183)
%185 = load i8*, i8** %7
%186 = call i32 @free(i8* %185)
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c".\00"
@.str.1 = [6 x i8] c"%s/%s\00"
@.str.2 = [23 x i8] c"user_code_top.metaflex\00"
@.str.3 = [23 x i8] c"roman_numbers.metaflex\00"
@.str.4 = [7 x i8] c"\0A%%%%\0A\00"
@.str.5 = [17 x i8] c"article.wordlist\00"
@.str.6 = [8 x i8] c"ARTICLE\00"
@.str.7 = [12 x i8] c"be.wordlist\00"
@.str.8 = [3 x i8] c"BE\00"
@.str.9 = [19 x i8] c"character.wordlist\00"
@.str.10 = [10 x i8] c"CHARACTER\00"
@.str.11 = [22 x i8] c"first_person.wordlist\00"
@.str.12 = [13 x i8] c"FIRST_PERSON\00"
@.str.13 = [33 x i8] c"first_person_possessive.wordlist\00"
@.str.14 = [24 x i8] c"FIRST_PERSON_POSSESSIVE\00"
@.str.15 = [32 x i8] c"first_person_reflexive.wordlist\00"
@.str.16 = [23 x i8] c"FIRST_PERSON_REFLEXIVE\00"
@.str.17 = [28 x i8] c"negative_adjective.wordlist\00"
@.str.18 = [19 x i8] c"NEGATIVE_ADJECTIVE\00"
@.str.19 = [30 x i8] c"negative_comparative.wordlist\00"
@.str.20 = [21 x i8] c"NEGATIVE_COMPARATIVE\00"
@.str.21 = [23 x i8] c"negative_noun.wordlist\00"
@.str.22 = [14 x i8] c"NEGATIVE_NOUN\00"
@.str.23 = [27 x i8] c"neutral_adjective.wordlist\00"
@.str.24 = [18 x i8] c"NEUTRAL_ADJECTIVE\00"
@.str.25 = [22 x i8] c"neutral_noun.wordlist\00"
@.str.26 = [13 x i8] c"NEUTRAL_NOUN\00"
@.str.27 = [17 x i8] c"nothing.wordlist\00"
@.str.28 = [8 x i8] c"NOTHING\00"
@.str.29 = [28 x i8] c"positive_adjective.wordlist\00"
@.str.30 = [19 x i8] c"POSITIVE_ADJECTIVE\00"
@.str.31 = [30 x i8] c"positive_comparative.wordlist\00"
@.str.32 = [21 x i8] c"POSITIVE_COMPARATIVE\00"
@.str.33 = [23 x i8] c"positive_noun.wordlist\00"
@.str.34 = [14 x i8] c"POSITIVE_NOUN\00"
@.str.35 = [23 x i8] c"second_person.wordlist\00"
@.str.36 = [14 x i8] c"SECOND_PERSON\00"
@.str.37 = [34 x i8] c"second_person_possessive.wordlist\00"
@.str.38 = [25 x i8] c"SECOND_PERSON_POSSESSIVE\00"
@.str.39 = [33 x i8] c"second_person_reflexive.wordlist\00"
@.str.40 = [24 x i8] c"SECOND_PERSON_REFLEXIVE\00"
@.str.41 = [33 x i8] c"third_person_possessive.wordlist\00"
@.str.42 = [24 x i8] c"THIRD_PERSON_POSSESSIVE\00"
@.str.44 = [4 x i8] c"and\00"
@.str.45 = [4 x i8] c"AND\00"
@.str.46 = [3 x i8] c"as\00"
@.str.47 = [3 x i8] c"AS\00"
@.str.48 = [6 x i8] c"enter\00"
@.str.49 = [6 x i8] c"ENTER\00"
@.str.50 = [7 x i8] c"exeunt\00"
@.str.51 = [7 x i8] c"EXEUNT\00"
@.str.52 = [5 x i8] c"exit\00"
@.str.53 = [5 x i8] c"EXIT\00"
@.str.54 = [6 x i8] c"heart\00"
@.str.55 = [6 x i8] c"HEART\00"
@.str.56 = [7 x i8] c"if not\00"
@.str.57 = [7 x i8] c"IF_NOT\00"
@.str.58 = [6 x i8] c"if so\00"
@.str.59 = [6 x i8] c"IF_SO\00"
@.str.60 = [5 x i8] c"less\00"
@.str.61 = [5 x i8] c"LESS\00"
@.str.62 = [7 x i8] c"let us\00"
@.str.63 = [7 x i8] c"LET_US\00"
@.str.64 = [10 x i8] c"listen to\00"
@.str.65 = [10 x i8] c"LISTEN_TO\00"
@.str.66 = [5 x i8] c"mind\00"
@.str.67 = [5 x i8] c"MIND\00"
@.str.68 = [5 x i8] c"more\00"
@.str.69 = [5 x i8] c"MORE\00"
@.str.70 = [4 x i8] c"not\00"
@.str.71 = [4 x i8] c"NOT\00"
@.str.72 = [5 x i8] c"open\00"
@.str.73 = [5 x i8] c"OPEN\00"
@.str.74 = [11 x i8] c"proceed to\00"
@.str.75 = [11 x i8] c"PROCEED_TO\00"
@.str.76 = [7 x i8] c"recall\00"
@.str.77 = [7 x i8] c"RECALL\00"
@.str.78 = [9 x i8] c"remember\00"
@.str.79 = [9 x i8] c"REMEMBER\00"
@.str.80 = [10 x i8] c"return to\00"
@.str.81 = [10 x i8] c"RETURN_TO\00"
@.str.82 = [6 x i8] c"speak\00"
@.str.83 = [6 x i8] c"SPEAK\00"
@.str.84 = [5 x i8] c"than\00"
@.str.85 = [5 x i8] c"THAN\00"
@.str.86 = [12 x i8] c"the cube of\00"
@.str.87 = [12 x i8] c"THE_CUBE_OF\00"
@.str.88 = [23 x i8] c"the difference between\00"
@.str.89 = [23 x i8] c"THE_DIFFERENCE_BETWEEN\00"
@.str.90 = [17 x i8] c"the factorial of\00"
@.str.91 = [17 x i8] c"THE_FACTORIAL_OF\00"
@.str.92 = [15 x i8] c"the product of\00"
@.str.93 = [15 x i8] c"THE_PRODUCT_OF\00"
@.str.94 = [21 x i8] c"the quotient between\00"
@.str.95 = [21 x i8] c"THE_QUOTIENT_BETWEEN\00"
@.str.96 = [38 x i8] c"the remainder of the quotient between\00"
@.str.97 = [38 x i8] c"THE_REMAINDER_OF_THE_QUOTIENT_BETWEEN\00"
@.str.98 = [14 x i8] c"the square of\00"
@.str.99 = [14 x i8] c"THE_SQUARE_OF\00"
@.str.100 = [19 x i8] c"the square root of\00"
@.str.101 = [19 x i8] c"THE_SQUARE_ROOT_OF\00"
@.str.102 = [11 x i8] c"the sum of\00"
@.str.103 = [11 x i8] c"THE_SUM_OF\00"
@.str.104 = [6 x i8] c"twice\00"
@.str.105 = [6 x i8] c"TWICE\00"
@.str.106 = [8 x i8] c"we must\00"
@.str.107 = [8 x i8] c"WE_MUST\00"
@.str.108 = [9 x i8] c"we shall\00"
@.str.109 = [9 x i8] c"WE_SHALL\00"
@.str.110 = [19 x i8] c"terminals.metaflex\00"
@.str.111 = [41 x i8] c"\0A /* rules for terminals from file %s */\00"
@.str.112 = [26 x i8] c"user_code_bottom.metaflex\00"
@str = [26 x i8] c"\0A /* single word rules */\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [4096 x i8]
%4 = getelementptr inbounds [4096 x i8], [4096 x i8]* %3, i64 0, i64 0
%5 = icmp slt i32 %0, 2
br i1 %5, label %6, label %10
6: ; preds = %2
%7 = tail call i64 @malloc(i32 2)
%8 = inttoptr i64 %7 to i8*
%9 = tail call i32 @strcpy(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %19
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = tail call i32 @strlen(i8* %12)
%14 = add i32 %13, 1
%15 = tail call i64 @malloc(i32 %14)
%16 = inttoptr i64 %15 to i8*
%17 = load i8*, i8** %11
%18 = tail call i32 @strcpy(i8* %16, i8* %17)
br label %19
19: ; preds = %10, %6
%20 = phi i8* [ %8, %6 ], [ %16, %10 ]
%21 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%22 = call i32 @insert_file(i8* %4)
%23 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%24 = call i32 @insert_file(i8* %4)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%26 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%27 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%28 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%29 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%30 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%31 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
%32 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0))
%33 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0))
%34 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.13, i64 0, i64 0))
%35 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.14, i64 0, i64 0))
%36 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.15, i64 0, i64 0))
%37 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0))
%38 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.17, i64 0, i64 0))
%39 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.18, i64 0, i64 0))
%40 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.19, i64 0, i64 0))
%41 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0))
%42 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.21, i64 0, i64 0))
%43 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0))
%44 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.23, i64 0, i64 0))
%45 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.24, i64 0, i64 0))
%46 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.25, i64 0, i64 0))
%47 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.26, i64 0, i64 0))
%48 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.27, i64 0, i64 0))
%49 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i64 0, i64 0))
%50 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.29, i64 0, i64 0))
%51 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.30, i64 0, i64 0))
%52 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.31, i64 0, i64 0))
%53 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.32, i64 0, i64 0))
%54 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.33, i64 0, i64 0))
%55 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.34, i64 0, i64 0))
%56 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.35, i64 0, i64 0))
%57 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.36, i64 0, i64 0))
%58 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.37, i64 0, i64 0))
%59 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.38, i64 0, i64 0))
%60 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.39, i64 0, i64 0))
%61 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.40, i64 0, i64 0))
%62 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.41, i64 0, i64 0))
%63 = call i32 @rules_from_file(i8* %4, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.42, i64 0, i64 0))
%64 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
%65 = call i32 @rule_for_word(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.44, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.45, i64 0, i64 0))
%66 = call i32 @rule_for_word(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.46, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.47, i64 0, i64 0))
%67 = call i32 @rule_for_word(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.48, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.49, i64 0, i64 0))
%68 = call i32 @rule_for_word(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.50, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.51, i64 0, i64 0))
%69 = call i32 @rule_for_word(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.52, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.53, i64 0, i64 0))
%70 = call i32 @rule_for_word(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.54, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.55, i64 0, i64 0))
%71 = call i32 @rule_for_word(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.56, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.57, i64 0, i64 0))
%72 = call i32 @rule_for_word(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.58, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.59, i64 0, i64 0))
%73 = call i32 @rule_for_word(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.60, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.61, i64 0, i64 0))
%74 = call i32 @rule_for_word(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.62, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.63, i64 0, i64 0))
%75 = call i32 @rule_for_word(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.64, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.65, i64 0, i64 0))
%76 = call i32 @rule_for_word(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.66, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.67, i64 0, i64 0))
%77 = call i32 @rule_for_word(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.68, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.69, i64 0, i64 0))
%78 = call i32 @rule_for_word(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.70, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.71, i64 0, i64 0))
%79 = call i32 @rule_for_word(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.72, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.73, i64 0, i64 0))
%80 = call i32 @rule_for_word(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.74, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.75, i64 0, i64 0))
%81 = call i32 @rule_for_word(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.76, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.77, i64 0, i64 0))
%82 = call i32 @rule_for_word(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.78, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.79, i64 0, i64 0))
%83 = call i32 @rule_for_word(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.80, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.81, i64 0, i64 0))
%84 = call i32 @rule_for_word(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.82, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.83, i64 0, i64 0))
%85 = call i32 @rule_for_word(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.84, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.85, i64 0, i64 0))
%86 = call i32 @rule_for_word(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.86, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.87, i64 0, i64 0))
%87 = call i32 @rule_for_word(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.88, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.89, i64 0, i64 0))
%88 = call i32 @rule_for_word(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.90, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.91, i64 0, i64 0))
%89 = call i32 @rule_for_word(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.92, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.93, i64 0, i64 0))
%90 = call i32 @rule_for_word(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.94, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.95, i64 0, i64 0))
%91 = call i32 @rule_for_word(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.96, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.97, i64 0, i64 0))
%92 = call i32 @rule_for_word(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.98, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.99, i64 0, i64 0))
%93 = call i32 @rule_for_word(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.100, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.101, i64 0, i64 0))
%94 = call i32 @rule_for_word(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.102, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.103, i64 0, i64 0))
%95 = call i32 @rule_for_word(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.104, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.105, i64 0, i64 0))
%96 = call i32 @rule_for_word(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.106, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.107, i64 0, i64 0))
%97 = call i32 @rule_for_word(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.108, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.109, i64 0, i64 0))
%98 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.110, i64 0, i64 0))
%99 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.111, i64 0, i64 0), i8* %4)
%100 = call i32 @insert_file(i8* %4)
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%102 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.112, i64 0, i64 0))
%103 = call i32 @insert_file(i8* %4)
%104 = call i32 @free(i8* %20)
ret i32 0
}