#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 *, char *);
int /*<<< orphan*/ compactString(char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fwrite(char *, int, int /*<<< orphan*/,
                          int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, char *, char *, char *, char *, char *,
                          char *, char *, char *);
int /*<<< orphan*/ strlen(char *);
int main(void) {
  FILE *expectedResultFile;
  char string1[] = " SEARCHDIR=/users/student/peos/src/os/virtual_repository";
  char string2[] = "SEARCHDIR=/users/student/peos/src/os/virtual_repository ";
  char string3[] = " SEARCHDIR=/users/student/peos/src/os/virtual_repository ";
  char string4[] = "SEARCHDIR =/users/student/peos/src/os/virtual_repository";
  char string5[] = "SEARCHDIR= /users/student/peos/src/os/virtual_repository";
  char string6[] = "SEARCHDIR = /users/student/peos/src/os/virtual_repository";
  char string7[] = "S E A R C H D I R = / u s e r s / s t u d e n t / p e o s "
                   "/ s r c / o s / v i r t u a l _ r e p o s i t o r y";
  char string8[1000] = {'\0'};
  char *expectedString =
      "SEARCHDIR=/users/student/peos/src/os/virtual_repository\n";
  char *expectedNULLString = "\n\n";
  expectedResultFile = fopen("UNITcompactStringExpectedResult.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/testUNITcompactString.c",
          38, expectedResultFile);
  _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/testUNITcompactString.c",
         41, 5, "expectedString is %s", expectedString);
  fwrite(expectedString, sizeof(char), strlen(expectedString),
         expectedResultFile);
  fwrite(expectedString, sizeof(char), strlen(expectedString),
         expectedResultFile);
  fwrite(expectedString, sizeof(char), strlen(expectedString),
         expectedResultFile);
  fwrite(expectedString, sizeof(char), strlen(expectedString),
         expectedResultFile);
  fwrite(expectedString, sizeof(char), strlen(expectedString),
         expectedResultFile);
  fwrite(expectedString, sizeof(char), strlen(expectedString),
         expectedResultFile);
  fwrite(expectedString, sizeof(char), strlen(expectedString),
         expectedResultFile);
  fwrite(expectedNULLString, sizeof(char), strlen(expectedNULLString),
         expectedResultFile);
  fclose(expectedResultFile);
  compactString(string1);
  _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/testUNITcompactString.c",
         55, 5, "compact string1 is %s", string1);
  compactString(string2);
  _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/testUNITcompactString.c",
         58, 5, "compact string2 is %s", string2);
  compactString(string3);
  _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/testUNITcompactString.c",
         61, 5, "compact string3 is %s", string3);
  compactString(string4);
  _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/testUNITcompactString.c",
         64, 5, "compact string4 is %s", string4);
  compactString(string5);
  _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/testUNITcompactString.c",
         67, 5, "compact string5 is %s", string5);
  compactString(string6);
  _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/testUNITcompactString.c",
         70, 5, "compact string6 is %s", string6);
  compactString(string7);
  _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/testUNITcompactString.c",
         73, 5, "compact string7 is %s", string7);
  compactString(string8);
  _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/testUNITcompactString.c",
         76, 5, "compact string8 is %s", string8);
  printf("%s%s%s%s%s%s%s%s\n", string1, string2, string3, string4, string5,
         string6, string7, string8);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x660,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x50(%rbp),%rdi
lea    0xe43(%rip),%rsi
mov    $0x39,%edx
call   1070 <memcpy@plt>
lea    -0x90(%rbp),%rdi
lea    0xe6b(%rip),%rsi
mov    $0x39,%edx
call   1070 <memcpy@plt>
lea    -0xd0(%rbp),%rdi
lea    0xe93(%rip),%rsi
mov    $0x3a,%edx
call   1070 <memcpy@plt>
lea    -0x110(%rbp),%rdi
lea    0xebb(%rip),%rsi
mov    $0x39,%edx
call   1070 <memcpy@plt>
lea    -0x150(%rbp),%rdi
lea    0xee3(%rip),%rsi
mov    $0x39,%edx
call   1070 <memcpy@plt>
lea    -0x190(%rbp),%rdi
lea    0xf0b(%rip),%rsi
mov    $0x3a,%edx
call   1070 <memcpy@plt>
lea    -0x200(%rbp),%rdi
lea    0xf33(%rip),%rsi
mov    $0x6e,%edx
call   1070 <memcpy@plt>
lea    -0x5f0(%rbp),%rdi
xor    %esi,%esi
mov    $0x3e8,%edx
call   1060 <memset@plt>
lea    0xf7d(%rip),%rax
mov    %rax,-0x5f8(%rbp)
lea    0xfa8(%rip),%rax
mov    %rax,-0x600(%rbp)
lea    0xf9d(%rip),%rdi
lea    0xfba(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdx
lea    0xfa8(%rip),%rdi
mov    $0x26,%esi
call   10b0 <_assert@plt>
mov    -0x5f8(%rbp),%r8
lea    0xf90(%rip),%rdi
mov    $0x29,%esi
mov    $0x5,%edx
lea    0x103d(%rip),%rcx
call   1080 <_debug@plt>
mov    -0x5f8(%rbp),%rax
mov    %rax,-0x640(%rbp)
mov    -0x5f8(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x640(%rbp),%rdi
mov    %eax,%edx
mov    -0x10(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
mov    -0x5f8(%rbp),%rax
mov    %rax,-0x638(%rbp)
mov    -0x5f8(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x638(%rbp),%rdi
mov    %eax,%edx
mov    -0x10(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
mov    -0x5f8(%rbp),%rax
mov    %rax,-0x630(%rbp)
mov    -0x5f8(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x630(%rbp),%rdi
mov    %eax,%edx
mov    -0x10(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
mov    -0x5f8(%rbp),%rax
mov    %rax,-0x628(%rbp)
mov    -0x5f8(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x628(%rbp),%rdi
mov    %eax,%edx
mov    -0x10(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
mov    -0x5f8(%rbp),%rax
mov    %rax,-0x620(%rbp)
mov    -0x5f8(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x620(%rbp),%rdi
mov    %eax,%edx
mov    -0x10(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
mov    -0x5f8(%rbp),%rax
mov    %rax,-0x618(%rbp)
mov    -0x5f8(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x618(%rbp),%rdi
mov    %eax,%edx
mov    -0x10(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
mov    -0x5f8(%rbp),%rax
mov    %rax,-0x610(%rbp)
mov    -0x5f8(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x610(%rbp),%rdi
mov    %eax,%edx
mov    -0x10(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
mov    -0x600(%rbp),%rax
mov    %rax,-0x608(%rbp)
mov    -0x600(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x608(%rbp),%rdi
mov    %eax,%edx
mov    -0x10(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
lea    -0x50(%rbp),%rdi
call   10c0 <compactString@plt>
lea    -0x50(%rbp),%r8
lea    0xdd5(%rip),%rdi
mov    $0x37,%esi
mov    $0x5,%edx
lea    0xe97(%rip),%rcx
call   1080 <_debug@plt>
lea    -0x90(%rbp),%rdi
call   10c0 <compactString@plt>
lea    -0x90(%rbp),%r8
lea    0xda5(%rip),%rdi
mov    $0x3a,%esi
mov    $0x5,%edx
lea    0xe7d(%rip),%rcx
call   1080 <_debug@plt>
lea    -0xd0(%rbp),%rdi
call   10c0 <compactString@plt>
lea    -0xd0(%rbp),%r8
lea    0xd75(%rip),%rdi
mov    $0x3d,%esi
mov    $0x5,%edx
lea    0xe63(%rip),%rcx
call   1080 <_debug@plt>
lea    -0x110(%rbp),%rdi
call   10c0 <compactString@plt>
lea    -0x110(%rbp),%r8
lea    0xd45(%rip),%rdi
mov    $0x40,%esi
mov    $0x5,%edx
lea    0xe49(%rip),%rcx
call   1080 <_debug@plt>
lea    -0x150(%rbp),%rdi
call   10c0 <compactString@plt>
lea    -0x150(%rbp),%r8
lea    0xd15(%rip),%rdi
mov    $0x43,%esi
mov    $0x5,%edx
lea    0xe2f(%rip),%rcx
call   1080 <_debug@plt>
lea    -0x190(%rbp),%rdi
call   10c0 <compactString@plt>
lea    -0x190(%rbp),%r8
lea    0xce5(%rip),%rdi
mov    $0x46,%esi
mov    $0x5,%edx
lea    0xe15(%rip),%rcx
call   1080 <_debug@plt>
lea    -0x200(%rbp),%rdi
call   10c0 <compactString@plt>
lea    -0x200(%rbp),%r8
lea    0xcb5(%rip),%rdi
mov    $0x49,%esi
mov    $0x5,%edx
lea    0xdfb(%rip),%rcx
call   1080 <_debug@plt>
lea    -0x5f0(%rbp),%rdi
call   10c0 <compactString@plt>
lea    -0x5f0(%rbp),%r8
lea    0xc85(%rip),%rdi
mov    $0x4c,%esi
mov    $0x5,%edx
lea    0xde1(%rip),%rcx
call   1080 <_debug@plt>
lea    -0x50(%rbp),%rsi
lea    -0x90(%rbp),%rdx
lea    -0xd0(%rbp),%rcx
lea    -0x110(%rbp),%r8
lea    -0x150(%rbp),%r9
lea    -0x190(%rbp),%r11
lea    -0x200(%rbp),%r10
lea    -0x5f0(%rbp),%rax
lea    0xdb6(%rip),%rdi
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x660,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x5d8,%rsp
movups 0xe81(%rip),%xmm0
movups %xmm0,0x69(%rsp)
movaps 0xe6c(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xe50(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xe34(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movups 0xe91(%rip),%xmm0
movups %xmm0,0x29(%rsp)
movaps 0xe7c(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe60(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe44(%rip),%xmm0
movaps %xmm0,(%rsp)
movups 0xea3(%rip),%xmm0
movups %xmm0,0xaa(%rsp)
movaps 0xe8a(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xe6b(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xe4c(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movups 0xea6(%rip),%xmm0
movups %xmm0,0x129(%rsp)
movaps 0xe8e(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movaps 0xe6f(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movaps 0xe50(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movups 0xeaa(%rip),%xmm0
movups %xmm0,0xe9(%rsp)
movaps 0xe92(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movaps 0xe73(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xe54(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movups 0xeaf(%rip),%xmm0
movups %xmm0,0x16a(%rsp)
movaps 0xe96(%rip),%xmm0
movaps %xmm0,0x160(%rsp)
movaps 0xe77(%rip),%xmm0
movaps %xmm0,0x150(%rsp)
movaps 0xe58(%rip),%xmm0
movaps %xmm0,0x140(%rsp)
movups 0xee7(%rip),%xmm0
movups %xmm0,0x1de(%rsp)
movaps 0xeca(%rip),%xmm0
movaps %xmm0,0x1d0(%rsp)
movaps 0xeab(%rip),%xmm0
movaps %xmm0,0x1c0(%rsp)
movaps 0xe8c(%rip),%xmm0
movaps %xmm0,0x1b0(%rsp)
movaps 0xe6d(%rip),%xmm0
movaps %xmm0,0x1a0(%rsp)
movaps 0xe4e(%rip),%xmm0
movaps %xmm0,0x190(%rsp)
movaps 0xe2f(%rip),%xmm0
movaps %xmm0,0x180(%rsp)
lea    0x1f0(%rsp),%rdi
mov    $0x3e8,%edx
xor    %esi,%esi
call   1060 <memset@plt>
lea    0xeb6(%rip),%rdi
lea    0xed3(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,%rbx
lea    0xec6(%rip),%r12
mov    %r12,%rdi
mov    $0x26,%esi
mov    %rax,%rdx
call   10a0 <_assert@plt>
lea    0xf6d(%rip),%rcx
lea    0xe46(%rip),%r15
mov    %r12,%rdi
mov    $0x29,%esi
mov    $0x5,%edx
mov    %r15,%r8
call   1070 <_debug@plt>
mov    %r15,%rdi
call   1040 <strlen@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r15,%rdi
call   1040 <strlen@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r15,%rdi
call   1040 <strlen@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r15,%rdi
call   1040 <strlen@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r15,%rdi
call   1040 <strlen@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r15,%rdi
call   1040 <strlen@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r15,%rdi
call   1040 <strlen@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0xdad(%rip),%rbp
mov    %rbp,%rdi
call   1040 <strlen@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %rbx,%rdi
call   1030 <fclose@plt>
lea    0x40(%rsp),%rbx
mov    %rbx,%rdi
call   10b0 <compactString@plt>
lea    0xe73(%rip),%rcx
mov    %r12,%rdi
mov    $0x37,%esi
mov    $0x5,%edx
mov    %rbx,%r8
call   1070 <_debug@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
call   10b0 <compactString@plt>
lea    0xe62(%rip),%rcx
mov    %r12,%rdi
mov    $0x3a,%esi
mov    $0x5,%edx
mov    %rbx,%r8
call   1070 <_debug@plt>
lea    0x80(%rsp),%rbx
mov    %rbx,%rdi
call   10b0 <compactString@plt>
lea    0xe4c(%rip),%rcx
mov    %r12,%rdi
mov    $0x3d,%esi
mov    $0x5,%edx
mov    %rbx,%r8
call   1070 <_debug@plt>
lea    0x100(%rsp),%rbp
mov    %rbp,%rdi
call   10b0 <compactString@plt>
lea    0xe36(%rip),%rcx
mov    %r12,%rdi
mov    $0x40,%esi
mov    $0x5,%edx
mov    %rbp,%r8
call   1070 <_debug@plt>
lea    0xc0(%rsp),%r14
mov    %r14,%rdi
call   10b0 <compactString@plt>
lea    0xe20(%rip),%rcx
mov    %r12,%rdi
mov    $0x43,%esi
mov    $0x5,%edx
mov    %r14,%r8
call   1070 <_debug@plt>
lea    0x140(%rsp),%r15
mov    %r15,%rdi
call   10b0 <compactString@plt>
lea    0xe0a(%rip),%rcx
mov    %r12,%rdi
mov    $0x46,%esi
mov    $0x5,%edx
mov    %r15,%r8
call   1070 <_debug@plt>
lea    0x180(%rsp),%r13
mov    %r13,%rdi
call   10b0 <compactString@plt>
lea    0xdf4(%rip),%rcx
mov    %r12,%rdi
mov    $0x49,%esi
mov    $0x5,%edx
mov    %r13,%r8
call   1070 <_debug@plt>
lea    0x1f0(%rsp),%rbx
mov    %rbx,%rdi
call   10b0 <compactString@plt>
lea    0xdde(%rip),%rcx
mov    %r12,%rdi
mov    $0x4c,%esi
mov    $0x5,%edx
mov    %rbx,%r8
call   1070 <_debug@plt>
sub    $0x8,%rsp
lea    0xdd4(%rip),%rdi
lea    0x48(%rsp),%rsi
lea    0x8(%rsp),%rdx
lea    0x88(%rsp),%rcx
mov    %rbp,%r8
mov    %r14,%r9
push   %rbx
push   %r13
push   %r15
call   1050 <printf@plt>
add    $0x20,%rsp
xor    %eax,%eax
add    $0x5d8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.string1 = [57 x i8] c" SEARCHDIR=/users/student/peos/src/os/virtual_repository\00"
@__const.main.string2 = [57 x i8] c"SEARCHDIR=/users/student/peos/src/os/virtual_repository \00"
@__const.main.string3 = [58 x i8] c" SEARCHDIR=/users/student/peos/src/os/virtual_repository \00"
@__const.main.string4 = [57 x i8] c"SEARCHDIR =/users/student/peos/src/os/virtual_repository\00"
@__const.main.string5 = [57 x i8] c"SEARCHDIR= /users/student/peos/src/os/virtual_repository\00"
@__const.main.string6 = [58 x i8] c"SEARCHDIR = /users/student/peos/src/os/virtual_repository\00"
@__const.main.string7 = [110 x i8] c"S E A R C H D I R = / u s e r s / s t u d e n t / p e o s / s r c / o s / v i r t u a l _ r e p o s i t o r y\00"
@.str = [57 x i8] c"SEARCHDIR=/users/student/peos/src/os/virtual_repository\0A\00"
@.str.1 = [3 x i8] c"\0A\0A\00"
@.str.2 = [36 x i8] c"UNITcompactStringExpectedResult.txt\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [190 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/testUNITcompactString.c\00"
@.str.5 = [21 x i8] c"expectedString is %s\00"
@.str.6 = [22 x i8] c"compact string1 is %s\00"
@.str.7 = [22 x i8] c"compact string2 is %s\00"
@.str.8 = [22 x i8] c"compact string3 is %s\00"
@.str.9 = [22 x i8] c"compact string4 is %s\00"
@.str.10 = [22 x i8] c"compact string5 is %s\00"
@.str.11 = [22 x i8] c"compact string6 is %s\00"
@.str.12 = [22 x i8] c"compact string7 is %s\00"
@.str.13 = [22 x i8] c"compact string8 is %s\00"
@.str.14 = [18 x i8] c"%s%s%s%s%s%s%s%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca [57 x i8]
%4 = alloca [57 x i8]
%5 = alloca [58 x i8]
%6 = alloca [57 x i8]
%7 = alloca [57 x i8]
%8 = alloca [58 x i8]
%9 = alloca [110 x i8]
%10 = alloca [1000 x i8]
%11 = alloca i8*
%12 = alloca i8*
store i32 0, i32* %1
%13 = bitcast [57 x i8]* %3 to i8*
%14 = bitcast [57 x i8]* %4 to i8*
%15 = bitcast [58 x i8]* %5 to i8*
%16 = bitcast [57 x i8]* %6 to i8*
%17 = bitcast [57 x i8]* %7 to i8*
%18 = bitcast [58 x i8]* %8 to i8*
%19 = bitcast [110 x i8]* %9 to i8*
%20 = bitcast [1000 x i8]* %10 to i8*
store i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0), i8** %11
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8** %12
%21 = call i32* @fopen(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %21, i32** %2
%22 = load i32*, i32** %2
%23 = call i32 @_assert(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 38, i32* %22)
%24 = load i8*, i8** %11
%25 = call i32 @_debug(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 41, i32 5, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i8* %24)
%26 = load i8*, i8** %11
%27 = load i8*, i8** %11
%28 = call i32 @strlen(i8* %27)
%29 = load i32*, i32** %2
%30 = call i32 @fwrite(i8* %26, i32 1, i32 %28, i32* %29)
%31 = load i8*, i8** %11
%32 = load i8*, i8** %11
%33 = call i32 @strlen(i8* %32)
%34 = load i32*, i32** %2
%35 = call i32 @fwrite(i8* %31, i32 1, i32 %33, i32* %34)
%36 = load i8*, i8** %11
%37 = load i8*, i8** %11
%38 = call i32 @strlen(i8* %37)
%39 = load i32*, i32** %2
%40 = call i32 @fwrite(i8* %36, i32 1, i32 %38, i32* %39)
%41 = load i8*, i8** %11
%42 = load i8*, i8** %11
%43 = call i32 @strlen(i8* %42)
%44 = load i32*, i32** %2
%45 = call i32 @fwrite(i8* %41, i32 1, i32 %43, i32* %44)
%46 = load i8*, i8** %11
%47 = load i8*, i8** %11
%48 = call i32 @strlen(i8* %47)
%49 = load i32*, i32** %2
%50 = call i32 @fwrite(i8* %46, i32 1, i32 %48, i32* %49)
%51 = load i8*, i8** %11
%52 = load i8*, i8** %11
%53 = call i32 @strlen(i8* %52)
%54 = load i32*, i32** %2
%55 = call i32 @fwrite(i8* %51, i32 1, i32 %53, i32* %54)
%56 = load i8*, i8** %11
%57 = load i8*, i8** %11
%58 = call i32 @strlen(i8* %57)
%59 = load i32*, i32** %2
%60 = call i32 @fwrite(i8* %56, i32 1, i32 %58, i32* %59)
%61 = load i8*, i8** %12
%62 = load i8*, i8** %12
%63 = call i32 @strlen(i8* %62)
%64 = load i32*, i32** %2
%65 = call i32 @fwrite(i8* %61, i32 1, i32 %63, i32* %64)
%66 = load i32*, i32** %2
%67 = call i32 @fclose(i32* %66)
%68 = getelementptr inbounds [57 x i8], [57 x i8]* %3, i64 0, i64 0
%69 = call i32 @compactString(i8* %68)
%70 = getelementptr inbounds [57 x i8], [57 x i8]* %3, i64 0, i64 0
%71 = call i32 @_debug(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 55, i32 5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i8* %70)
%72 = getelementptr inbounds [57 x i8], [57 x i8]* %4, i64 0, i64 0
%73 = call i32 @compactString(i8* %72)
%74 = getelementptr inbounds [57 x i8], [57 x i8]* %4, i64 0, i64 0
%75 = call i32 @_debug(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 58, i32 5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i8* %74)
%76 = getelementptr inbounds [58 x i8], [58 x i8]* %5, i64 0, i64 0
%77 = call i32 @compactString(i8* %76)
%78 = getelementptr inbounds [58 x i8], [58 x i8]* %5, i64 0, i64 0
%79 = call i32 @_debug(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 61, i32 5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i8* %78)
%80 = getelementptr inbounds [57 x i8], [57 x i8]* %6, i64 0, i64 0
%81 = call i32 @compactString(i8* %80)
%82 = getelementptr inbounds [57 x i8], [57 x i8]* %6, i64 0, i64 0
%83 = call i32 @_debug(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 64, i32 5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i8* %82)
%84 = getelementptr inbounds [57 x i8], [57 x i8]* %7, i64 0, i64 0
%85 = call i32 @compactString(i8* %84)
%86 = getelementptr inbounds [57 x i8], [57 x i8]* %7, i64 0, i64 0
%87 = call i32 @_debug(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 67, i32 5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0), i8* %86)
%88 = getelementptr inbounds [58 x i8], [58 x i8]* %8, i64 0, i64 0
%89 = call i32 @compactString(i8* %88)
%90 = getelementptr inbounds [58 x i8], [58 x i8]* %8, i64 0, i64 0
%91 = call i32 @_debug(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 70, i32 5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i8* %90)
%92 = getelementptr inbounds [110 x i8], [110 x i8]* %9, i64 0, i64 0
%93 = call i32 @compactString(i8* %92)
%94 = getelementptr inbounds [110 x i8], [110 x i8]* %9, i64 0, i64 0
%95 = call i32 @_debug(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 73, i32 5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0), i8* %94)
%96 = getelementptr inbounds [1000 x i8], [1000 x i8]* %10, i64 0, i64 0
%97 = call i32 @compactString(i8* %96)
%98 = getelementptr inbounds [1000 x i8], [1000 x i8]* %10, i64 0, i64 0
%99 = call i32 @_debug(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 76, i32 5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0), i8* %98)
%100 = getelementptr inbounds [57 x i8], [57 x i8]* %3, i64 0, i64 0
%101 = getelementptr inbounds [57 x i8], [57 x i8]* %4, i64 0, i64 0
%102 = getelementptr inbounds [58 x i8], [58 x i8]* %5, i64 0, i64 0
%103 = getelementptr inbounds [57 x i8], [57 x i8]* %6, i64 0, i64 0
%104 = getelementptr inbounds [57 x i8], [57 x i8]* %7, i64 0, i64 0
%105 = getelementptr inbounds [58 x i8], [58 x i8]* %8, i64 0, i64 0
%106 = getelementptr inbounds [110 x i8], [110 x i8]* %9, i64 0, i64 0
%107 = getelementptr inbounds [1000 x i8], [1000 x i8]* %10, i64 0, i64 0
%108 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0), i8* %100, i8* %101, i8* %102, i8* %103, i8* %104, i8* %105, i8* %106, i8* %107)
ret i32 0
}

LLVM IR (-O2):
@__const.main.string1 = [57 x i8] c" SEARCHDIR=/users/student/peos/src/os/virtual_repository\00"
@__const.main.string2 = [57 x i8] c"SEARCHDIR=/users/student/peos/src/os/virtual_repository \00"
@__const.main.string3 = [58 x i8] c" SEARCHDIR=/users/student/peos/src/os/virtual_repository \00"
@__const.main.string4 = [57 x i8] c"SEARCHDIR =/users/student/peos/src/os/virtual_repository\00"
@__const.main.string5 = [57 x i8] c"SEARCHDIR= /users/student/peos/src/os/virtual_repository\00"
@__const.main.string6 = [58 x i8] c"SEARCHDIR = /users/student/peos/src/os/virtual_repository\00"
@__const.main.string7 = [110 x i8] c"S E A R C H D I R = / u s e r s / s t u d e n t / p e o s / s r c / o s / v i r t u a l _ r e p o s i t o r y\00"
@.str = [57 x i8] c"SEARCHDIR=/users/student/peos/src/os/virtual_repository\0A\00"
@.str.1 = [3 x i8] c"\0A\0A\00"
@.str.2 = [36 x i8] c"UNITcompactStringExpectedResult.txt\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [190 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/testUNITcompactString.c\00"
@.str.5 = [21 x i8] c"expectedString is %s\00"
@.str.6 = [22 x i8] c"compact string1 is %s\00"
@.str.7 = [22 x i8] c"compact string2 is %s\00"
@.str.8 = [22 x i8] c"compact string3 is %s\00"
@.str.9 = [22 x i8] c"compact string4 is %s\00"
@.str.10 = [22 x i8] c"compact string5 is %s\00"
@.str.11 = [22 x i8] c"compact string6 is %s\00"
@.str.12 = [22 x i8] c"compact string7 is %s\00"
@.str.13 = [22 x i8] c"compact string8 is %s\00"
@.str.14 = [18 x i8] c"%s%s%s%s%s%s%s%s\0A\00"
define i32 @main() {
%1 = alloca [57 x i8]
%2 = alloca [57 x i8]
%3 = alloca [58 x i8]
%4 = alloca [57 x i8]
%5 = alloca [57 x i8]
%6 = alloca [58 x i8]
%7 = alloca [110 x i8]
%8 = alloca [1000 x i8]
%9 = getelementptr inbounds [57 x i8], [57 x i8]* %1, i64 0, i64 0
%10 = getelementptr inbounds [57 x i8], [57 x i8]* %2, i64 0, i64 0
%11 = getelementptr inbounds [58 x i8], [58 x i8]* %3, i64 0, i64 0
%12 = getelementptr inbounds [57 x i8], [57 x i8]* %4, i64 0, i64 0
%13 = getelementptr inbounds [57 x i8], [57 x i8]* %5, i64 0, i64 0
%14 = getelementptr inbounds [58 x i8], [58 x i8]* %6, i64 0, i64 0
%15 = getelementptr inbounds [110 x i8], [110 x i8]* %7, i64 0, i64 0
%16 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 0
%17 = tail call i32* @fopen(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%18 = tail call i32 @_assert(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 38, i32* %17)
%19 = tail call i32 @_debug(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 41, i32 5, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%20 = tail call i32 @strlen(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%21 = tail call i32 @fwrite(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0), i32 1, i32 %20, i32* %17)
%22 = tail call i32 @strlen(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%23 = tail call i32 @fwrite(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0), i32 1, i32 %22, i32* %17)
%24 = tail call i32 @strlen(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%25 = tail call i32 @fwrite(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0), i32 1, i32 %24, i32* %17)
%26 = tail call i32 @strlen(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%27 = tail call i32 @fwrite(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0), i32 1, i32 %26, i32* %17)
%28 = tail call i32 @strlen(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%29 = tail call i32 @fwrite(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0), i32 1, i32 %28, i32* %17)
%30 = tail call i32 @strlen(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%31 = tail call i32 @fwrite(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0), i32 1, i32 %30, i32* %17)
%32 = tail call i32 @strlen(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%33 = tail call i32 @fwrite(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0), i32 1, i32 %32, i32* %17)
%34 = tail call i32 @strlen(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%35 = tail call i32 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 %34, i32* %17)
%36 = tail call i32 @fclose(i32* %17)
%37 = call i32 @compactString(i8* %9)
%38 = call i32 @_debug(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 55, i32 5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i8* %9)
%39 = call i32 @compactString(i8* %10)
%40 = call i32 @_debug(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 58, i32 5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i8* %10)
%41 = call i32 @compactString(i8* %11)
%42 = call i32 @_debug(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 61, i32 5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i8* %11)
%43 = call i32 @compactString(i8* %12)
%44 = call i32 @_debug(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 64, i32 5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i8* %12)
%45 = call i32 @compactString(i8* %13)
%46 = call i32 @_debug(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 67, i32 5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0), i8* %13)
%47 = call i32 @compactString(i8* %14)
%48 = call i32 @_debug(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 70, i32 5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i8* %14)
%49 = call i32 @compactString(i8* %15)
%50 = call i32 @_debug(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 73, i32 5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0), i8* %15)
%51 = call i32 @compactString(i8* %16)
%52 = call i32 @_debug(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.4, i64 0, i64 0), i32 76, i32 5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0), i8* %16)
%53 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0), i8* %9, i8* %10, i8* %11, i8* %12, i8* %13, i8* %14, i8* %15, i8* %16)
ret i32 0
}