#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*/ _assert(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ _debug(char *, int, int, char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fwrite(char *, int, int /*<<< orphan*/,
                          int /*<<< orphan*/ *);
int /*<<< orphan*/ getPath(char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, char *, char *, char *);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strlen(char *);
void setExpectedResult() {
  char mailPath[1000] = {'\0'};
  getPath(mailPath, "MAILBOX");
  if (mailPath == NULL)
    _debug("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/CS4098Group/Project/refs/heads/master/"
           "peos/os/virtual_repository/testSuites/testEMAILsearchEnd2End.c",
           79, 5, "error in getMailBox");
  else {
    FILE *expectedResultFile;
    char oneResult[1000] = {'\0'};
    char expectedString[1000] = {'\0'};
    expectedResultFile = fopen("EMAILsearchEnd2EndExpectedResult.txt", "w");
    _assert("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/CS4098Group/Project/refs/heads/master/"
            "peos/os/virtual_repository/testSuites/testEMAILsearchEnd2End.c",
            87, expectedResultFile);
    sprintf(oneResult, "%s%s%s", "email://", mailPath,
            "/message1@dc.engr.scu.edu\n\n");
    strcat(expectedString, oneResult);
    fwrite(expectedString, sizeof(char), strlen(expectedString),
           expectedResultFile);
    expectedString[0] = '\0';
    sprintf(oneResult, "%s%s%s", "email://", mailPath,
            "/200210081925.MAA28947@hpux31.dc.engr.scu.edu\n\n");
    strcat(expectedString, oneResult);
    fwrite(expectedString, sizeof(char), strlen(expectedString),
           expectedResultFile);
    expectedString[0] = '\0';
    sprintf(oneResult, "%s%s%s", "email://", mailPath,
            "/message3.test.case.12345@server.engr.scu.edu\n\n");
    strcat(expectedString, oneResult);
    strcat(expectedString, oneResult);
    strcat(expectedString, oneResult);
    strcat(expectedString, oneResult);
    strcat(expectedString, oneResult);
    fwrite(expectedString, sizeof(char), strlen(expectedString),
           expectedResultFile);
    expectedString[0] = '\0';
    sprintf(oneResult, "%s%s%s", "email://", mailPath,
            "/message2.test.case.12345@school.engr.scu.edu\n");
    strcat(expectedString, oneResult);
    fwrite(expectedString, sizeof(char), strlen(expectedString),
           expectedResultFile);
    expectedString[0] = '\0';
    sprintf(oneResult, "%s%s%s", "email://", mailPath,
            "/message3.test.case.12345@server.engr.scu.edu\n\n");
    strcat(expectedString, oneResult);
    fwrite(expectedString, sizeof(char), strlen(expectedString),
           expectedResultFile);
    expectedString[0] = '\0';
    sprintf(oneResult, "%s%s%s", "email://", mailPath,
            "/message7@server.engr.scu.edu\n\n");
    strcat(expectedString, oneResult);
    fwrite(expectedString, sizeof(char), strlen(expectedString),
           expectedResultFile);
    expectedString[0] = '\0';
    sprintf(oneResult, "%s%s%s", "email://", mailPath,
            "/message5.test.case@aol.com.br\n");
    strcat(expectedString, oneResult);
    sprintf(oneResult, "%s%s%s", "email://", mailPath,
            "/message1@dc.engr.scu.edu\n\n");
    strcat(expectedString, oneResult);
    fwrite(expectedString, sizeof(char), strlen(expectedString),
           expectedResultFile);
    expectedString[0] = '\0';
    sprintf(oneResult, "%s%s%s", "email://", mailPath,
            "/message5.test.case@aol.com.br\n");
    strcat(expectedString, oneResult);
    sprintf(oneResult, "%s%s%s", "email://", mailPath,
            "/message1@dc.engr.scu.edu\n");
    strcat(expectedString, oneResult);
    sprintf(oneResult, "%s%s%s", "email://", mailPath,
            "/message4@home.testing.com\n");
    strcat(expectedString, oneResult);
    sprintf(oneResult, "%s%s%s", "email://", mailPath,
            "/message7@server.engr.scu.edu\n\n");
    strcat(expectedString, oneResult);
    fwrite(expectedString, sizeof(char), strlen(expectedString),
           expectedResultFile);
    expectedString[0] = '\0';
    sprintf(oneResult, "%s%s%s", "email://", mailPath,
            "/message1@dc.engr.scu.edu\n");
    strcat(expectedString, oneResult);
    sprintf(oneResult, "%s%s%s", "email://", mailPath,
            "/message5.test.case@aol.com.br\n\n");
    strcat(expectedString, oneResult);
    fwrite(expectedString, sizeof(char), strlen(expectedString),
           expectedResultFile);
    expectedString[0] = '\0';
    sprintf(oneResult, "%s%s%s", "email://", mailPath,
            "/message7@server.engr.scu.edu\n\n");
    strcat(expectedString, oneResult);
    fwrite(expectedString, sizeof(char), strlen(expectedString),
           expectedResultFile);
    expectedString[0] = '\0';
    sprintf(oneResult, "%s%s%s", "email://", mailPath,
            "/200210081925.MAA28947@hpux31.dc.engr.scu.edu\n\n");
    strcat(expectedString, oneResult);
    fwrite(expectedString, sizeof(char), strlen(expectedString),
           expectedResultFile);
    expectedString[0] = '\0';
    fclose(expectedResultFile);
  }
}


x86 assembly (clang, -O0):
<setExpectedResult>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc30,%rsp
lea    -0x3f0(%rbp),%rdi
xor    %esi,%esi
mov    $0x3e8,%edx
call   1050 <memset@plt>
lea    -0x3f0(%rbp),%rdi
lea    0xe44(%rip),%rsi
call   1060 <getPath@plt>
lea    -0x7e0(%rbp),%rdi
xor    %esi,%esi
mov    $0x3e8,%edx
call   1050 <memset@plt>
lea    -0xbd0(%rbp),%rdi
xor    %esi,%esi
mov    $0x3e8,%edx
call   1050 <memset@plt>
lea    0xe1a(%rip),%rdi
lea    0xe38(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x3f8(%rbp)
mov    -0x3f8(%rbp),%rdx
lea    0xe20(%rip),%rdi
mov    $0x57,%esi
call   10b0 <_assert@plt>
lea    -0x7e0(%rbp),%rdi
lea    -0x3f0(%rbp),%rcx
lea    0xec0(%rip),%rsi
lea    0xec0(%rip),%rdx
lea    0xec2(%rip),%r8
call   1090 <sprintf@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0xbd0(%rbp),%rax
mov    %rax,-0xc28(%rbp)
lea    -0xbd0(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xc28(%rbp),%rdi
mov    %eax,%edx
mov    -0x3f8(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
movb   $0x0,-0xbd0(%rbp)
lea    -0x7e0(%rbp),%rdi
lea    -0x3f0(%rbp),%rcx
lea    0xe4a(%rip),%rsi
lea    0xe4a(%rip),%rdx
lea    0xe68(%rip),%r8
call   1090 <sprintf@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0xbd0(%rbp),%rax
mov    %rax,-0xc20(%rbp)
lea    -0xbd0(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xc20(%rbp),%rdi
mov    %eax,%edx
mov    -0x3f8(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
movb   $0x0,-0xbd0(%rbp)
lea    -0x7e0(%rbp),%rdi
lea    -0x3f0(%rbp),%rcx
lea    0xdd4(%rip),%rsi
lea    0xdd4(%rip),%rdx
lea    0xe22(%rip),%r8
call   1090 <sprintf@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0xbd0(%rbp),%rax
mov    %rax,-0xc18(%rbp)
lea    -0xbd0(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xc18(%rbp),%rdi
mov    %eax,%edx
mov    -0x3f8(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
movb   $0x0,-0xbd0(%rbp)
lea    -0x7e0(%rbp),%rdi
lea    -0x3f0(%rbp),%rcx
lea    0xd12(%rip),%rsi
lea    0xd12(%rip),%rdx
lea    0xd90(%rip),%r8
call   1090 <sprintf@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0xbd0(%rbp),%rax
mov    %rax,-0xc10(%rbp)
lea    -0xbd0(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xc10(%rbp),%rdi
mov    %eax,%edx
mov    -0x3f8(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
movb   $0x0,-0xbd0(%rbp)
lea    -0x7e0(%rbp),%rdi
lea    -0x3f0(%rbp),%rcx
lea    0xc9c(%rip),%rsi
lea    0xc9c(%rip),%rdx
lea    0xcea(%rip),%r8
call   1090 <sprintf@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0xbd0(%rbp),%rax
mov    %rax,-0xc08(%rbp)
lea    -0xbd0(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xc08(%rbp),%rdi
mov    %eax,%edx
mov    -0x3f8(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
movb   $0x0,-0xbd0(%rbp)
lea    -0x7e0(%rbp),%rdi
lea    -0x3f0(%rbp),%rcx
lea    0xc26(%rip),%rsi
lea    0xc26(%rip),%rdx
lea    0xcd3(%rip),%r8
call   1090 <sprintf@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0xbd0(%rbp),%rax
mov    %rax,-0xc00(%rbp)
lea    -0xbd0(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xc00(%rbp),%rdi
mov    %eax,%edx
mov    -0x3f8(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
movb   $0x0,-0xbd0(%rbp)
lea    -0x7e0(%rbp),%rdi
lea    -0x3f0(%rbp),%rcx
lea    0xbb0(%rip),%rsi
lea    0xbb0(%rip),%rdx
lea    0xc7d(%rip),%r8
call   1090 <sprintf@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0x7e0(%rbp),%rdi
lea    -0x3f0(%rbp),%rcx
lea    0xb75(%rip),%rsi
lea    0xb75(%rip),%rdx
lea    0xb77(%rip),%r8
call   1090 <sprintf@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0xbd0(%rbp),%rax
mov    %rax,-0xbf8(%rbp)
lea    -0xbd0(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xbf8(%rbp),%rdi
mov    %eax,%edx
mov    -0x3f8(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
movb   $0x0,-0xbd0(%rbp)
lea    -0x7e0(%rbp),%rdi
lea    -0x3f0(%rbp),%rcx
lea    0xaff(%rip),%rsi
lea    0xaff(%rip),%rdx
lea    0xbcc(%rip),%r8
call   1090 <sprintf@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0x7e0(%rbp),%rdi
lea    -0x3f0(%rbp),%rcx
lea    0xac4(%rip),%rsi
lea    0xac4(%rip),%rdx
lea    0xbb1(%rip),%r8
call   1090 <sprintf@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0x7e0(%rbp),%rdi
lea    -0x3f0(%rbp),%rcx
lea    0xa89(%rip),%rsi
lea    0xa89(%rip),%rdx
lea    0xb91(%rip),%r8
call   1090 <sprintf@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0x7e0(%rbp),%rdi
lea    -0x3f0(%rbp),%rcx
lea    0xa4e(%rip),%rsi
lea    0xa4e(%rip),%rdx
lea    0xafb(%rip),%r8
call   1090 <sprintf@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0xbd0(%rbp),%rax
mov    %rax,-0xbf0(%rbp)
lea    -0xbd0(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xbf0(%rbp),%rdi
mov    %eax,%edx
mov    -0x3f8(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
movb   $0x0,-0xbd0(%rbp)
lea    -0x7e0(%rbp),%rdi
lea    -0x3f0(%rbp),%rcx
lea    0x9d8(%rip),%rsi
lea    0x9d8(%rip),%rdx
lea    0xac5(%rip),%r8
call   1090 <sprintf@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0x7e0(%rbp),%rdi
lea    -0x3f0(%rbp),%rcx
lea    0x99d(%rip),%rsi
lea    0x99d(%rip),%rdx
lea    0xac1(%rip),%r8
call   1090 <sprintf@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0xbd0(%rbp),%rax
mov    %rax,-0xbe8(%rbp)
lea    -0xbd0(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xbe8(%rbp),%rdi
mov    %eax,%edx
mov    -0x3f8(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
movb   $0x0,-0xbd0(%rbp)
lea    -0x7e0(%rbp),%rdi
lea    -0x3f0(%rbp),%rcx
lea    0x927(%rip),%rsi
lea    0x927(%rip),%rdx
lea    0x9d4(%rip),%r8
call   1090 <sprintf@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0xbd0(%rbp),%rax
mov    %rax,-0xbe0(%rbp)
lea    -0xbd0(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xbe0(%rbp),%rdi
mov    %eax,%edx
mov    -0x3f8(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
movb   $0x0,-0xbd0(%rbp)
lea    -0x7e0(%rbp),%rdi
lea    -0x3f0(%rbp),%rcx
lea    0x8b1(%rip),%rsi
lea    0x8b1(%rip),%rdx
lea    0x8cf(%rip),%r8
call   1090 <sprintf@plt>
lea    -0xbd0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1080 <strcat@plt>
lea    -0xbd0(%rbp),%rax
mov    %rax,-0xbd8(%rbp)
lea    -0xbd0(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xbd8(%rbp),%rdi
mov    %eax,%edx
mov    -0x3f8(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
movb   $0x0,-0xbd0(%rbp)
mov    -0x3f8(%rbp),%rdi
call   1030 <fclose@plt>
add    $0xc30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setExpectedResult>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xbc8,%rsp
lea    0x7e0(%rsp),%r14
mov    $0x3e8,%edx
mov    %r14,%rdi
xor    %esi,%esi
call   1050 <memset@plt>
lea    0xe41(%rip),%rsi
mov    %r14,%rdi
call   1060 <getPath@plt>
lea    0x3f0(%rsp),%r15
mov    $0x3e8,%edx
mov    %r15,%rdi
xor    %esi,%esi
call   1050 <memset@plt>
mov    %rsp,%rbx
mov    $0x3e8,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1050 <memset@plt>
lea    0xe11(%rip),%rdi
lea    0xe2f(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%r12
lea    0xe22(%rip),%rdi
mov    $0x57,%esi
mov    %rax,%rdx
call   10b0 <_assert@plt>
lea    0xecd(%rip),%r13
lea    0xecd(%rip),%rbp
lea    0xecf(%rip),%r8
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
call   1090 <sprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %r12,%rcx
call   10a0 <fwrite@plt>
movb   $0x0,(%rsp)
lea    0xeaa(%rip),%r8
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
call   1090 <sprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %r12,%rcx
call   10a0 <fwrite@plt>
movb   $0x0,(%rsp)
lea    0xe99(%rip),%r8
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
call   1090 <sprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %r12,%rcx
call   10a0 <fwrite@plt>
movb   $0x0,(%rsp)
lea    0xe5c(%rip),%r8
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
call   1090 <sprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %r12,%rcx
call   10a0 <fwrite@plt>
movb   $0x0,(%rsp)
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
lea    0xddf(%rip),%r8
call   1090 <sprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %r12,%rcx
call   10a0 <fwrite@plt>
movb   $0x0,(%rsp)
lea    0xe09(%rip),%r8
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
call   1090 <sprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %r12,%rcx
call   10a0 <fwrite@plt>
movb   $0x0,(%rsp)
lea    0xde8(%rip),%r8
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
call   1090 <sprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
lea    0xcee(%rip),%r8
call   1090 <sprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %r12,%rcx
call   10a0 <fwrite@plt>
movb   $0x0,(%rsp)
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
lea    0xd78(%rip),%r8
call   1090 <sprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
lea    0xd81(%rip),%r8
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
call   1090 <sprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
lea    0xd79(%rip),%r8
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
call   1090 <sprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
lea    0xcef(%rip),%r8
call   1090 <sprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %r12,%rcx
call   10a0 <fwrite@plt>
movb   $0x0,(%rsp)
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
lea    0xcee(%rip),%r8
call   1090 <sprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
lea    0xd0e(%rip),%r8
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
call   1090 <sprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %r12,%rcx
call   10a0 <fwrite@plt>
movb   $0x0,(%rsp)
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
lea    0xc4a(%rip),%r8
call   1090 <sprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %r12,%rcx
call   10a0 <fwrite@plt>
movb   $0x0,(%rsp)
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
lea    0xb7a(%rip),%r8
call   1090 <sprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %r12,%rcx
call   10a0 <fwrite@plt>
movb   $0x0,(%rsp)
mov    %r12,%rdi
call   1030 <fclose@plt>
add    $0xbc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"MAILBOX\00"
@.str.1 = [37 x i8] c"EMAILsearchEnd2EndExpectedResult.txt\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [191 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/CS4098Group/Project/refs/heads/master/peos/os/virtual_repository/testSuites/testEMAILsearchEnd2End.c\00"
@.str.4 = [7 x i8] c"%s%s%s\00"
@.str.5 = [9 x i8] c"email://\00"
@.str.6 = [28 x i8] c"/message1@dc.engr.scu.edu\0A\0A\00"
@.str.7 = [48 x i8] c"/200210081925.MAA28947@hpux31.dc.engr.scu.edu\0A\0A\00"
@.str.8 = [48 x i8] c"/message3.test.case.12345@server.engr.scu.edu\0A\0A\00"
@.str.9 = [47 x i8] c"/message2.test.case.12345@school.engr.scu.edu\0A\00"
@.str.10 = [32 x i8] c"/message7@server.engr.scu.edu\0A\0A\00"
@.str.11 = [32 x i8] c"/message5.test.case@aol.com.br\0A\00"
@.str.12 = [27 x i8] c"/message1@dc.engr.scu.edu\0A\00"
@.str.13 = [28 x i8] c"/message4@home.testing.com\0A\00"
@.str.14 = [33 x i8] c"/message5.test.case@aol.com.br\0A\0A\00"
define void @setExpectedResult() {
%1 = alloca [1000 x i8]
%2 = alloca i32*
%3 = alloca [1000 x i8]
%4 = alloca [1000 x i8]
%5 = bitcast [1000 x i8]* %1 to i8*
%6 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%7 = call i32 @getPath(i8* %6, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%8 = bitcast [1000 x i8]* %3 to i8*
%9 = bitcast [1000 x i8]* %4 to i8*
%10 = call i32* @fopen(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %10, i32** %2
%11 = load i32*, i32** %2
%12 = call i32 @_assert(i8* getelementptr inbounds ([191 x i8], [191 x i8]* @.str.3, i64 0, i64 0), i32 87, i32* %11)
%13 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%14 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%15 = call i32 @sprintf(i8* %13, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %14, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0))
%16 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%17 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%18 = call i32 @strcat(i8* %16, i8* %17)
%19 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%20 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%21 = call i32 @strlen(i8* %20)
%22 = load i32*, i32** %2
%23 = call i32 @fwrite(i8* %19, i32 1, i32 %21, i32* %22)
%24 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
store i8 0, i8* %24
%25 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%26 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%27 = call i32 @sprintf(i8* %25, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %26, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0))
%28 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%29 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%30 = call i32 @strcat(i8* %28, i8* %29)
%31 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%32 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%33 = call i32 @strlen(i8* %32)
%34 = load i32*, i32** %2
%35 = call i32 @fwrite(i8* %31, i32 1, i32 %33, i32* %34)
%36 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
store i8 0, i8* %36
%37 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%38 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%39 = call i32 @sprintf(i8* %37, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %38, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%40 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%41 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%42 = call i32 @strcat(i8* %40, i8* %41)
%43 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%44 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%45 = call i32 @strcat(i8* %43, i8* %44)
%46 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%47 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%48 = call i32 @strcat(i8* %46, i8* %47)
%49 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%50 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%51 = call i32 @strcat(i8* %49, i8* %50)
%52 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%53 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%54 = call i32 @strcat(i8* %52, i8* %53)
%55 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%56 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%57 = call i32 @strlen(i8* %56)
%58 = load i32*, i32** %2
%59 = call i32 @fwrite(i8* %55, i32 1, i32 %57, i32* %58)
%60 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
store i8 0, i8* %60
%61 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%62 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%63 = call i32 @sprintf(i8* %61, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %62, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0))
%64 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%65 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%66 = call i32 @strcat(i8* %64, i8* %65)
%67 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%68 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%69 = call i32 @strlen(i8* %68)
%70 = load i32*, i32** %2
%71 = call i32 @fwrite(i8* %67, i32 1, i32 %69, i32* %70)
%72 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
store i8 0, i8* %72
%73 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%74 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%75 = call i32 @sprintf(i8* %73, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %74, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%76 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%77 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%78 = call i32 @strcat(i8* %76, i8* %77)
%79 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%80 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%81 = call i32 @strlen(i8* %80)
%82 = load i32*, i32** %2
%83 = call i32 @fwrite(i8* %79, i32 1, i32 %81, i32* %82)
%84 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
store i8 0, i8* %84
%85 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%86 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%87 = call i32 @sprintf(i8* %85, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %86, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0))
%88 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%89 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%90 = call i32 @strcat(i8* %88, i8* %89)
%91 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%92 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%93 = call i32 @strlen(i8* %92)
%94 = load i32*, i32** %2
%95 = call i32 @fwrite(i8* %91, i32 1, i32 %93, i32* %94)
%96 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
store i8 0, i8* %96
%97 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%98 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%99 = call i32 @sprintf(i8* %97, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %98, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0))
%100 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%101 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%102 = call i32 @strcat(i8* %100, i8* %101)
%103 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%104 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%105 = call i32 @sprintf(i8* %103, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %104, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0))
%106 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%107 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%108 = call i32 @strcat(i8* %106, i8* %107)
%109 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%110 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%111 = call i32 @strlen(i8* %110)
%112 = load i32*, i32** %2
%113 = call i32 @fwrite(i8* %109, i32 1, i32 %111, i32* %112)
%114 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
store i8 0, i8* %114
%115 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%116 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%117 = call i32 @sprintf(i8* %115, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %116, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0))
%118 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%119 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%120 = call i32 @strcat(i8* %118, i8* %119)
%121 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%122 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%123 = call i32 @sprintf(i8* %121, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %122, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0))
%124 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%125 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%126 = call i32 @strcat(i8* %124, i8* %125)
%127 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%128 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%129 = call i32 @sprintf(i8* %127, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %128, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0))
%130 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%131 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%132 = call i32 @strcat(i8* %130, i8* %131)
%133 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%134 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%135 = call i32 @sprintf(i8* %133, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %134, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0))
%136 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%137 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%138 = call i32 @strcat(i8* %136, i8* %137)
%139 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%140 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%141 = call i32 @strlen(i8* %140)
%142 = load i32*, i32** %2
%143 = call i32 @fwrite(i8* %139, i32 1, i32 %141, i32* %142)
%144 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
store i8 0, i8* %144
%145 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%146 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%147 = call i32 @sprintf(i8* %145, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %146, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0))
%148 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%149 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%150 = call i32 @strcat(i8* %148, i8* %149)
%151 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%152 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%153 = call i32 @sprintf(i8* %151, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %152, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.14, i64 0, i64 0))
%154 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%155 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%156 = call i32 @strcat(i8* %154, i8* %155)
%157 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%158 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%159 = call i32 @strlen(i8* %158)
%160 = load i32*, i32** %2
%161 = call i32 @fwrite(i8* %157, i32 1, i32 %159, i32* %160)
%162 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
store i8 0, i8* %162
%163 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%164 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%165 = call i32 @sprintf(i8* %163, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %164, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0))
%166 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%167 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%168 = call i32 @strcat(i8* %166, i8* %167)
%169 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%170 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%171 = call i32 @strlen(i8* %170)
%172 = load i32*, i32** %2
%173 = call i32 @fwrite(i8* %169, i32 1, i32 %171, i32* %172)
%174 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
store i8 0, i8* %174
%175 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%176 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%177 = call i32 @sprintf(i8* %175, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %176, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0))
%178 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%179 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%180 = call i32 @strcat(i8* %178, i8* %179)
%181 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%182 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%183 = call i32 @strlen(i8* %182)
%184 = load i32*, i32** %2
%185 = call i32 @fwrite(i8* %181, i32 1, i32 %183, i32* %184)
%186 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
store i8 0, i8* %186
%187 = load i32*, i32** %2
%188 = call i32 @fclose(i32* %187)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"MAILBOX\00"
@.str.1 = [37 x i8] c"EMAILsearchEnd2EndExpectedResult.txt\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [191 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/CS4098Group/Project/refs/heads/master/peos/os/virtual_repository/testSuites/testEMAILsearchEnd2End.c\00"
@.str.4 = [7 x i8] c"%s%s%s\00"
@.str.5 = [9 x i8] c"email://\00"
@.str.6 = [28 x i8] c"/message1@dc.engr.scu.edu\0A\0A\00"
@.str.7 = [48 x i8] c"/200210081925.MAA28947@hpux31.dc.engr.scu.edu\0A\0A\00"
@.str.8 = [48 x i8] c"/message3.test.case.12345@server.engr.scu.edu\0A\0A\00"
@.str.9 = [47 x i8] c"/message2.test.case.12345@school.engr.scu.edu\0A\00"
@.str.10 = [32 x i8] c"/message7@server.engr.scu.edu\0A\0A\00"
@.str.11 = [32 x i8] c"/message5.test.case@aol.com.br\0A\00"
@.str.12 = [27 x i8] c"/message1@dc.engr.scu.edu\0A\00"
@.str.13 = [28 x i8] c"/message4@home.testing.com\0A\00"
@.str.14 = [33 x i8] c"/message5.test.case@aol.com.br\0A\0A\00"
define void @setExpectedResult() {
%1 = alloca [1000 x i8]
%2 = alloca [1000 x i8]
%3 = alloca [1000 x i8]
%4 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%5 = call i32 @getPath(i8* %4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%6 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%8 = call i32* @fopen(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 @_assert(i8* getelementptr inbounds ([191 x i8], [191 x i8]* @.str.3, i64 0, i64 0), i32 87, i32* %8)
%10 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 @strcat(i8* %7, i8* %6)
%12 = call i32 @strlen(i8* %7)
%13 = call i32 @fwrite(i8* %7, i32 1, i32 %12, i32* %8)
store i8 0, i8* %7
%14 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0))
%15 = call i32 @strcat(i8* %7, i8* %6)
%16 = call i32 @strlen(i8* %7)
%17 = call i32 @fwrite(i8* %7, i32 1, i32 %16, i32* %8)
store i8 0, i8* %7
%18 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%19 = call i32 @strcat(i8* %7, i8* %6)
%20 = call i32 @strcat(i8* %7, i8* %6)
%21 = call i32 @strcat(i8* %7, i8* %6)
%22 = call i32 @strcat(i8* %7, i8* %6)
%23 = call i32 @strcat(i8* %7, i8* %6)
%24 = call i32 @strlen(i8* %7)
%25 = call i32 @fwrite(i8* %7, i32 1, i32 %24, i32* %8)
store i8 0, i8* %7
%26 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0))
%27 = call i32 @strcat(i8* %7, i8* %6)
%28 = call i32 @strlen(i8* %7)
%29 = call i32 @fwrite(i8* %7, i32 1, i32 %28, i32* %8)
store i8 0, i8* %7
%30 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%31 = call i32 @strcat(i8* %7, i8* %6)
%32 = call i32 @strlen(i8* %7)
%33 = call i32 @fwrite(i8* %7, i32 1, i32 %32, i32* %8)
store i8 0, i8* %7
%34 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0))
%35 = call i32 @strcat(i8* %7, i8* %6)
%36 = call i32 @strlen(i8* %7)
%37 = call i32 @fwrite(i8* %7, i32 1, i32 %36, i32* %8)
store i8 0, i8* %7
%38 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0))
%39 = call i32 @strcat(i8* %7, i8* %6)
%40 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0))
%41 = call i32 @strcat(i8* %7, i8* %6)
%42 = call i32 @strlen(i8* %7)
%43 = call i32 @fwrite(i8* %7, i32 1, i32 %42, i32* %8)
store i8 0, i8* %7
%44 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0))
%45 = call i32 @strcat(i8* %7, i8* %6)
%46 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0))
%47 = call i32 @strcat(i8* %7, i8* %6)
%48 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0))
%49 = call i32 @strcat(i8* %7, i8* %6)
%50 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0))
%51 = call i32 @strcat(i8* %7, i8* %6)
%52 = call i32 @strlen(i8* %7)
%53 = call i32 @fwrite(i8* %7, i32 1, i32 %52, i32* %8)
store i8 0, i8* %7
%54 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0))
%55 = call i32 @strcat(i8* %7, i8* %6)
%56 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.14, i64 0, i64 0))
%57 = call i32 @strcat(i8* %7, i8* %6)
%58 = call i32 @strlen(i8* %7)
%59 = call i32 @fwrite(i8* %7, i32 1, i32 %58, i32* %8)
store i8 0, i8* %7
%60 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0))
%61 = call i32 @strcat(i8* %7, i8* %6)
%62 = call i32 @strlen(i8* %7)
%63 = call i32 @fwrite(i8* %7, i32 1, i32 %62, i32* %8)
store i8 0, i8* %7
%64 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0))
%65 = call i32 @strcat(i8* %7, i8* %6)
%66 = call i32 @strlen(i8* %7)
%67 = call i32 @fwrite(i8* %7, i32 1, i32 %66, i32* %8)
store i8 0, i8* %7
%68 = call i32 @fclose(i32* %8)
ret void
}