#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*/ time_t;
struct tm {
  int dummy;
};
typedef int /*<<< orphan*/ clock_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ clock();
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *);
struct tm *localtime(int /*<<< orphan*/ *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, int, int, int, int);
int /*<<< orphan*/ strftime(char *, int, char *, struct tm *);
int /*<<< orphan*/ system(char *);
int /*<<< orphan*/ time(int /*<<< orphan*/);
void main(int argc, char **argv) {
  clock_t t_ini, t_fin;
  time_t tiempo = time(0);
  struct tm *tlocal;
  char output[128];
  int i, j, h, x, z;
  int interferencias[11];
  interferencias[0] = -15;
  interferencias[1] = -5;
  interferencias[2] = -3;
  interferencias[3] = -2;
  interferencias[4] = -1;
  interferencias[5] = 0;
  interferencias[6] = 1;
  interferencias[7] = 2;
  interferencias[8] = 3;
  interferencias[9] = 5;
  interferencias[10] = 15;
  FILE *output_fd;
  output_fd = fopen("TesterControl.txt", "w");
  double secs;
  char **pruebas;
  int n = (4 * 8 * 4 * 11) + 1;
  pruebas = (char **)malloc(n * sizeof(char *));
  for (i = 0; i < n; i++) {
    pruebas[i] = (char *)malloc(200 * sizeof(char));
  }
  pruebas[0] = "./femtosim -n1000  -s0 -S25 -b0";
  i = 1;
  x = 1;
  for (j = 0; j < 8; j++) {
    for (h = 0; h < 4; h++) {
      for (z = 0; z < 11; z++) {
        sprintf(pruebas[i],
                "./femtosim -n1000  -s0 -S25 -a -I1 -w%d -b100%d -p%d,%d",
                interferencias[z], x, j, h);
        i++;
        sprintf(
            pruebas[i],
            "./femtosim -n1000  -s0 -S25 -a -I1 -w%d -b200%d -p%d,%d -A1 -D",
            interferencias[z], x, j, h);
        i++;
        sprintf(pruebas[i],
                "./femtosim -n1000  -s0 -S25 -I1 -w%d -b300%d -p%d,%d",
                interferencias[z], x, j, h);
        i++;
        sprintf(pruebas[i],
                "./femtosim -n1000  -s0 -S25 -I1 -w%d -b400%d -p%d,%d -A1 -D",
                interferencias[z], x, j, h);
        i++;
        x++;
      }
    }
  }
  for (i = 0; i < n; i++) {
    printf("\n%s", pruebas[i]);
    t_ini = clock();
    fprintf(output_fd, "\n%s", pruebas[i]);
    tiempo = time(0);
    tlocal = localtime(&tiempo);
    strftime(output, 128, "%d/%m/%y %H:%M:%S", tlocal);
    fprintf(output_fd, "\n\tInicio: \t%s", output);
    system(pruebas[i]);
    tiempo = time(0);
    tlocal = localtime(&tiempo);
    strftime(output, 128, "%d/%m/%y %H:%M:%S", tlocal);
    fprintf(output_fd, "\n\tFin: \t%s", output);
  }
  fclose(output_fd);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %edi,%edi
call   1090 <time@plt>
mov    %eax,-0x1c(%rbp)
movl   $0xfffffff1,-0xf0(%rbp)
ff ff ff
movl   $0xfffffffb,-0xec(%rbp)
ff ff ff
movl   $0xfffffffd,-0xe8(%rbp)
ff ff ff
movl   $0xfffffffe,-0xe4(%rbp)
ff ff ff
movl   $0xffffffff,-0xe0(%rbp)
ff ff ff
movl   $0x0,-0xdc(%rbp)
movl   $0x1,-0xd8(%rbp)
movl   $0x2,-0xd4(%rbp)
movl   $0x3,-0xd0(%rbp)
movl   $0x5,-0xcc(%rbp)
movl   $0xf,-0xc8(%rbp)
lea    0xdbf(%rip),%rdi
lea    0xdca(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0xf8(%rbp)
movl   $0x581,-0x10c(%rbp)
movslq -0x10c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x108(%rbp)
movl   $0x0,-0xb4(%rbp)
mov    -0xb4(%rbp),%eax
cmp    -0x10c(%rbp),%eax
jge    12c6 <main+0x116>
mov    $0xc8,%edi
call   10a0 <malloc@plt>
mov    %rax,%rdx
mov    -0x108(%rbp),%rax
movslq -0xb4(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0xb4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
jmp    1281 <main+0xd1>
mov    -0x108(%rbp),%rax
lea    0xd40(%rip),%rcx
mov    %rcx,(%rax)
movl   $0x1,-0xb4(%rbp)
movl   $0x1,-0xc0(%rbp)
movl   $0x0,-0xb8(%rbp)
cmpl   $0x8,-0xb8(%rbp)
jge    14c1 <main+0x311>
movl   $0x0,-0xbc(%rbp)
cmpl   $0x4,-0xbc(%rbp)
jge    14a8 <main+0x2f8>
movl   $0x0,-0xc4(%rbp)
cmpl   $0xb,-0xc4(%rbp)
jge    148f <main+0x2df>
mov    -0x108(%rbp),%rax
movslq -0xb4(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
movslq -0xc4(%rbp),%rax
mov    -0xf0(%rbp,%rax,4),%edx
mov    -0xc0(%rbp),%ecx
mov    -0xb8(%rbp),%r8d
mov    -0xbc(%rbp),%r9d
lea    0xcc9(%rip),%rsi
call   10d0 <sprintf@plt>
mov    -0xb4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
mov    -0x108(%rbp),%rax
movslq -0xb4(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
movslq -0xc4(%rbp),%rax
mov    -0xf0(%rbp,%rax,4),%edx
mov    -0xc0(%rbp),%ecx
mov    -0xb8(%rbp),%r8d
mov    -0xbc(%rbp),%r9d
lea    0xcb2(%rip),%rsi
call   10d0 <sprintf@plt>
mov    -0xb4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
mov    -0x108(%rbp),%rax
movslq -0xb4(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
movslq -0xc4(%rbp),%rax
mov    -0xf0(%rbp,%rax,4),%edx
mov    -0xc0(%rbp),%ecx
mov    -0xb8(%rbp),%r8d
mov    -0xbc(%rbp),%r9d
lea    0xca2(%rip),%rsi
call   10d0 <sprintf@plt>
mov    -0xb4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
mov    -0x108(%rbp),%rax
movslq -0xb4(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
movslq -0xc4(%rbp),%rax
mov    -0xf0(%rbp,%rax,4),%edx
mov    -0xc0(%rbp),%ecx
mov    -0xb8(%rbp),%r8d
mov    -0xbc(%rbp),%r9d
lea    0xc88(%rip),%rsi
call   10d0 <sprintf@plt>
mov    -0xb4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
mov    -0xc0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc0(%rbp)
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    1323 <main+0x173>
jmp    1494 <main+0x2e4>
mov    -0xbc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbc(%rbp)
jmp    130c <main+0x15c>
jmp    14ad <main+0x2fd>
mov    -0xb8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb8(%rbp)
jmp    12f5 <main+0x145>
movl   $0x0,-0xb4(%rbp)
mov    -0xb4(%rbp),%eax
cmp    -0x10c(%rbp),%eax
jge    15ef <main+0x43f>
mov    -0x108(%rbp),%rax
movslq -0xb4(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xc26(%rip),%rdi
call   1070 <printf@plt>
mov    $0x0,%al
call   1040 <clock@plt>
mov    %eax,-0x14(%rbp)
mov    -0xf8(%rbp),%rdi
mov    -0x108(%rbp),%rax
movslq -0xb4(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xbf7(%rip),%rsi
call   1080 <fprintf@plt>
xor    %edi,%edi
call   1090 <time@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x1c(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0x28(%rbp)
lea    -0xb0(%rbp),%rdi
mov    -0x28(%rbp),%rcx
mov    $0x80,%esi
lea    0xbc8(%rip),%rdx
call   10b0 <strftime@plt>
mov    -0xf8(%rbp),%rdi
lea    -0xb0(%rbp),%rdx
lea    0xbc0(%rip),%rsi
call   1080 <fprintf@plt>
mov    -0x108(%rbp),%rax
movslq -0xb4(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1060 <system@plt>
xor    %edi,%edi
call   1090 <time@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x1c(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0x28(%rbp)
lea    -0xb0(%rbp),%rdi
mov    -0x28(%rbp),%rcx
mov    $0x80,%esi
lea    0xb64(%rip),%rdx
call   10b0 <strftime@plt>
mov    -0xf8(%rbp),%rdi
lea    -0xb0(%rbp),%rdx
lea    0xb6a(%rip),%rsi
call   1080 <fprintf@plt>
mov    -0xb4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
jmp    14cb <main+0x31b>
mov    -0xf8(%rbp),%rdi
call   1050 <fclose@plt>
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
xor    %ebx,%ebx
xor    %edi,%edi
call   1090 <time@plt>
mov    %eax,(%rsp)
movaps 0xe2c(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe30(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movabs $0x500000003,%rax
mov    %rax,0x50(%rsp)
movl   $0xf,0x58(%rsp)
lea    0xe1d(%rip),%rdi
lea    0xe28(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,0x28(%rsp)
mov    $0x2c08,%edi
call   10a0 <malloc@plt>
mov    %rax,%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0xc8,%edi
call   10a0 <malloc@plt>
mov    %rax,0x0(%rbp,%rbx,8)
add    $0x1,%rbx
cmp    $0x581,%rbx
jne    1230 <main+0x80>
lea    0xde1(%rip),%rax
mov    %rbp,0x18(%rsp)
mov    %rax,0x0(%rbp)
mov    $0x1,%eax
xor    %ecx,%ecx
mov    $0x1,%edx
mov    0x18(%rsp),%r14
nopl   (%rax)
mov    %rcx,0x20(%rsp)
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
mov    %ecx,0x4(%rsp)
movslq %edx,%rdx
mov    %eax,%eax
mov    %rax,0x10(%rsp)
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rdx,0x8(%rsp)
mov    0x10(%rsp),%rax
lea    (%rax,%r15,1),%r13d
mov    (%r14,%rdx,8),%rdi
mov    0x30(%rsp,%r15,4),%ebp
lea    0xd96(%rip),%rsi
mov    %ebp,%edx
mov    %r13d,%ecx
mov    0x20(%rsp),%rbx
mov    %ebx,%r8d
mov    0x4(%rsp),%r12d
mov    %r12d,%r9d
call   10d0 <sprintf@plt>
mov    0x8(%rsp),%rax
mov    0x8(%r14,%rax,8),%rdi
lea    0xda3(%rip),%rsi
mov    %ebp,%edx
mov    %r13d,%ecx
mov    %ebx,%r8d
mov    %r12d,%r9d
call   10d0 <sprintf@plt>
mov    0x8(%rsp),%rax
mov    0x10(%r14,%rax,8),%rdi
lea    0xdc1(%rip),%rsi
mov    %ebp,%edx
mov    %r13d,%ecx
mov    %ebx,%r8d
mov    %r12d,%r9d
call   10d0 <sprintf@plt>
mov    0x8(%rsp),%rax
mov    0x18(%r14,%rax,8),%rdi
lea    0xdd5(%rip),%rsi
mov    %ebp,%edx
mov    %r13d,%ecx
mov    %ebx,%r8d
mov    %r12d,%r9d
call   10d0 <sprintf@plt>
mov    0x8(%rsp),%rdx
add    $0x4,%rdx
add    $0x1,%r15
cmp    $0xb,%r15
jne    12a0 <main+0xf0>
mov    0x4(%rsp),%ecx
add    $0x1,%ecx
mov    0x10(%rsp),%rax
add    %r15d,%eax
cmp    $0x4,%ecx
jne    1280 <main+0xd0>
mov    0x20(%rsp),%rcx
add    $0x1,%ecx
mov    0x10(%rsp),%rax
add    %r15d,%eax
cmp    $0x8,%ecx
jne    1270 <main+0xc0>
lea    0x60(%rsp),%r15
xor    %ebx,%ebx
mov    0x28(%rsp),%r13
mov    0x18(%rsp),%r14
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%r14,%rbx,8),%rsi
lea    0xd91(%rip),%r12
mov    %r12,%rdi
call   1070 <printf@plt>
xor    %eax,%eax
call   1040 <clock@plt>
mov    (%r14,%rbx,8),%rdx
mov    %r13,%rdi
mov    %r12,%rsi
call   1080 <fprintf@plt>
xor    %edi,%edi
call   1090 <time@plt>
mov    %eax,(%rsp)
mov    %rsp,%rbp
mov    %rbp,%rdi
call   1030 <localtime@plt>
mov    %r15,%rdi
mov    $0x80,%esi
lea    0xd53(%rip),%r12
mov    %r12,%rdx
mov    %rax,%rcx
call   10b0 <strftime@plt>
mov    %r13,%rdi
lea    0xd50(%rip),%rsi
mov    %r15,%rdx
call   1080 <fprintf@plt>
mov    (%r14,%rbx,8),%rdi
call   1060 <system@plt>
xor    %edi,%edi
call   1090 <time@plt>
mov    %eax,(%rsp)
mov    %rbp,%rdi
call   1030 <localtime@plt>
mov    %r15,%rdi
mov    $0x80,%esi
mov    %r12,%rdx
mov    %rax,%rcx
call   10b0 <strftime@plt>
mov    %r13,%rdi
lea    0xd1e(%rip),%rsi
mov    %r15,%rdx
call   1080 <fprintf@plt>
add    $0x1,%rbx
cmp    $0x581,%rbx
jne    13a0 <main+0x1f0>
mov    %r13,%rdi
call   1050 <fclose@plt>
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.tm = type { i32 }
@.str = [18 x i8] c"TesterControl.txt\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [32 x i8] c"./femtosim -n1000 -s0 -S25 -b0\00"
@.str.3 = [56 x i8] c"./femtosim -n1000 -s0 -S25 -a -I1 -w%d -b100%d -p%d,%d\00"
@.str.4 = [63 x i8] c"./femtosim -n1000 -s0 -S25 -a -I1 -w%d -b200%d -p%d,%d -A1 -D\00"
@.str.5 = [53 x i8] c"./femtosim -n1000 -s0 -S25 -I1 -w%d -b300%d -p%d,%d\00"
@.str.6 = [60 x i8] c"./femtosim -n1000 -s0 -S25 -I1 -w%d -b400%d -p%d,%d -A1 -D\00"
@.str.7 = [4 x i8] c"\0A%s\00"
@.str.8 = [18 x i8] c"%d/%m/%y %H:%M:%S\00"
@.str.9 = [14 x i8] c"\0A\09Inicio: \09%s\00"
@.str.10 = [11 x i8] c"\0A\09Fin: \09%s\00"
define void @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca %struct.tm*
%9 = alloca [128 x i8]
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [11 x i32]
%16 = alloca i32*
%17 = alloca double
%18 = alloca i8**
%19 = alloca i32
store i32 %0, i32* %3
store i8** %1, i8*** %4
%20 = call i32 @time(i32 0)
store i32 %20, i32* %7
%21 = getelementptr inbounds [11 x i32], [11 x i32]* %15, i64 0, i64 0
store i32 -15, i32* %21
%22 = getelementptr inbounds [11 x i32], [11 x i32]* %15, i64 0, i64 1
store i32 -5, i32* %22
%23 = getelementptr inbounds [11 x i32], [11 x i32]* %15, i64 0, i64 2
store i32 -3, i32* %23
%24 = getelementptr inbounds [11 x i32], [11 x i32]* %15, i64 0, i64 3
store i32 -2, i32* %24
%25 = getelementptr inbounds [11 x i32], [11 x i32]* %15, i64 0, i64 4
store i32 -1, i32* %25
%26 = getelementptr inbounds [11 x i32], [11 x i32]* %15, i64 0, i64 5
store i32 0, i32* %26
%27 = getelementptr inbounds [11 x i32], [11 x i32]* %15, i64 0, i64 6
store i32 1, i32* %27
%28 = getelementptr inbounds [11 x i32], [11 x i32]* %15, i64 0, i64 7
store i32 2, i32* %28
%29 = getelementptr inbounds [11 x i32], [11 x i32]* %15, i64 0, i64 8
store i32 3, i32* %29
%30 = getelementptr inbounds [11 x i32], [11 x i32]* %15, i64 0, i64 9
store i32 5, i32* %30
%31 = getelementptr inbounds [11 x i32], [11 x i32]* %15, i64 0, i64 10
store i32 15, i32* %31
%32 = call i32* @fopen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %32, i32** %16
store i32 1409, i32* %19
%33 = load i32, i32* %19
%34 = sext i32 %33 to i64
%35 = mul i64 %34, 8
%36 = trunc i64 %35 to i32
%37 = call i64 @malloc(i32 %36)
%38 = inttoptr i64 %37 to i8**
store i8** %38, i8*** %18
store i32 0, i32* %10
br label %39
39: ; preds = %50, %2
%40 = load i32, i32* %10
%41 = load i32, i32* %19
%42 = icmp slt i32 %40, %41
br i1 %42, label %43, label %53
43: ; preds = %39
%44 = call i64 @malloc(i32 200)
%45 = inttoptr i64 %44 to i8*
%46 = load i8**, i8*** %18
%47 = load i32, i32* %10
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8*, i8** %46, i64 %48
store i8* %45, i8** %49
br label %50
50: ; preds = %43
%51 = load i32, i32* %10
%52 = add nsw i32 %51, 1
store i32 %52, i32* %10
br label %39
53: ; preds = %39
%54 = load i8**, i8*** %18
%55 = getelementptr inbounds i8*, i8** %54, i64 0
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8** %55
store i32 1, i32* %10
store i32 1, i32* %13
store i32 0, i32* %11
br label %56
56: ; preds = %138, %53
%57 = load i32, i32* %11
%58 = icmp slt i32 %57, 8
br i1 %58, label %59, label %141
59: ; preds = %56
store i32 0, i32* %12
br label %60
60: ; preds = %134, %59
%61 = load i32, i32* %12
%62 = icmp slt i32 %61, 4
br i1 %62, label %63, label %137
63: ; preds = %60
store i32 0, i32* %14
br label %64
64: ; preds = %130, %63
%65 = load i32, i32* %14
%66 = icmp slt i32 %65, 11
br i1 %66, label %67, label %133
67: ; preds = %64
%68 = load i8**, i8*** %18
%69 = load i32, i32* %10
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8*, i8** %68, i64 %70
%72 = load i8*, i8** %71
%73 = load i32, i32* %14
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [11 x i32], [11 x i32]* %15, i64 0, i64 %74
%76 = load i32, i32* %75
%77 = load i32, i32* %13
%78 = load i32, i32* %11
%79 = load i32, i32* %12
%80 = call i32 @sprintf(i8* %72, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.3, i64 0, i64 0), i32 %76, i32 %77, i32 %78, i32 %79)
%81 = load i32, i32* %10
%82 = add nsw i32 %81, 1
store i32 %82, i32* %10
%83 = load i8**, i8*** %18
%84 = load i32, i32* %10
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8*, i8** %83, i64 %85
%87 = load i8*, i8** %86
%88 = load i32, i32* %14
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [11 x i32], [11 x i32]* %15, i64 0, i64 %89
%91 = load i32, i32* %90
%92 = load i32, i32* %13
%93 = load i32, i32* %11
%94 = load i32, i32* %12
%95 = call i32 @sprintf(i8* %87, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.4, i64 0, i64 0), i32 %91, i32 %92, i32 %93, i32 %94)
%96 = load i32, i32* %10
%97 = add nsw i32 %96, 1
store i32 %97, i32* %10
%98 = load i8**, i8*** %18
%99 = load i32, i32* %10
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8*, i8** %98, i64 %100
%102 = load i8*, i8** %101
%103 = load i32, i32* %14
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [11 x i32], [11 x i32]* %15, i64 0, i64 %104
%106 = load i32, i32* %105
%107 = load i32, i32* %13
%108 = load i32, i32* %11
%109 = load i32, i32* %12
%110 = call i32 @sprintf(i8* %102, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), i32 %106, i32 %107, i32 %108, i32 %109)
%111 = load i32, i32* %10
%112 = add nsw i32 %111, 1
store i32 %112, i32* %10
%113 = load i8**, i8*** %18
%114 = load i32, i32* %10
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i8*, i8** %113, i64 %115
%117 = load i8*, i8** %116
%118 = load i32, i32* %14
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [11 x i32], [11 x i32]* %15, i64 0, i64 %119
%121 = load i32, i32* %120
%122 = load i32, i32* %13
%123 = load i32, i32* %11
%124 = load i32, i32* %12
%125 = call i32 @sprintf(i8* %117, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0), i32 %121, i32 %122, i32 %123, i32 %124)
%126 = load i32, i32* %10
%127 = add nsw i32 %126, 1
store i32 %127, i32* %10
%128 = load i32, i32* %13
%129 = add nsw i32 %128, 1
store i32 %129, i32* %13
br label %130
130: ; preds = %67
%131 = load i32, i32* %14
%132 = add nsw i32 %131, 1
store i32 %132, i32* %14
br label %64
133: ; preds = %64
br label %134
134: ; preds = %133
%135 = load i32, i32* %12
%136 = add nsw i32 %135, 1
store i32 %136, i32* %12
br label %60
137: ; preds = %60
br label %138
138: ; preds = %137
%139 = load i32, i32* %11
%140 = add nsw i32 %139, 1
store i32 %140, i32* %11
br label %56
141: ; preds = %56
store i32 0, i32* %10
br label %142
142: ; preds = %183, %141
%143 = load i32, i32* %10
%144 = load i32, i32* %19
%145 = icmp slt i32 %143, %144
br i1 %145, label %146, label %186
146: ; preds = %142
%147 = load i8**, i8*** %18
%148 = load i32, i32* %10
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds i8*, i8** %147, i64 %149
%151 = load i8*, i8** %150
%152 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %151)
%153 = call i32 (...) @clock()
store i32 %153, i32* %5
%154 = load i32*, i32** %16
%155 = load i8**, i8*** %18
%156 = load i32, i32* %10
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds i8*, i8** %155, i64 %157
%159 = load i8*, i8** %158
%160 = call i32 @fprintf(i32* %154, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %159)
%161 = call i32 @time(i32 0)
store i32 %161, i32* %7
%162 = call %struct.tm* @localtime(i32* %7)
store %struct.tm* %162, %struct.tm** %8
%163 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%164 = load %struct.tm*, %struct.tm** %8
%165 = call i32 @strftime(i8* %163, i32 128, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), %struct.tm* %164)
%166 = load i32*, i32** %16
%167 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%168 = call i32 @fprintf(i32* %166, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i8* %167)
%169 = load i8**, i8*** %18
%170 = load i32, i32* %10
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds i8*, i8** %169, i64 %171
%173 = load i8*, i8** %172
%174 = call i32 @system(i8* %173)
%175 = call i32 @time(i32 0)
store i32 %175, i32* %7
%176 = call %struct.tm* @localtime(i32* %7)
store %struct.tm* %176, %struct.tm** %8
%177 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%178 = load %struct.tm*, %struct.tm** %8
%179 = call i32 @strftime(i8* %177, i32 128, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), %struct.tm* %178)
%180 = load i32*, i32** %16
%181 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%182 = call i32 @fprintf(i32* %180, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i8* %181)
br label %183
183: ; preds = %146
%184 = load i32, i32* %10
%185 = add nsw i32 %184, 1
store i32 %185, i32* %10
br label %142
186: ; preds = %142
%187 = load i32*, i32** %16
%188 = call i32 @fclose(i32* %187)
ret void
}

LLVM IR (-O2):
%struct.tm = type { i32 }
@.str = [18 x i8] c"TesterControl.txt\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [32 x i8] c"./femtosim -n1000 -s0 -S25 -b0\00"
@.str.3 = [56 x i8] c"./femtosim -n1000 -s0 -S25 -a -I1 -w%d -b100%d -p%d,%d\00"
@.str.4 = [63 x i8] c"./femtosim -n1000 -s0 -S25 -a -I1 -w%d -b200%d -p%d,%d -A1 -D\00"
@.str.5 = [53 x i8] c"./femtosim -n1000 -s0 -S25 -I1 -w%d -b300%d -p%d,%d\00"
@.str.6 = [60 x i8] c"./femtosim -n1000 -s0 -S25 -I1 -w%d -b400%d -p%d,%d -A1 -D\00"
@.str.7 = [4 x i8] c"\0A%s\00"
@.str.8 = [18 x i8] c"%d/%m/%y %H:%M:%S\00"
@.str.9 = [14 x i8] c"\0A\09Inicio: \09%s\00"
@.str.10 = [11 x i8] c"\0A\09Fin: \09%s\00"
define void @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca [128 x i8]
%5 = alloca [11 x i32]
%6 = bitcast i32* %3 to i8*
%7 = tail call i32 @time(i32 0)
store i32 %7, i32* %3
%8 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%9 = bitcast [11 x i32]* %5 to i8*
%10 = bitcast [11 x i32]* %5 to <4 x i32>*
store <4 x i32> <i32 -15, i32 -5, i32 -3, i32 -2>, <4 x i32>* %10
%11 = getelementptr inbounds [11 x i32], [11 x i32]* %5, i64 0, i64 4
%12 = bitcast i32* %11 to <4 x i32>*
store <4 x i32> <i32 -1, i32 0, i32 1, i32 2>, <4 x i32>* %12
%13 = getelementptr inbounds [11 x i32], [11 x i32]* %5, i64 0, i64 8
store i32 3, i32* %13
%14 = getelementptr inbounds [11 x i32], [11 x i32]* %5, i64 0, i64 9
store i32 5, i32* %14
%15 = getelementptr inbounds [11 x i32], [11 x i32]* %5, i64 0, i64 10
store i32 15, i32* %15
%16 = tail call i32* @fopen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%17 = tail call i64 @malloc(i32 11272)
%18 = inttoptr i64 %17 to i8**
br label %19
19: ; preds = %2, %19
%20 = phi i64 [ 0, %2 ], [ %24, %19 ]
%21 = tail call i64 @malloc(i32 200)
%22 = inttoptr i64 %21 to i8*
%23 = getelementptr inbounds i8*, i8** %18, i64 %20
store i8* %22, i8** %23
%24 = add nuw nsw i64 %20, 1
%25 = icmp eq i64 %24, 1409
br i1 %25, label %26, label %19
26: ; preds = %19
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8** %18
br label %27
27: ; preds = %26, %65
%28 = phi i64 [ 1, %26 ], [ %58, %65 ]
%29 = phi i32 [ 0, %26 ], [ %66, %65 ]
%30 = phi i32 [ 1, %26 ], [ %59, %65 ]
br label %31
31: ; preds = %27, %62
%32 = phi i64 [ %28, %27 ], [ %58, %62 ]
%33 = phi i32 [ 0, %27 ], [ %63, %62 ]
%34 = phi i32 [ %30, %27 ], [ %59, %62 ]
%35 = shl i64 %32, 32
%36 = ashr exact i64 %35, 32
br label %37
37: ; preds = %31, %37
%38 = phi i64 [ 0, %31 ], [ %60, %37 ]
%39 = phi i64 [ %36, %31 ], [ %58, %37 ]
%40 = phi i32 [ %34, %31 ], [ %59, %37 ]
%41 = getelementptr inbounds i8*, i8** %18, i64 %39
%42 = load i8*, i8** %41
%43 = getelementptr inbounds [11 x i32], [11 x i32]* %5, i64 0, i64 %38
%44 = load i32, i32* %43
%45 = tail call i32 @sprintf(i8* dereferenceable(1) %42, i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.3, i64 0, i64 0), i32 %44, i32 %40, i32 %29, i32 %33)
%46 = add nsw i64 %39, 1
%47 = getelementptr inbounds i8*, i8** %18, i64 %46
%48 = load i8*, i8** %47
%49 = tail call i32 @sprintf(i8* dereferenceable(1) %48, i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.4, i64 0, i64 0), i32 %44, i32 %40, i32 %29, i32 %33)
%50 = add nsw i64 %39, 2
%51 = getelementptr inbounds i8*, i8** %18, i64 %50
%52 = load i8*, i8** %51
%53 = tail call i32 @sprintf(i8* dereferenceable(1) %52, i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), i32 %44, i32 %40, i32 %29, i32 %33)
%54 = add nsw i64 %39, 3
%55 = getelementptr inbounds i8*, i8** %18, i64 %54
%56 = load i8*, i8** %55
%57 = tail call i32 @sprintf(i8* dereferenceable(1) %56, i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0), i32 %44, i32 %40, i32 %29, i32 %33)
%58 = add nsw i64 %39, 4
%59 = add nsw i32 %40, 1
%60 = add nuw nsw i64 %38, 1
%61 = icmp eq i64 %60, 11
br i1 %61, label %62, label %37
62: ; preds = %37
%63 = add nuw nsw i32 %33, 1
%64 = icmp eq i32 %63, 4
br i1 %64, label %65, label %31
65: ; preds = %62
%66 = add nuw nsw i32 %29, 1
%67 = icmp eq i32 %66, 8
br i1 %67, label %68, label %27
68: ; preds = %65, %68
%69 = phi i64 [ %86, %68 ], [ 0, %65 ]
%70 = getelementptr inbounds i8*, i8** %18, i64 %69
%71 = load i8*, i8** %70
%72 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %71)
%73 = call i32 (...) @clock()
%74 = load i8*, i8** %70
%75 = call i32 @fprintf(i32* %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %74)
%76 = call i32 @time(i32 0)
store i32 %76, i32* %3
%77 = call %struct.tm* @localtime(i32* %3)
%78 = call i32 @strftime(i8* %8, i32 128, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), %struct.tm* %77)
%79 = call i32 @fprintf(i32* %16, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i8* %8)
%80 = load i8*, i8** %70
%81 = call i32 @system(i8* %80)
%82 = call i32 @time(i32 0)
store i32 %82, i32* %3
%83 = call %struct.tm* @localtime(i32* %3)
%84 = call i32 @strftime(i8* %8, i32 128, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), %struct.tm* %83)
%85 = call i32 @fprintf(i32* %16, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i8* %8)
%86 = add nuw nsw i64 %69, 1
%87 = icmp eq i64 %86, 1409
br i1 %87, label %88, label %68
88: ; preds = %68
%89 = call i32 @fclose(i32* %16)
ret void
}