#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ adn_real_exp(char *, int /*<<< orphan*/ *,
                                int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                                char *);
int /*<<< orphan*/ adn_sintetico_exp(char *, int /*<<< orphan*/ *,
                                     int /*<<< orphan*/ *,
                                     int /*<<< orphan*/ *);
int /*<<< orphan*/ alfabeto_binario_exp(char *, int /*<<< orphan*/ *,
                                        int /*<<< orphan*/ *,
                                        int /*<<< orphan*/ *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ getpid();
int /*<<< orphan*/ lenguaje_real_exp(char *, int /*<<< orphan*/ *,
                                     int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                                     char *);
int /*<<< orphan*/ lenguaje_sintetico_exp(char *, int /*<<< orphan*/ *,
                                          int /*<<< orphan*/ *,
                                          int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ srand48(int /*<<< orphan*/);
int main() {
  srand48(getpid());
  FILE *fbf;
  FILE *fkmp;
  FILE *fbmh;
  fbf = fopen("fuerzabruta_bin.dat", "wt");
  fkmp = fopen("kmp_bin.dat", "wt");
  fbmh = fopen("bmh_bin.dat", "wt");
  printf("Tarea 1 CC4102\nEmpezando Iteraciones\n\n");
  alfabeto_binario_exp("Alfabeto Binario", fbf, fkmp, fbmh);
  fclose(fbf);
  fclose(fkmp);
  fclose(fbmh);
  fbf = fopen("fuerzabruta_adnreal.dat", "wt");
  fkmp = fopen("kmp_adnreal.dat", "wt");
  fbmh = fopen("bmh_adnreal.dat", "wt");
  adn_real_exp("ADN Real", fbf, fkmp, fbmh, "../texts/dna");
  fclose(fbf);
  fclose(fkmp);
  fclose(fbmh);
  fbf = fopen("fuerzabruta_adnsintetico.dat", "wt");
  fkmp = fopen("kmp_adnsintetico.dat", "wt");
  fbmh = fopen("bmh_adnsintetico.dat", "wt");
  adn_sintetico_exp("ADN Sintetico", fbf, fkmp, fbmh);
  fclose(fbf);
  fclose(fkmp);
  fclose(fbmh);
  fbf = fopen("fuerzabruta_lenguajereal.dat", "wt");
  fkmp = fopen("kmp_lenguajereal.dat", "wt");
  fbmh = fopen("bmh_lenguajereal.dat", "wt");
  lenguaje_real_exp("Lenguaje Real", fbf, fkmp, fbmh, "../texts/english");
  fclose(fbf);
  fclose(fkmp);
  fclose(fbmh);
  fbf = fopen("fuerzabruta_lenguajesint.dat", "wt");
  fkmp = fopen("kmp_lenguajesint.dat", "wt");
  fbmh = fopen("bmh_lenguajersint.dat", "wt");
  lenguaje_sintetico_exp("Lenguaje Sintetico", fbf, fkmp, fbmh);
  fclose(fbf);
  fclose(fkmp);
  fclose(fbmh);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <getpid@plt>
mov    %eax,%edi
call   10b0 <srand48@plt>
lea    0xe3c(%rip),%rdi
lea    0xe49(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x10(%rbp)
lea    0xe3c(%rip),%rdi
lea    0xe32(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x18(%rbp)
lea    0xe31(%rip),%rdi
lea    0xe1b(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x20(%rbp)
lea    0xe26(%rip),%rdi
call   1070 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
lea    0xe35(%rip),%rdi
call   1050 <alfabeto_binario_exp@plt>
mov    -0x10(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1060 <fclose@plt>
lea    0xe1f(%rip),%rdi
lea    0xdc5(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x10(%rbp)
lea    0xe20(%rip),%rdi
lea    0xdae(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x18(%rbp)
lea    0xe19(%rip),%rdi
lea    0xd97(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
lea    0xe06(%rip),%rdi
lea    0xe08(%rip),%r8
call   1030 <adn_real_exp@plt>
mov    -0x10(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1060 <fclose@plt>
lea    0xdee(%rip),%rdi
lea    0xd46(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x10(%rbp)
lea    0xdf4(%rip),%rdi
lea    0xd2f(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x18(%rbp)
lea    0xdf2(%rip),%rdi
lea    0xd18(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
lea    0xde4(%rip),%rdi
call   10a0 <adn_sintetico_exp@plt>
mov    -0x10(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1060 <fclose@plt>
lea    0xdcb(%rip),%rdi
lea    0xcce(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x10(%rbp)
lea    0xdd1(%rip),%rdi
lea    0xcb7(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x18(%rbp)
lea    0xdcf(%rip),%rdi
lea    0xca0(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
lea    0xdc1(%rip),%rdi
lea    0xdc8(%rip),%r8
call   1080 <lenguaje_real_exp@plt>
mov    -0x10(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1060 <fclose@plt>
lea    0xdb2(%rip),%rdi
lea    0xc4f(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x10(%rbp)
lea    0xdb8(%rip),%rdi
lea    0xc38(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x18(%rbp)
lea    0xdb6(%rip),%rdi
lea    0xc21(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
lea    0xda9(%rip),%rdi
call   1090 <lenguaje_sintetico_exp@plt>
mov    -0x10(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1060 <fclose@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
xor    %eax,%eax
call   1050 <getpid@plt>
mov    %eax,%edi
call   10b0 <srand48@plt>
lea    0xe43(%rip),%rdi
lea    0xe50(%rip),%r14
mov    %r14,%rsi
call   10c0 <fopen@plt>
mov    %rax,%r15
lea    0xe41(%rip),%rdi
mov    %r14,%rsi
call   10c0 <fopen@plt>
mov    %rax,%r12
lea    0xe3b(%rip),%rdi
mov    %r14,%rsi
call   10c0 <fopen@plt>
mov    %rax,%rbx
lea    0xfaa(%rip),%rdi
call   1030 <puts@plt>
lea    0xe29(%rip),%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %rbx,%rcx
call   1060 <alfabeto_binario_exp@plt>
mov    %r15,%rdi
call   1070 <fclose@plt>
mov    %r12,%rdi
call   1070 <fclose@plt>
mov    %rbx,%rdi
call   1070 <fclose@plt>
lea    0xe0d(%rip),%rdi
mov    %r14,%rsi
call   10c0 <fopen@plt>
mov    %rax,%r15
lea    0xe13(%rip),%rdi
mov    %r14,%rsi
call   10c0 <fopen@plt>
mov    %rax,%r12
lea    0xe11(%rip),%rdi
mov    %r14,%rsi
call   10c0 <fopen@plt>
mov    %rax,%rbx
lea    0xe0f(%rip),%rdi
lea    0xe11(%rip),%r8
mov    %r15,%rsi
mov    %r12,%rdx
mov    %rax,%rcx
call   1040 <adn_real_exp@plt>
mov    %r15,%rdi
call   1070 <fclose@plt>
mov    %r12,%rdi
call   1070 <fclose@plt>
mov    %rbx,%rdi
call   1070 <fclose@plt>
lea    0xdf1(%rip),%rdi
mov    %r14,%rsi
call   10c0 <fopen@plt>
mov    %rax,%r15
lea    0xdfc(%rip),%rdi
mov    %r14,%rsi
call   10c0 <fopen@plt>
mov    %rax,%r12
lea    0xdff(%rip),%rdi
mov    %r14,%rsi
call   10c0 <fopen@plt>
mov    %rax,%rbx
lea    0xe02(%rip),%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %rax,%rcx
call   10a0 <adn_sintetico_exp@plt>
mov    %r15,%rdi
call   1070 <fclose@plt>
mov    %r12,%rdi
call   1070 <fclose@plt>
mov    %rbx,%rdi
call   1070 <fclose@plt>
lea    0xde3(%rip),%rdi
mov    %r14,%rsi
call   10c0 <fopen@plt>
mov    %rax,%r15
lea    0xdee(%rip),%rdi
mov    %r14,%rsi
call   10c0 <fopen@plt>
mov    %rax,%r12
lea    0xdf1(%rip),%rdi
mov    %r14,%rsi
call   10c0 <fopen@plt>
mov    %rax,%rbx
lea    0xdf4(%rip),%rdi
lea    0xdfb(%rip),%r8
mov    %r15,%rsi
mov    %r12,%rdx
mov    %rax,%rcx
call   1080 <lenguaje_real_exp@plt>
mov    %r15,%rdi
call   1070 <fclose@plt>
mov    %r12,%rdi
call   1070 <fclose@plt>
mov    %rbx,%rdi
call   1070 <fclose@plt>
lea    0xddf(%rip),%rdi
mov    %r14,%rsi
call   10c0 <fopen@plt>
mov    %rax,%r15
lea    0xdea(%rip),%rdi
mov    %r14,%rsi
call   10c0 <fopen@plt>
mov    %rax,%r12
lea    0xded(%rip),%rdi
mov    %r14,%rsi
call   10c0 <fopen@plt>
mov    %rax,%rbx
lea    0xdf1(%rip),%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %rax,%rcx
call   1090 <lenguaje_sintetico_exp@plt>
mov    %r15,%rdi
call   1070 <fclose@plt>
mov    %r12,%rdi
call   1070 <fclose@plt>
mov    %rbx,%rdi
call   1070 <fclose@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [20 x i8] c"fuerzabruta_bin.dat\00"
@.str.1 = [3 x i8] c"wt\00"
@.str.2 = [12 x i8] c"kmp_bin.dat\00"
@.str.3 = [12 x i8] c"bmh_bin.dat\00"
@.str.4 = [39 x i8] c"Tarea 1 CC4102\0AEmpezando Iteraciones\0A\0A\00"
@.str.5 = [17 x i8] c"Alfabeto Binario\00"
@.str.6 = [24 x i8] c"fuerzabruta_adnreal.dat\00"
@.str.7 = [16 x i8] c"kmp_adnreal.dat\00"
@.str.8 = [16 x i8] c"bmh_adnreal.dat\00"
@.str.9 = [9 x i8] c"ADN Real\00"
@.str.10 = [13 x i8] c"../texts/dna\00"
@.str.11 = [29 x i8] c"fuerzabruta_adnsintetico.dat\00"
@.str.12 = [21 x i8] c"kmp_adnsintetico.dat\00"
@.str.13 = [21 x i8] c"bmh_adnsintetico.dat\00"
@.str.14 = [14 x i8] c"ADN Sintetico\00"
@.str.15 = [29 x i8] c"fuerzabruta_lenguajereal.dat\00"
@.str.16 = [21 x i8] c"kmp_lenguajereal.dat\00"
@.str.17 = [21 x i8] c"bmh_lenguajereal.dat\00"
@.str.18 = [14 x i8] c"Lenguaje Real\00"
@.str.19 = [17 x i8] c"../texts/english\00"
@.str.20 = [29 x i8] c"fuerzabruta_lenguajesint.dat\00"
@.str.21 = [21 x i8] c"kmp_lenguajesint.dat\00"
@.str.22 = [22 x i8] c"bmh_lenguajersint.dat\00"
@.str.23 = [19 x i8] c"Lenguaje Sintetico\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca i32*
store i32 0, i32* %1
%5 = call i32 (...) @getpid()
%6 = call i32 @srand48(i32 %5)
%7 = call i32* @fopen(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %7, i32** %2
%8 = call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %8, i32** %3
%9 = call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %9, i32** %4
%10 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32*, i32** %2
%12 = load i32*, i32** %3
%13 = load i32*, i32** %4
%14 = call i32 @alfabeto_binario_exp(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32* %11, i32* %12, i32* %13)
%15 = load i32*, i32** %2
%16 = call i32 @fclose(i32* %15)
%17 = load i32*, i32** %3
%18 = call i32 @fclose(i32* %17)
%19 = load i32*, i32** %4
%20 = call i32 @fclose(i32* %19)
%21 = call i32* @fopen(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %21, i32** %2
%22 = call i32* @fopen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %22, i32** %3
%23 = call i32* @fopen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %23, i32** %4
%24 = load i32*, i32** %2
%25 = load i32*, i32** %3
%26 = load i32*, i32** %4
%27 = call i32 @adn_real_exp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i32* %24, i32* %25, i32* %26, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%28 = load i32*, i32** %2
%29 = call i32 @fclose(i32* %28)
%30 = load i32*, i32** %3
%31 = call i32 @fclose(i32* %30)
%32 = load i32*, i32** %4
%33 = call i32 @fclose(i32* %32)
%34 = call i32* @fopen(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %34, i32** %2
%35 = call i32* @fopen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %35, i32** %3
%36 = call i32* @fopen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %36, i32** %4
%37 = load i32*, i32** %2
%38 = load i32*, i32** %3
%39 = load i32*, i32** %4
%40 = call i32 @adn_sintetico_exp(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i32* %37, i32* %38, i32* %39)
%41 = load i32*, i32** %2
%42 = call i32 @fclose(i32* %41)
%43 = load i32*, i32** %3
%44 = call i32 @fclose(i32* %43)
%45 = load i32*, i32** %4
%46 = call i32 @fclose(i32* %45)
%47 = call i32* @fopen(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %47, i32** %2
%48 = call i32* @fopen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %48, i32** %3
%49 = call i32* @fopen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %49, i32** %4
%50 = load i32*, i32** %2
%51 = load i32*, i32** %3
%52 = load i32*, i32** %4
%53 = call i32 @lenguaje_real_exp(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.18, i64 0, i64 0), i32* %50, i32* %51, i32* %52, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.19, i64 0, i64 0))
%54 = load i32*, i32** %2
%55 = call i32 @fclose(i32* %54)
%56 = load i32*, i32** %3
%57 = call i32 @fclose(i32* %56)
%58 = load i32*, i32** %4
%59 = call i32 @fclose(i32* %58)
%60 = call i32* @fopen(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %60, i32** %2
%61 = call i32* @fopen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %61, i32** %3
%62 = call i32* @fopen(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %62, i32** %4
%63 = load i32*, i32** %2
%64 = load i32*, i32** %3
%65 = load i32*, i32** %4
%66 = call i32 @lenguaje_sintetico_exp(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.23, i64 0, i64 0), i32* %63, i32* %64, i32* %65)
%67 = load i32*, i32** %2
%68 = call i32 @fclose(i32* %67)
%69 = load i32*, i32** %3
%70 = call i32 @fclose(i32* %69)
%71 = load i32*, i32** %4
%72 = call i32 @fclose(i32* %71)
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"fuerzabruta_bin.dat\00"
@.str.1 = [3 x i8] c"wt\00"
@.str.2 = [12 x i8] c"kmp_bin.dat\00"
@.str.3 = [12 x i8] c"bmh_bin.dat\00"
@.str.5 = [17 x i8] c"Alfabeto Binario\00"
@.str.6 = [24 x i8] c"fuerzabruta_adnreal.dat\00"
@.str.7 = [16 x i8] c"kmp_adnreal.dat\00"
@.str.8 = [16 x i8] c"bmh_adnreal.dat\00"
@.str.9 = [9 x i8] c"ADN Real\00"
@.str.10 = [13 x i8] c"../texts/dna\00"
@.str.11 = [29 x i8] c"fuerzabruta_adnsintetico.dat\00"
@.str.12 = [21 x i8] c"kmp_adnsintetico.dat\00"
@.str.13 = [21 x i8] c"bmh_adnsintetico.dat\00"
@.str.14 = [14 x i8] c"ADN Sintetico\00"
@.str.15 = [29 x i8] c"fuerzabruta_lenguajereal.dat\00"
@.str.16 = [21 x i8] c"kmp_lenguajereal.dat\00"
@.str.17 = [21 x i8] c"bmh_lenguajereal.dat\00"
@.str.18 = [14 x i8] c"Lenguaje Real\00"
@.str.19 = [17 x i8] c"../texts/english\00"
@.str.20 = [29 x i8] c"fuerzabruta_lenguajesint.dat\00"
@.str.21 = [21 x i8] c"kmp_lenguajesint.dat\00"
@.str.22 = [22 x i8] c"bmh_lenguajersint.dat\00"
@.str.23 = [19 x i8] c"Lenguaje Sintetico\00"
@str = [38 x i8] c"Tarea 1 CC4102\0AEmpezando Iteraciones\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @getpid()
%2 = tail call i32 @srand48(i32 %1)
%3 = tail call i32* @fopen(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str, i64 0, i64 0))
%7 = tail call i32 @alfabeto_binario_exp(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32* %3, i32* %4, i32* %5)
%8 = tail call i32 @fclose(i32* %3)
%9 = tail call i32 @fclose(i32* %4)
%10 = tail call i32 @fclose(i32* %5)
%11 = tail call i32* @fopen(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%12 = tail call i32* @fopen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%13 = tail call i32* @fopen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%14 = tail call i32 @adn_real_exp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i32* %11, i32* %12, i32* %13, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%15 = tail call i32 @fclose(i32* %11)
%16 = tail call i32 @fclose(i32* %12)
%17 = tail call i32 @fclose(i32* %13)
%18 = tail call i32* @fopen(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%19 = tail call i32* @fopen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%20 = tail call i32* @fopen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%21 = tail call i32 @adn_sintetico_exp(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i32* %18, i32* %19, i32* %20)
%22 = tail call i32 @fclose(i32* %18)
%23 = tail call i32 @fclose(i32* %19)
%24 = tail call i32 @fclose(i32* %20)
%25 = tail call i32* @fopen(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%26 = tail call i32* @fopen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%27 = tail call i32* @fopen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%28 = tail call i32 @lenguaje_real_exp(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.18, i64 0, i64 0), i32* %25, i32* %26, i32* %27, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.19, i64 0, i64 0))
%29 = tail call i32 @fclose(i32* %25)
%30 = tail call i32 @fclose(i32* %26)
%31 = tail call i32 @fclose(i32* %27)
%32 = tail call i32* @fopen(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%33 = tail call i32* @fopen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%34 = tail call i32* @fopen(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%35 = tail call i32 @lenguaje_sintetico_exp(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.23, i64 0, i64 0), i32* %32, i32* %33, i32* %34)
%36 = tail call i32 @fclose(i32* %32)
%37 = tail call i32 @fclose(i32* %33)
%38 = tail call i32 @fclose(i32* %34)
ret i32 0
}