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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ TestPutCharIntoArrayEx(char *, int, char *, int, char, int,
                                          char *);
int /*<<< orphan*/ printf(char *);
void TestPutCharIntoArray() {
  char *nullArray = NULL;
  char test1[8] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  char test2[8] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
  char test3[8] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07};
  char result1[8] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  char result2[8] = {0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01};
  char result3[8] = {0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe};
  char result4[8] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
  char result5[8] = {0x00, 0x00, 0x02, 0x02, 0x04, 0x04, 0x06, 0x06};
  char result6[8] = {0x01, 0x01, 0x03, 0x03, 0x05, 0x05, 0x07, 0x07};
  char result7[8] = {0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00};
  char result8[8] = {0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01};
  char result9[8] = {0xfe, 0xff, 0xfe, 0xfe, 0xff, 0xfe, 0xfe, 0xfe};
  char result10[8] = {0xfe, 0xff, 0xfe, 0xfe, 0xff, 0xfe, 0xfe, 0xff};
  char result11[8] = {0x00, 0x01, 0x02, 0x02, 0x05, 0x04, 0x06, 0x06};
  char result12[8] = {0x00, 0x01, 0x02, 0x02, 0x05, 0x04, 0x06, 0x07};
  printf("\n-------------------------------------------------------------------"
         "---------\n");
  printf("  Test PutCharIntoArray()\n");
  printf("---------------------------------------------------------------------"
         "-------\n");
  TestPutCharIntoArrayEx("/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/NaMorham/"
                         "QUT-Tutoring-1-C/refs/heads/master/GetLastBit/main.c",
                         337, nullArray, 8, 0x00, -1, result1);
  TestPutCharIntoArrayEx("/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/NaMorham/"
                         "QUT-Tutoring-1-C/refs/heads/master/GetLastBit/main.c",
                         338, test1, 0, 0x00, -1, result1);
  TestPutCharIntoArrayEx("/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/NaMorham/"
                         "QUT-Tutoring-1-C/refs/heads/master/GetLastBit/main.c",
                         339, test1, -8, 0x00, -1, result1);
  TestPutCharIntoArrayEx("/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/NaMorham/"
                         "QUT-Tutoring-1-C/refs/heads/master/GetLastBit/main.c",
                         340, test1, 3, 0x00, -1, result1);
  TestPutCharIntoArrayEx("/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/NaMorham/"
                         "QUT-Tutoring-1-C/refs/heads/master/GetLastBit/main.c",
                         342, test1, 8, 0x00, 0, result1);
  TestPutCharIntoArrayEx("/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/NaMorham/"
                         "QUT-Tutoring-1-C/refs/heads/master/GetLastBit/main.c",
                         343, test1, 8, 0xff, 0, result2);
  TestPutCharIntoArrayEx("/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/NaMorham/"
                         "QUT-Tutoring-1-C/refs/heads/master/GetLastBit/main.c",
                         345, test2, 8, 0x00, 0, result3);
  TestPutCharIntoArrayEx("/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/NaMorham/"
                         "QUT-Tutoring-1-C/refs/heads/master/GetLastBit/main.c",
                         346, test2, 8, 0xff, 0, result4);
  TestPutCharIntoArrayEx("/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/NaMorham/"
                         "QUT-Tutoring-1-C/refs/heads/master/GetLastBit/main.c",
                         348, test3, 8, 0x00, 0, result5);
  TestPutCharIntoArrayEx("/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/NaMorham/"
                         "QUT-Tutoring-1-C/refs/heads/master/GetLastBit/main.c",
                         349, test3, 8, 0xff, 0, result6);
  TestPutCharIntoArrayEx("/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/NaMorham/"
                         "QUT-Tutoring-1-C/refs/heads/master/GetLastBit/main.c",
                         351, test1, 8, 'H', 0, result7);
  TestPutCharIntoArrayEx("/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/NaMorham/"
                         "QUT-Tutoring-1-C/refs/heads/master/GetLastBit/main.c",
                         352, test1, 8, 'I', 0, result8);
  TestPutCharIntoArrayEx("/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/NaMorham/"
                         "QUT-Tutoring-1-C/refs/heads/master/GetLastBit/main.c",
                         354, test2, 8, 'H', 0, result9);
  TestPutCharIntoArrayEx("/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/NaMorham/"
                         "QUT-Tutoring-1-C/refs/heads/master/GetLastBit/main.c",
                         355, test2, 8, 'I', 0, result10);
  TestPutCharIntoArrayEx("/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/NaMorham/"
                         "QUT-Tutoring-1-C/refs/heads/master/GetLastBit/main.c",
                         357, test3, 8, 'H', 0, result11);
  TestPutCharIntoArrayEx("/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/NaMorham/"
                         "QUT-Tutoring-1-C/refs/heads/master/GetLastBit/main.c",
                         358, test3, 8, 'I', 0, result12);
  printf("\n-------------------------------------------------------------------"
         "---------\n");
  printf("  Done.\n");
  printf("---------------------------------------------------------------------"
         "-------\n\n");
}


x86 assembly (clang, -O0):
<TestPutCharIntoArray>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movq   $0x0,-0x8(%rbp)
lea    -0x10(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1050 <memset@plt>
mov    0xea6(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xea3(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    -0x28(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1050 <memset@plt>
mov    0xe90(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xe8d(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xe6a(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xe7f(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xe7c(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xe79(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xe76(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xe73(%rip),%rax
mov    %rax,-0x68(%rbp)
mov    0xe70(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0xe6d(%rip),%rax
mov    %rax,-0x78(%rbp)
mov    0xe6a(%rip),%rax
mov    %rax,-0x80(%rbp)
lea    0xe67(%rip),%rdi
call   1040 <printf@plt>
lea    0xeaa(%rip),%rdi
call   1040 <printf@plt>
lea    0xe50(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdx
lea    -0x28(%rbp),%rax
lea    0xea5(%rip),%rdi
mov    $0x151,%esi
mov    $0x8,%ecx
xor    %r8d,%r8d
mov    $0xffffffff,%r9d
mov    %rax,(%rsp)
call   1030 <TestPutCharIntoArrayEx@plt>
lea    -0x10(%rbp),%rdx
lea    -0x28(%rbp),%rax
lea    0xe7a(%rip),%rdi
mov    $0x152,%esi
xor    %r8d,%r8d
mov    $0xffffffff,%r9d
mov    %r8d,%ecx
mov    %rax,(%rsp)
call   1030 <TestPutCharIntoArrayEx@plt>
lea    -0x10(%rbp),%rdx
lea    -0x28(%rbp),%rax
lea    0xe51(%rip),%rdi
mov    $0x153,%esi
mov    $0xfffffff8,%ecx
xor    %r8d,%r8d
mov    $0xffffffff,%r9d
mov    %rax,(%rsp)
call   1030 <TestPutCharIntoArrayEx@plt>
lea    -0x10(%rbp),%rdx
lea    -0x28(%rbp),%rax
lea    0xe26(%rip),%rdi
mov    $0x154,%esi
mov    $0x3,%ecx
xor    %r8d,%r8d
mov    $0xffffffff,%r9d
mov    %rax,(%rsp)
call   1030 <TestPutCharIntoArrayEx@plt>
lea    -0x10(%rbp),%rdx
lea    -0x28(%rbp),%rax
lea    0xdfb(%rip),%rdi
mov    $0x156,%esi
mov    $0x8,%ecx
xor    %r9d,%r9d
mov    %r9d,%r8d
mov    %rax,(%rsp)
call   1030 <TestPutCharIntoArrayEx@plt>
lea    -0x10(%rbp),%rdx
lea    -0x30(%rbp),%rax
lea    0xdd3(%rip),%rdi
mov    $0x157,%esi
mov    $0x8,%ecx
mov    $0xffffffff,%r8d
xor    %r9d,%r9d
mov    %rax,(%rsp)
call   1030 <TestPutCharIntoArrayEx@plt>
lea    -0x18(%rbp),%rdx
lea    -0x38(%rbp),%rax
lea    0xda8(%rip),%rdi
mov    $0x159,%esi
mov    $0x8,%ecx
xor    %r9d,%r9d
mov    %r9d,%r8d
mov    %rax,(%rsp)
call   1030 <TestPutCharIntoArrayEx@plt>
lea    -0x18(%rbp),%rdx
lea    -0x40(%rbp),%rax
lea    0xd80(%rip),%rdi
mov    $0x15a,%esi
mov    $0x8,%ecx
mov    $0xffffffff,%r8d
xor    %r9d,%r9d
mov    %rax,(%rsp)
call   1030 <TestPutCharIntoArrayEx@plt>
lea    -0x20(%rbp),%rdx
lea    -0x48(%rbp),%rax
lea    0xd55(%rip),%rdi
mov    $0x15c,%esi
mov    $0x8,%ecx
xor    %r9d,%r9d
mov    %r9d,%r8d
mov    %rax,(%rsp)
call   1030 <TestPutCharIntoArrayEx@plt>
lea    -0x20(%rbp),%rdx
lea    -0x50(%rbp),%rax
lea    0xd2d(%rip),%rdi
mov    $0x15d,%esi
mov    $0x8,%ecx
mov    $0xffffffff,%r8d
xor    %r9d,%r9d
mov    %rax,(%rsp)
call   1030 <TestPutCharIntoArrayEx@plt>
lea    -0x10(%rbp),%rdx
lea    -0x58(%rbp),%rax
lea    0xd02(%rip),%rdi
mov    $0x15f,%esi
mov    $0x8,%ecx
mov    $0x48,%r8d
xor    %r9d,%r9d
mov    %rax,(%rsp)
call   1030 <TestPutCharIntoArrayEx@plt>
lea    -0x10(%rbp),%rdx
lea    -0x60(%rbp),%rax
lea    0xcd7(%rip),%rdi
mov    $0x160,%esi
mov    $0x8,%ecx
mov    $0x49,%r8d
xor    %r9d,%r9d
mov    %rax,(%rsp)
call   1030 <TestPutCharIntoArrayEx@plt>
lea    -0x18(%rbp),%rdx
lea    -0x68(%rbp),%rax
lea    0xcac(%rip),%rdi
mov    $0x162,%esi
mov    $0x8,%ecx
mov    $0x48,%r8d
xor    %r9d,%r9d
mov    %rax,(%rsp)
call   1030 <TestPutCharIntoArrayEx@plt>
lea    -0x18(%rbp),%rdx
lea    -0x70(%rbp),%rax
lea    0xc81(%rip),%rdi
mov    $0x163,%esi
mov    $0x8,%ecx
mov    $0x49,%r8d
xor    %r9d,%r9d
mov    %rax,(%rsp)
call   1030 <TestPutCharIntoArrayEx@plt>
lea    -0x20(%rbp),%rdx
lea    -0x78(%rbp),%rax
lea    0xc56(%rip),%rdi
mov    $0x165,%esi
mov    $0x8,%ecx
mov    $0x48,%r8d
xor    %r9d,%r9d
mov    %rax,(%rsp)
call   1030 <TestPutCharIntoArrayEx@plt>
lea    -0x20(%rbp),%rdx
lea    -0x80(%rbp),%rax
lea    0xc2b(%rip),%rdi
mov    $0x166,%esi
mov    $0x8,%ecx
mov    $0x49,%r8d
xor    %r9d,%r9d
mov    %rax,(%rsp)
call   1030 <TestPutCharIntoArrayEx@plt>
lea    0xb9e(%rip),%rdi
call   1040 <printf@plt>
lea    0xc94(%rip),%rdi
call   1040 <printf@plt>
lea    0xc91(%rip),%rdi
call   1040 <printf@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TestPutCharIntoArray>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x80,%rsp
movq   $0x0,0x78(%rsp)
movq   $0xffffffffffffffff,0x70(%rsp)
ff ff
movabs $0x706050403020100,%rax
05 06 07
mov    %rax,0x68(%rsp)
movq   $0x0,0x60(%rsp)
movabs $0x101010101010101,%rax
01 01 01
mov    %rax,0x58(%rsp)
movabs $0xfefefefefefefefe,%rax
fe fe fe
mov    %rax,0x50(%rsp)
movq   $0xffffffffffffffff,0x48(%rsp)
ff ff
movabs $0x606040402020000,%rax
04 06 06
mov    %rax,0x40(%rsp)
movabs $0x707050503030101,%rax
05 07 07
mov    %rax,0x38(%rsp)
movabs $0x100000100,%rax
mov    %rax,0x30(%rsp)
movabs $0x100000100000100,%rax
mov    %rax,0x28(%rsp)
movabs $0xfefefefffefefffe,%rax
fe fe fe
mov    %rax,0x20(%rsp)
movabs $0xfffefefffefefffe,%rax
fe fe ff
mov    %rax,0x18(%rsp)
movabs $0x606040502020100,%rax
04 06 06
mov    %rax,0x10(%rsp)
movabs $0x706040502020100,%rax
04 06 07
mov    %rax,0x8(%rsp)
lea    0xeb2(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0xe89(%rip),%rdi
call   1040 <puts@plt>
lea    0xe98(%rip),%rdi
call   1040 <puts@plt>
lea    0x60(%rsp),%r12
mov    %r12,(%rsp)
lea    0xdd0(%rip),%rbx
mov    %rbx,%rdi
mov    $0x151,%esi
xor    %edx,%edx
mov    $0x8,%ecx
xor    %r8d,%r8d
mov    $0xffffffff,%r9d
call   1030 <TestPutCharIntoArrayEx@plt>
mov    %r12,(%rsp)
lea    0x78(%rsp),%r15
mov    %rbx,%rdi
mov    $0x152,%esi
mov    %r15,%rdx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    $0xffffffff,%r9d
call   1030 <TestPutCharIntoArrayEx@plt>
mov    %r12,(%rsp)
mov    %rbx,%rdi
mov    $0x153,%esi
mov    %r15,%rdx
mov    $0xfffffff8,%ecx
xor    %r8d,%r8d
mov    $0xffffffff,%r9d
call   1030 <TestPutCharIntoArrayEx@plt>
mov    %r12,(%rsp)
mov    %rbx,%rdi
mov    $0x154,%esi
mov    %r15,%rdx
mov    $0x3,%ecx
xor    %r8d,%r8d
mov    $0xffffffff,%r9d
call   1030 <TestPutCharIntoArrayEx@plt>
mov    %r12,(%rsp)
mov    %rbx,%rdi
mov    $0x156,%esi
mov    %r15,%rdx
mov    $0x8,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <TestPutCharIntoArrayEx@plt>
lea    0x58(%rsp),%rax
mov    %rax,(%rsp)
mov    %rbx,%rdi
mov    $0x157,%esi
mov    %r15,%rdx
mov    $0x8,%ecx
mov    $0xffffffff,%r8d
xor    %r9d,%r9d
call   1030 <TestPutCharIntoArrayEx@plt>
lea    0x50(%rsp),%rax
mov    %rax,(%rsp)
lea    0x70(%rsp),%r12
mov    %rbx,%rdi
mov    $0x159,%esi
mov    %r12,%rdx
mov    $0x8,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <TestPutCharIntoArrayEx@plt>
lea    0x48(%rsp),%rax
mov    %rax,(%rsp)
mov    %rbx,%rdi
mov    $0x15a,%esi
mov    %r12,%rdx
mov    $0x8,%ecx
mov    $0xffffffff,%r8d
xor    %r9d,%r9d
call   1030 <TestPutCharIntoArrayEx@plt>
lea    0x40(%rsp),%rax
mov    %rax,(%rsp)
lea    0x68(%rsp),%r13
mov    %rbx,%rdi
mov    $0x15c,%esi
mov    %r13,%rdx
mov    $0x8,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <TestPutCharIntoArrayEx@plt>
lea    0x38(%rsp),%rax
mov    %rax,(%rsp)
mov    %rbx,%rdi
mov    $0x15d,%esi
mov    %r13,%rdx
mov    $0x8,%ecx
mov    $0xffffffff,%r8d
xor    %r9d,%r9d
call   1030 <TestPutCharIntoArrayEx@plt>
lea    0x30(%rsp),%rax
mov    %rax,(%rsp)
mov    %rbx,%rdi
mov    $0x15f,%esi
mov    %r15,%rdx
mov    $0x8,%ecx
mov    $0x48,%r8d
xor    %r9d,%r9d
call   1030 <TestPutCharIntoArrayEx@plt>
lea    0x28(%rsp),%rax
mov    %rax,(%rsp)
mov    %rbx,%rdi
mov    $0x160,%esi
mov    %r15,%rdx
mov    $0x8,%ecx
mov    $0x49,%r8d
xor    %r9d,%r9d
call   1030 <TestPutCharIntoArrayEx@plt>
lea    0x20(%rsp),%rax
mov    %rax,(%rsp)
mov    %rbx,%rdi
mov    $0x162,%esi
mov    %r12,%rdx
mov    $0x8,%ecx
mov    $0x48,%r8d
xor    %r9d,%r9d
call   1030 <TestPutCharIntoArrayEx@plt>
lea    0x18(%rsp),%rax
mov    %rax,(%rsp)
mov    %rbx,%rdi
mov    $0x163,%esi
mov    %r12,%rdx
mov    $0x8,%ecx
mov    $0x49,%r8d
xor    %r9d,%r9d
call   1030 <TestPutCharIntoArrayEx@plt>
lea    0x10(%rsp),%rax
mov    %rax,(%rsp)
mov    %rbx,%rdi
mov    $0x165,%esi
mov    %r13,%rdx
mov    $0x8,%ecx
mov    $0x48,%r8d
xor    %r9d,%r9d
call   1030 <TestPutCharIntoArrayEx@plt>
lea    0x8(%rsp),%rax
mov    %rax,(%rsp)
mov    %rbx,%rdi
mov    $0x166,%esi
mov    %r13,%rdx
mov    $0x8,%ecx
mov    $0x49,%r8d
xor    %r9d,%r9d
call   1030 <TestPutCharIntoArrayEx@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0xc6c(%rip),%rdi
call   1040 <puts@plt>
lea    0xc68(%rip),%rdi
call   1040 <puts@plt>
add    $0x80,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.TestPutCharIntoArray.test2 = [8 x i8] c"\FF\FF\FF\FF\FF\FF\FF\FF"
@__const.TestPutCharIntoArray.test3 = [8 x i8] c"\00\01\02\03\04\05\06\07"
@__const.TestPutCharIntoArray.result2 = [8 x i8] c"\01\01\01\01\01\01\01\01"
@__const.TestPutCharIntoArray.result3 = [8 x i8] c"\FE\FE\FE\FE\FE\FE\FE\FE"
@__const.TestPutCharIntoArray.result4 = [8 x i8] c"\FF\FF\FF\FF\FF\FF\FF\FF"
@__const.TestPutCharIntoArray.result5 = [8 x i8] c"\00\00\02\02\04\04\06\06"
@__const.TestPutCharIntoArray.result6 = [8 x i8] c"\01\01\03\03\05\05\07\07"
@__const.TestPutCharIntoArray.result7 = [8 x i8] c"\00\01\00\00\01\00\00\00"
@__const.TestPutCharIntoArray.result8 = [8 x i8] c"\00\01\00\00\01\00\00\01"
@__const.TestPutCharIntoArray.result9 = [8 x i8] c"\FE\FF\FE\FE\FF\FE\FE\FE"
@__const.TestPutCharIntoArray.result10 = [8 x i8] c"\FE\FF\FE\FE\FF\FE\FE\FF"
@__const.TestPutCharIntoArray.result11 = [8 x i8] c"\00\01\02\02\05\04\06\06"
@__const.TestPutCharIntoArray.result12 = [8 x i8] c"\00\01\02\02\05\04\06\07"
@.str = [79 x i8] c"\0A----------------------------------------------------------------------------\0A\00"
@.str.1 = [27 x i8] c" Test PutCharIntoArray()\0A\00"
@.str.2 = [78 x i8] c"----------------------------------------------------------------------------\0A\00"
@.str.3 = [152 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/NaMorham/QUT-Tutoring-1-C/refs/heads/master/GetLastBit/main.c\00"
@.str.4 = [9 x i8] c" Done.\0A\00"
@.str.5 = [79 x i8] c"----------------------------------------------------------------------------\0A\0A\00"
define void @TestPutCharIntoArray() {
%1 = alloca i8*
%2 = alloca [8 x i8]
%3 = alloca [8 x i8]
%4 = alloca [8 x i8]
%5 = alloca [8 x i8]
%6 = alloca [8 x i8]
%7 = alloca [8 x i8]
%8 = alloca [8 x i8]
%9 = alloca [8 x i8]
%10 = alloca [8 x i8]
%11 = alloca [8 x i8]
%12 = alloca [8 x i8]
%13 = alloca [8 x i8]
%14 = alloca [8 x i8]
%15 = alloca [8 x i8]
%16 = alloca [8 x i8]
store i8* null, i8** %1
%17 = bitcast [8 x i8]* %2 to i8*
%18 = bitcast [8 x i8]* %3 to i8*
%19 = bitcast [8 x i8]* %4 to i8*
%20 = bitcast [8 x i8]* %5 to i8*
%21 = bitcast [8 x i8]* %6 to i8*
%22 = bitcast [8 x i8]* %7 to i8*
%23 = bitcast [8 x i8]* %8 to i8*
%24 = bitcast [8 x i8]* %9 to i8*
%25 = bitcast [8 x i8]* %10 to i8*
%26 = bitcast [8 x i8]* %11 to i8*
%27 = bitcast [8 x i8]* %12 to i8*
%28 = bitcast [8 x i8]* %13 to i8*
%29 = bitcast [8 x i8]* %14 to i8*
%30 = bitcast [8 x i8]* %15 to i8*
%31 = bitcast [8 x i8]* %16 to i8*
%32 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str, i64 0, i64 0))
%33 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%34 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.2, i64 0, i64 0))
%35 = load i8*, i8** %1
%36 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 0
%37 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 337, i8* %35, i32 8, i8 signext 0, i32 -1, i8* %36)
%38 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%39 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 0
%40 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 338, i8* %38, i32 0, i8 signext 0, i32 -1, i8* %39)
%41 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%42 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 0
%43 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 339, i8* %41, i32 -8, i8 signext 0, i32 -1, i8* %42)
%44 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%45 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 0
%46 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 340, i8* %44, i32 3, i8 signext 0, i32 -1, i8* %45)
%47 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%48 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 0
%49 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 342, i8* %47, i32 8, i8 signext 0, i32 0, i8* %48)
%50 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%51 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%52 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 343, i8* %50, i32 8, i8 signext -1, i32 0, i8* %51)
%53 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 0
%54 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%55 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 345, i8* %53, i32 8, i8 signext 0, i32 0, i8* %54)
%56 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 0
%57 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 0
%58 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 346, i8* %56, i32 8, i8 signext -1, i32 0, i8* %57)
%59 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 0
%60 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 0
%61 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 348, i8* %59, i32 8, i8 signext 0, i32 0, i8* %60)
%62 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 0
%63 = getelementptr inbounds [8 x i8], [8 x i8]* %10, i64 0, i64 0
%64 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 349, i8* %62, i32 8, i8 signext -1, i32 0, i8* %63)
%65 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%66 = getelementptr inbounds [8 x i8], [8 x i8]* %11, i64 0, i64 0
%67 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 351, i8* %65, i32 8, i8 signext 72, i32 0, i8* %66)
%68 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%69 = getelementptr inbounds [8 x i8], [8 x i8]* %12, i64 0, i64 0
%70 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 352, i8* %68, i32 8, i8 signext 73, i32 0, i8* %69)
%71 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 0
%72 = getelementptr inbounds [8 x i8], [8 x i8]* %13, i64 0, i64 0
%73 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 354, i8* %71, i32 8, i8 signext 72, i32 0, i8* %72)
%74 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 0
%75 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%76 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 355, i8* %74, i32 8, i8 signext 73, i32 0, i8* %75)
%77 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 0
%78 = getelementptr inbounds [8 x i8], [8 x i8]* %15, i64 0, i64 0
%79 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 357, i8* %77, i32 8, i8 signext 72, i32 0, i8* %78)
%80 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 0
%81 = getelementptr inbounds [8 x i8], [8 x i8]* %16, i64 0, i64 0
%82 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 358, i8* %80, i32 8, i8 signext 73, i32 0, i8* %81)
%83 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str, i64 0, i64 0))
%84 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%85 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.3 = [152 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/NaMorham/QUT-Tutoring-1-C/refs/heads/master/GetLastBit/main.c\00"
@str.6 = [26 x i8] c" Test PutCharIntoArray()\00"
@str.7 = [77 x i8] c"----------------------------------------------------------------------------\00"
@str.8 = [78 x i8] c"\0A----------------------------------------------------------------------------\00"
@str.9 = [8 x i8] c" Done.\00"
@str.10 = [78 x i8] c"----------------------------------------------------------------------------\0A\00"
define void @TestPutCharIntoArray() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
%15 = alloca i64
%16 = bitcast i64* %1 to i8*
store i64 0, i64* %1
%17 = bitcast i64* %2 to i8*
store i64 -1, i64* %2
%18 = bitcast i64* %3 to i8*
store i64 506097522914230528, i64* %3
%19 = bitcast i64* %4 to i8*
store i64 0, i64* %4
%20 = bitcast i64* %5 to i8*
store i64 72340172838076673, i64* %5
%21 = bitcast i64* %6 to i8*
store i64 -72340172838076674, i64* %6
%22 = bitcast i64* %7 to i8*
store i64 -1, i64* %7
%23 = bitcast i64* %8 to i8*
store i64 434038829347897344, i64* %8
%24 = bitcast i64* %9 to i8*
store i64 506379002185974017, i64* %9
%25 = bitcast i64* %10 to i8*
store i64 4294967552, i64* %10
%26 = bitcast i64* %11 to i8*
store i64 72057598332895488, i64* %11
%27 = bitcast i64* %12 to i8*
store i64 -72340168543109122, i64* %12
%28 = bitcast i64* %13 to i8*
store i64 -282574505181186, i64* %13
%29 = bitcast i64* %14 to i8*
store i64 434038833642864896, i64* %14
%30 = bitcast i64* %15 to i8*
store i64 506096427680792832, i64* %15
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.8, i64 0, i64 0))
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.6, i64 0, i64 0))
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.7, i64 0, i64 0))
%34 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 337, i8* null, i32 8, i8 signext 0, i32 -1, i8* %19)
%35 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 338, i8* %16, i32 0, i8 signext 0, i32 -1, i8* %19)
%36 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 339, i8* %16, i32 -8, i8 signext 0, i32 -1, i8* %19)
%37 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 340, i8* %16, i32 3, i8 signext 0, i32 -1, i8* %19)
%38 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 342, i8* %16, i32 8, i8 signext 0, i32 0, i8* %19)
%39 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 343, i8* %16, i32 8, i8 signext -1, i32 0, i8* %20)
%40 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 345, i8* %17, i32 8, i8 signext 0, i32 0, i8* %21)
%41 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 346, i8* %17, i32 8, i8 signext -1, i32 0, i8* %22)
%42 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 348, i8* %18, i32 8, i8 signext 0, i32 0, i8* %23)
%43 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 349, i8* %18, i32 8, i8 signext -1, i32 0, i8* %24)
%44 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 351, i8* %16, i32 8, i8 signext 72, i32 0, i8* %25)
%45 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 352, i8* %16, i32 8, i8 signext 73, i32 0, i8* %26)
%46 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 354, i8* %17, i32 8, i8 signext 72, i32 0, i8* %27)
%47 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 355, i8* %17, i32 8, i8 signext 73, i32 0, i8* %28)
%48 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 357, i8* %18, i32 8, i8 signext 72, i32 0, i8* %29)
%49 = call i32 @TestPutCharIntoArrayEx(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0), i32 358, i8* %18, i32 8, i8 signext 73, i32 0, i8* %30)
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.8, i64 0, i64 0))
%51 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.9, i64 0, i64 0))
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.10, i64 0, i64 0))
ret void
}