#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*/ s2;

/* Variables and functions */
int /*<<< orphan*/ OS_Assert();
int /*<<< orphan*/ UartPrintf(char *, ...);
int /*<<< orphan*/ UartPrintfCritical(char *, char *, int);
int abs2(int);
int /*<<< orphan*/ itoa(int, char *, int);
int memcmp2(char *, char *, int);
int /*<<< orphan*/ memcpy2(char *, char *, int);
int /*<<< orphan*/ memset2(char *, char, int);
int /*<<< orphan*/ sprintf(char *, char *, char, int, int, char *);
int /*<<< orphan*/ sscanf(char *, char *, int *, int *, int *, char *);
int /*<<< orphan*/ strcat2(char *, char *);
int strcmp2(char *, char *);
int /*<<< orphan*/ strcpy2(char *, char *);
int strlen2(char *);
int /*<<< orphan*/ strncat2(char *, char *, int);
int strncmp(char *, char *, int);
int /*<<< orphan*/ strncpy(char *, char *, int);
char *strstr2(char *, char *);
void TestCLib(void) {
  char s1[80], s2[80], *ptr;
  int rc, v1, v2, v3;
  UartPrintf("TestCLib\n");
  strcpy2(s1, "Hello ");
  memset2(s2, 0, sizeof(s2));
  strncpy(s2, "World wide", 5);
  strcat2(s1, s2);
  strncat2(s1, "!\nthing", 2);
  UartPrintf("%s", s1);
  rc = strcmp2(s1, "Hello World!\n");
  if ((rc == 0) == 0) {
    OS_Assert();
    UartPrintfCritical(
        "\r\nAssert %s:%d\r\n",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/karvonz/Mandelbrot/refs/heads/master/"
        "soc_plasma/vhdl/plasma_core/kernel/rtos_test.c",
        53);
  };
  rc = strcmp2(s1, "Hello WOrld!\n");
  if ((rc > 0) == 0) {
    OS_Assert();
    UartPrintfCritical(
        "\r\nAssert %s:%d\r\n",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/karvonz/Mandelbrot/refs/heads/master/"
        "soc_plasma/vhdl/plasma_core/kernel/rtos_test.c",
        55);
  };
  rc = strcmp2(s1, "Hello world!\n");
  if ((rc < 0) == 0) {
    OS_Assert();
    UartPrintfCritical(
        "\r\nAssert %s:%d\r\n",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/karvonz/Mandelbrot/refs/heads/master/"
        "soc_plasma/vhdl/plasma_core/kernel/rtos_test.c",
        57);
  };
  rc = strncmp(s1, "Hellx", 4);
  if ((rc == 0) == 0) {
    OS_Assert();
    UartPrintfCritical(
        "\r\nAssert %s:%d\r\n",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/karvonz/Mandelbrot/refs/heads/master/"
        "soc_plasma/vhdl/plasma_core/kernel/rtos_test.c",
        59);
  };
  ptr = strstr2(s1, "orl");
  if ((ptr[0] == 'o') == 0) {
    OS_Assert();
    UartPrintfCritical(
        "\r\nAssert %s:%d\r\n",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/karvonz/Mandelbrot/refs/heads/master/"
        "soc_plasma/vhdl/plasma_core/kernel/rtos_test.c",
        61);
  };
  rc = strlen2(s1);
  if ((rc == 13) == 0) {
    OS_Assert();
    UartPrintfCritical(
        "\r\nAssert %s:%d\r\n",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/karvonz/Mandelbrot/refs/heads/master/"
        "soc_plasma/vhdl/plasma_core/kernel/rtos_test.c",
        63);
  };
  memcpy2(s2, s1, rc + 1);
  rc = memcmp2(s1, s2, 8);
  if ((rc == 0) == 0) {
    OS_Assert();
    UartPrintfCritical(
        "\r\nAssert %s:%d\r\n",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/karvonz/Mandelbrot/refs/heads/master/"
        "soc_plasma/vhdl/plasma_core/kernel/rtos_test.c",
        66);
  };
  s2[5] = 'z';
  rc = memcmp2(s1, s2, 8);
  if ((rc != 0) == 0) {
    OS_Assert();
    UartPrintfCritical(
        "\r\nAssert %s:%d\r\n",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/karvonz/Mandelbrot/refs/heads/master/"
        "soc_plasma/vhdl/plasma_core/kernel/rtos_test.c",
        69);
  };
  memset2(s2, 0, 5);
  memset2(s2, 'a', 3);
  rc = abs2(-5);
  itoa(1234, s1, 10);
  itoa(0, s1, 10);
  itoa(-1234, s1, 10);
  itoa(0xabcd, s1, 16);
  itoa(0x12ab, s1, 16);
  sprintf(s1, "test c%c d%d 0x%x s%s End\n", 'C', 1234, 0xabcd, "String");
  UartPrintf("%s", s1);
  sprintf(s1, "test c%c d%6d 0x%6x s%8s End\n", 'C', 1234, 0xabcd, "String");
  UartPrintf("%s", s1);
  sscanf("1234 -1234 0xabcd text h", "%d %d %x %s", &v1, &v2, &v3, s1);
  if ((v1 == 1234 && v2 == -1234 && v3 == 0xabcd) == 0) {
    OS_Assert();
    UartPrintfCritical(
        "\r\nAssert %s:%d\r\n",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/karvonz/Mandelbrot/refs/heads/master/"
        "soc_plasma/vhdl/plasma_core/kernel/rtos_test.c",
        83);
  };
  if ((strcmp2(s1, "text") == 0) == 0) {
    OS_Assert();
    UartPrintfCritical(
        "\r\nAssert %s:%d\r\n",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/karvonz/Mandelbrot/refs/heads/master/"
        "soc_plasma/vhdl/plasma_core/kernel/rtos_test.c",
        84);
  };
  UartPrintf("Done.\n");
}


x86 assembly (clang, -O0):
<TestCLib>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
lea    0xdce(%rip),%rdi
mov    $0x0,%al
call   10a0 <UartPrintf@plt>
lea    -0x50(%rbp),%rdi
lea    0xdc6(%rip),%rsi
call   1140 <strcpy2@plt>
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   10e0 <memset2@plt>
lea    -0xa0(%rbp),%rdi
lea    0xda7(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncpy@plt>
lea    -0x50(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
call   1030 <strcat2@plt>
lea    -0x50(%rbp),%rdi
lea    0xd8d(%rip),%rsi
mov    $0x2,%edx
call   10d0 <strncat2@plt>
lea    -0x50(%rbp),%rsi
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   10a0 <UartPrintf@plt>
lea    -0x50(%rbp),%rdi
lea    0xd6e(%rip),%rsi
call   1100 <strcmp2@plt>
mov    %eax,-0xac(%rbp)
cmpl   $0x0,-0xac(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x0,%eax
jne    12f8 <TestCLib+0xd8>
mov    $0x0,%al
call   1090 <OS_Assert@plt>
lea    0xd4b(%rip),%rdi
lea    0xd55(%rip),%rsi
mov    $0x35,%edx
call   1070 <UartPrintfCritical@plt>
lea    -0x50(%rbp),%rdi
lea    0xdee(%rip),%rsi
call   1100 <strcmp2@plt>
mov    %eax,-0xac(%rbp)
cmpl   $0x0,-0xac(%rbp)
setg   %al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x0,%eax
jne    1345 <TestCLib+0x125>
mov    $0x0,%al
call   1090 <OS_Assert@plt>
lea    0xcfe(%rip),%rdi
lea    0xd08(%rip),%rsi
mov    $0x37,%edx
call   1070 <UartPrintfCritical@plt>
lea    -0x50(%rbp),%rdi
lea    0xdaf(%rip),%rsi
call   1100 <strcmp2@plt>
mov    %eax,-0xac(%rbp)
cmpl   $0x0,-0xac(%rbp)
setl   %al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x0,%eax
jne    1392 <TestCLib+0x172>
mov    $0x0,%al
call   1090 <OS_Assert@plt>
lea    0xcb1(%rip),%rdi
lea    0xcbb(%rip),%rsi
mov    $0x39,%edx
call   1070 <UartPrintfCritical@plt>
lea    -0x50(%rbp),%rdi
lea    0xd70(%rip),%rsi
mov    $0x4,%edx
call   1050 <strncmp@plt>
mov    %eax,-0xac(%rbp)
cmpl   $0x0,-0xac(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x0,%eax
jne    13e4 <TestCLib+0x1c4>
mov    $0x0,%al
call   1090 <OS_Assert@plt>
lea    0xc5f(%rip),%rdi
lea    0xc69(%rip),%rsi
mov    $0x3b,%edx
call   1070 <UartPrintfCritical@plt>
lea    -0x50(%rbp),%rdi
lea    0xd24(%rip),%rsi
call   1060 <strstr2@plt>
mov    %rax,-0xa8(%rbp)
mov    -0xa8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x6f,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x0,%eax
jne    1438 <TestCLib+0x218>
mov    $0x0,%al
call   1090 <OS_Assert@plt>
lea    0xc0b(%rip),%rdi
lea    0xc15(%rip),%rsi
mov    $0x3d,%edx
call   1070 <UartPrintfCritical@plt>
lea    -0x50(%rbp),%rdi
call   10b0 <strlen2@plt>
mov    %eax,-0xac(%rbp)
cmpl   $0xd,-0xac(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x0,%eax
jne    147e <TestCLib+0x25e>
mov    $0x0,%al
call   1090 <OS_Assert@plt>
lea    0xbc5(%rip),%rdi
lea    0xbcf(%rip),%rsi
mov    $0x3f,%edx
call   1070 <UartPrintfCritical@plt>
lea    -0xa0(%rbp),%rdi
lea    -0x50(%rbp),%rsi
mov    -0xac(%rbp),%edx
add    $0x1,%edx
call   1080 <memcpy2@plt>
lea    -0x50(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
mov    $0x8,%edx
call   1110 <memcmp2@plt>
mov    %eax,-0xac(%rbp)
cmpl   $0x0,-0xac(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x0,%eax
jne    14e9 <TestCLib+0x2c9>
mov    $0x0,%al
call   1090 <OS_Assert@plt>
lea    0xb5a(%rip),%rdi
lea    0xb64(%rip),%rsi
mov    $0x42,%edx
call   1070 <UartPrintfCritical@plt>
movb   $0x7a,-0x9b(%rbp)
lea    -0x50(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
mov    $0x8,%edx
call   1110 <memcmp2@plt>
mov    %eax,-0xac(%rbp)
cmpl   $0x0,-0xac(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x0,%eax
jne    1542 <TestCLib+0x322>
mov    $0x0,%al
call   1090 <OS_Assert@plt>
lea    0xb01(%rip),%rdi
lea    0xb0b(%rip),%rsi
mov    $0x45,%edx
call   1070 <UartPrintfCritical@plt>
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x5,%edx
call   10e0 <memset2@plt>
lea    -0xa0(%rbp),%rdi
mov    $0x61,%esi
mov    $0x3,%edx
call   10e0 <memset2@plt>
mov    $0xfffffffb,%edi
call   10c0 <abs2@plt>
mov    %eax,-0xac(%rbp)
lea    -0x50(%rbp),%rsi
mov    $0x4d2,%edi
mov    $0xa,%edx
call   1130 <itoa@plt>
lea    -0x50(%rbp),%rsi
xor    %edi,%edi
mov    $0xa,%edx
call   1130 <itoa@plt>
lea    -0x50(%rbp),%rsi
mov    $0xfffffb2e,%edi
mov    $0xa,%edx
call   1130 <itoa@plt>
lea    -0x50(%rbp),%rsi
mov    $0xabcd,%edi
mov    $0x10,%edx
call   1130 <itoa@plt>
lea    -0x50(%rbp),%rsi
mov    $0x12ab,%edi
mov    $0x10,%edx
call   1130 <itoa@plt>
lea    -0x50(%rbp),%rdi
lea    0xb35(%rip),%rsi
mov    $0x43,%edx
mov    $0x4d2,%ecx
mov    $0xabcd,%r8d
lea    0xb39(%rip),%r9
call   1120 <sprintf@plt>
lea    -0x50(%rbp),%rsi
lea    0xb70(%rip),%rdi
mov    $0x0,%al
call   10a0 <UartPrintf@plt>
lea    -0x50(%rbp),%rdi
lea    0xb1e(%rip),%rsi
mov    $0x43,%edx
mov    $0x4d2,%ecx
mov    $0xabcd,%r8d
lea    0xb00(%rip),%r9
call   1120 <sprintf@plt>
lea    -0x50(%rbp),%rsi
lea    0xb37(%rip),%rdi
mov    $0x0,%al
call   10a0 <UartPrintf@plt>
lea    -0x50(%rbp),%r9
lea    0xb03(%rip),%rdi
lea    0xb15(%rip),%rsi
lea    -0xb0(%rbp),%rdx
lea    -0xb4(%rbp),%rcx
lea    -0xb8(%rbp),%r8
call   10f0 <sscanf@plt>
xor    %eax,%eax
cmpl   $0x4d2,-0xb0(%rbp)
mov    %al,-0xb9(%rbp)
jne    16b8 <TestCLib+0x498>
xor    %eax,%eax
cmpl   $0xfffffb2e,-0xb4(%rbp)
fb ff ff
mov    %al,-0xb9(%rbp)
jne    16b8 <TestCLib+0x498>
cmpl   $0xabcd,-0xb8(%rbp)
sete   %al
mov    %al,-0xb9(%rbp)
mov    -0xb9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x0,%eax
jne    16eb <TestCLib+0x4cb>
mov    $0x0,%al
call   1090 <OS_Assert@plt>
lea    0x958(%rip),%rdi
lea    0x962(%rip),%rsi
mov    $0x53,%edx
call   1070 <UartPrintfCritical@plt>
lea    -0x50(%rbp),%rdi
lea    0xa86(%rip),%rsi
call   1100 <strcmp2@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x0,%eax
jne    172e <TestCLib+0x50e>
mov    $0x0,%al
call   1090 <OS_Assert@plt>
lea    0x915(%rip),%rdi
lea    0x91f(%rip),%rsi
mov    $0x54,%edx
call   1070 <UartPrintfCritical@plt>
lea    0xa4c(%rip),%rdi
mov    $0x0,%al
call   10a0 <UartPrintf@plt>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TestCLib>:
push   %r15
push   %r14
push   %rbx
sub    $0xb0,%rsp
lea    0xdcd(%rip),%rdi
xor    %eax,%eax
call   10a0 <UartPrintf@plt>
lea    0xdc9(%rip),%rsi
lea    0x10(%rsp),%r14
mov    %r14,%rdi
call   1140 <strcpy2@plt>
lea    0x60(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   10e0 <memset2@plt>
lea    0xda8(%rip),%rsi
mov    %rbx,%rdi
mov    $0x5,%edx
call   1040 <strncpy@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <strcat2@plt>
lea    0xd94(%rip),%rsi
mov    %r14,%rdi
mov    $0x2,%edx
call   10d0 <strncat2@plt>
lea    0xedd(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   10a0 <UartPrintf@plt>
lea    0xd77(%rip),%rsi
mov    %r14,%rdi
call   1100 <strcmp2@plt>
test   %eax,%eax
je     12d8 <TestCLib+0xb8>
xor    %eax,%eax
call   1090 <OS_Assert@plt>
lea    0xd6b(%rip),%rdi
lea    0xd75(%rip),%rsi
mov    $0x35,%edx
call   1070 <UartPrintfCritical@plt>
lea    0xe12(%rip),%rsi
lea    0x10(%rsp),%rdi
call   1100 <strcmp2@plt>
test   %eax,%eax
jg     130c <TestCLib+0xec>
xor    %eax,%eax
call   1090 <OS_Assert@plt>
lea    0xd37(%rip),%rdi
lea    0xd41(%rip),%rsi
mov    $0x37,%edx
call   1070 <UartPrintfCritical@plt>
lea    0xdec(%rip),%rsi
lea    0x10(%rsp),%rdi
call   1100 <strcmp2@plt>
test   %eax,%eax
js     1340 <TestCLib+0x120>
xor    %eax,%eax
call   1090 <OS_Assert@plt>
lea    0xd03(%rip),%rdi
lea    0xd0d(%rip),%rsi
mov    $0x39,%edx
call   1070 <UartPrintfCritical@plt>
lea    0xdc6(%rip),%rsi
lea    0x10(%rsp),%rdi
mov    $0x4,%edx
call   1050 <strncmp@plt>
test   %eax,%eax
je     1379 <TestCLib+0x159>
xor    %eax,%eax
call   1090 <OS_Assert@plt>
lea    0xcca(%rip),%rdi
lea    0xcd4(%rip),%rsi
mov    $0x3b,%edx
call   1070 <UartPrintfCritical@plt>
lea    0xd93(%rip),%rsi
lea    0x10(%rsp),%rdi
call   1060 <strstr2@plt>
cmpb   $0x6f,(%rax)
je     13ae <TestCLib+0x18e>
xor    %eax,%eax
call   1090 <OS_Assert@plt>
lea    0xc95(%rip),%rdi
lea    0xc9f(%rip),%rsi
mov    $0x3d,%edx
call   1070 <UartPrintfCritical@plt>
lea    0x10(%rsp),%rdi
call   10b0 <strlen2@plt>
mov    %eax,%ebx
cmp    $0xd,%eax
je     13de <TestCLib+0x1be>
xor    %eax,%eax
call   1090 <OS_Assert@plt>
lea    0xc65(%rip),%rdi
lea    0xc6f(%rip),%rsi
mov    $0x3f,%edx
call   1070 <UartPrintfCritical@plt>
add    $0x1,%ebx
lea    0x60(%rsp),%r14
lea    0x10(%rsp),%r15
mov    %r14,%rdi
mov    %r15,%rsi
mov    %ebx,%edx
call   1080 <memcpy2@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0x8,%edx
call   1110 <memcmp2@plt>
test   %eax,%eax
je     142b <TestCLib+0x20b>
xor    %eax,%eax
call   1090 <OS_Assert@plt>
lea    0xc18(%rip),%rdi
lea    0xc22(%rip),%rsi
mov    $0x42,%edx
call   1070 <UartPrintfCritical@plt>
movb   $0x7a,0x65(%rsp)
lea    0x10(%rsp),%rdi
lea    0x60(%rsp),%rsi
mov    $0x8,%edx
call   1110 <memcmp2@plt>
test   %eax,%eax
jne    1467 <TestCLib+0x247>
xor    %eax,%eax
call   1090 <OS_Assert@plt>
lea    0xbdc(%rip),%rdi
lea    0xbe6(%rip),%rsi
mov    $0x45,%edx
call   1070 <UartPrintfCritical@plt>
lea    0x60(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x5,%edx
call   10e0 <memset2@plt>
mov    %rbx,%rdi
mov    $0x61,%esi
mov    $0x3,%edx
call   10e0 <memset2@plt>
mov    $0xfffffffb,%edi
call   10c0 <abs2@plt>
lea    0x10(%rsp),%rbx
mov    $0x4d2,%edi
mov    %rbx,%rsi
mov    $0xa,%edx
call   1130 <itoa@plt>
xor    %edi,%edi
mov    %rbx,%rsi
mov    $0xa,%edx
call   1130 <itoa@plt>
mov    $0xfffffb2e,%edi
mov    %rbx,%rsi
mov    $0xa,%edx
call   1130 <itoa@plt>
mov    $0xabcd,%edi
mov    %rbx,%rsi
mov    $0x10,%edx
call   1130 <itoa@plt>
mov    $0x12ab,%edi
mov    %rbx,%rsi
mov    $0x10,%edx
call   1130 <itoa@plt>
lea    0xc1d(%rip),%rsi
lea    0xc31(%rip),%r14
mov    %rbx,%rdi
mov    $0x43,%edx
mov    $0x4d2,%ecx
mov    $0xabcd,%r8d
mov    %r14,%r9
call   1120 <sprintf@plt>
lea    0xc56(%rip),%r15
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   10a0 <UartPrintf@plt>
lea    0xc02(%rip),%rsi
mov    %rbx,%rdi
mov    $0x43,%edx
mov    $0x4d2,%ecx
mov    $0xabcd,%r8d
mov    %r14,%r9
call   1120 <sprintf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   10a0 <UartPrintf@plt>
lea    0xbf1(%rip),%rdi
lea    0xc03(%rip),%rsi
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
lea    0x4(%rsp),%r8
mov    %rbx,%r9
call   10f0 <sscanf@plt>
cmpl   $0x4d2,0xc(%rsp)
jne    15a2 <TestCLib+0x382>
cmpl   $0xfffffb2e,0x8(%rsp)
ff
jne    15a2 <TestCLib+0x382>
cmpl   $0xabcd,0x4(%rsp)
je     15c1 <TestCLib+0x3a1>
xor    %eax,%eax
call   1090 <OS_Assert@plt>
lea    0xa82(%rip),%rdi
lea    0xa8c(%rip),%rsi
mov    $0x53,%edx
call   1070 <UartPrintfCritical@plt>
lea    0xbb4(%rip),%rsi
lea    0x10(%rsp),%rdi
call   1100 <strcmp2@plt>
test   %eax,%eax
je     15f5 <TestCLib+0x3d5>
xor    %eax,%eax
call   1090 <OS_Assert@plt>
lea    0xa4e(%rip),%rdi
lea    0xa58(%rip),%rsi
mov    $0x54,%edx
call   1070 <UartPrintfCritical@plt>
lea    0xb85(%rip),%rdi
xor    %eax,%eax
call   10a0 <UartPrintf@plt>
add    $0xb0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [10 x i8] c"TestCLib\0A\00"
@.str.1 = [7 x i8] c"Hello \00"
@.str.2 = [11 x i8] c"World wide\00"
@.str.3 = [8 x i8] c"!\0Athing\00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [14 x i8] c"Hello World!\0A\00"
@.str.6 = [17 x i8] c"\0D\0AAssert %s:%d\0D\0A\00"
@.str.7 = [174 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/karvonz/Mandelbrot/refs/heads/master/soc_plasma/vhdl/plasma_core/kernel/rtos_test.c\00"
@.str.8 = [14 x i8] c"Hello WOrld!\0A\00"
@.str.9 = [14 x i8] c"Hello world!\0A\00"
@.str.10 = [6 x i8] c"Hellx\00"
@.str.11 = [4 x i8] c"orl\00"
@.str.12 = [27 x i8] c"test c%c d%d 0x%x s%s End\0A\00"
@.str.13 = [7 x i8] c"String\00"
@.str.14 = [30 x i8] c"test c%c d%6d 0x%6x s%8s End\0A\00"
@.str.15 = [25 x i8] c"1234 -1234 0xabcd text h\00"
@.str.16 = [12 x i8] c"%d %d %x %s\00"
@.str.17 = [5 x i8] c"text\00"
@.str.18 = [7 x i8] c"Done.\0A\00"
define void @TestCLib() {
%1 = alloca [80 x i8]
%2 = alloca [80 x i8]
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = call i32 (i8*, ...) @UartPrintf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%9 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%10 = call i32 @strcpy2(i8* %9, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%11 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%12 = call i32 @memset2(i8* %11, i8 signext 0, i32 80)
%13 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%14 = call i32 @strncpy(i8* %13, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 5)
%15 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%16 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%17 = call i32 @strcat2(i8* %15, i8* %16)
%18 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%19 = call i32 @strncat2(i8* %18, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 2)
%20 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%21 = call i32 (i8*, ...) @UartPrintf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %20)
%22 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%23 = call i32 @strcmp2(i8* %22, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
store i32 %23, i32* %4
%24 = load i32, i32* %4
%25 = icmp eq i32 %24, 0
%26 = zext i1 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %0
%29 = call i32 (...) @OS_Assert()
%30 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 53)
br label %31
31: ; preds = %28, %0
%32 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%33 = call i32 @strcmp2(i8* %32, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
store i32 %33, i32* %4
%34 = load i32, i32* %4
%35 = icmp sgt i32 %34, 0
%36 = zext i1 %35 to i32
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %31
%39 = call i32 (...) @OS_Assert()
%40 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 55)
br label %41
41: ; preds = %38, %31
%42 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%43 = call i32 @strcmp2(i8* %42, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0))
store i32 %43, i32* %4
%44 = load i32, i32* %4
%45 = icmp slt i32 %44, 0
%46 = zext i1 %45 to i32
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %41
%49 = call i32 (...) @OS_Assert()
%50 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 57)
br label %51
51: ; preds = %48, %41
%52 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%53 = call i32 @strncmp(i8* %52, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 4)
store i32 %53, i32* %4
%54 = load i32, i32* %4
%55 = icmp eq i32 %54, 0
%56 = zext i1 %55 to i32
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %51
%59 = call i32 (...) @OS_Assert()
%60 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 59)
br label %61
61: ; preds = %58, %51
%62 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%63 = call i8* @strstr2(i8* %62, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
store i8* %63, i8** %3
%64 = load i8*, i8** %3
%65 = getelementptr inbounds i8, i8* %64, i64 0
%66 = load i8, i8* %65
%67 = sext i8 %66 to i32
%68 = icmp eq i32 %67, 111
%69 = zext i1 %68 to i32
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %74
71: ; preds = %61
%72 = call i32 (...) @OS_Assert()
%73 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 61)
br label %74
74: ; preds = %71, %61
%75 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%76 = call i32 @strlen2(i8* %75)
store i32 %76, i32* %4
%77 = load i32, i32* %4
%78 = icmp eq i32 %77, 13
%79 = zext i1 %78 to i32
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %84
81: ; preds = %74
%82 = call i32 (...) @OS_Assert()
%83 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 63)
br label %84
84: ; preds = %81, %74
%85 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%86 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%87 = load i32, i32* %4
%88 = add nsw i32 %87, 1
%89 = call i32 @memcpy2(i8* %85, i8* %86, i32 %88)
%90 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%91 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%92 = call i32 @memcmp2(i8* %90, i8* %91, i32 8)
store i32 %92, i32* %4
%93 = load i32, i32* %4
%94 = icmp eq i32 %93, 0
%95 = zext i1 %94 to i32
%96 = icmp eq i32 %95, 0
br i1 %96, label %97, label %100
97: ; preds = %84
%98 = call i32 (...) @OS_Assert()
%99 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 66)
br label %100
100: ; preds = %97, %84
%101 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 5
store i8 122, i8* %101
%102 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%103 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%104 = call i32 @memcmp2(i8* %102, i8* %103, i32 8)
store i32 %104, i32* %4
%105 = load i32, i32* %4
%106 = icmp ne i32 %105, 0
%107 = zext i1 %106 to i32
%108 = icmp eq i32 %107, 0
br i1 %108, label %109, label %112
109: ; preds = %100
%110 = call i32 (...) @OS_Assert()
%111 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 69)
br label %112
112: ; preds = %109, %100
%113 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%114 = call i32 @memset2(i8* %113, i8 signext 0, i32 5)
%115 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%116 = call i32 @memset2(i8* %115, i8 signext 97, i32 3)
%117 = call i32 @abs2(i32 -5)
store i32 %117, i32* %4
%118 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%119 = call i32 @itoa(i32 1234, i8* %118, i32 10)
%120 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%121 = call i32 @itoa(i32 0, i8* %120, i32 10)
%122 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%123 = call i32 @itoa(i32 -1234, i8* %122, i32 10)
%124 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%125 = call i32 @itoa(i32 43981, i8* %124, i32 16)
%126 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%127 = call i32 @itoa(i32 4779, i8* %126, i32 16)
%128 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%129 = call i32 @sprintf(i8* %128, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0), i8 signext 67, i32 1234, i32 43981, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%130 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%131 = call i32 (i8*, ...) @UartPrintf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %130)
%132 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%133 = call i32 @sprintf(i8* %132, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i8 signext 67, i32 1234, i32 43981, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%134 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%135 = call i32 (i8*, ...) @UartPrintf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %134)
%136 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%137 = call i32 @sscanf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.16, i64 0, i64 0), i32* %5, i32* %6, i32* %7, i8* %136)
%138 = load i32, i32* %5
%139 = icmp eq i32 %138, 1234
br i1 %139, label %140, label %146
140: ; preds = %112
%141 = load i32, i32* %6
%142 = icmp eq i32 %141, -1234
br i1 %142, label %143, label %146
143: ; preds = %140
%144 = load i32, i32* %7
%145 = icmp eq i32 %144, 43981
br label %146
146: ; preds = %143, %140, %112
%147 = phi i1 [ false, %140 ], [ false, %112 ], [ %145, %143 ]
%148 = zext i1 %147 to i32
%149 = icmp eq i32 %148, 0
br i1 %149, label %150, label %153
150: ; preds = %146
%151 = call i32 (...) @OS_Assert()
%152 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 83)
br label %153
153: ; preds = %150, %146
%154 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%155 = call i32 @strcmp2(i8* %154, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
%156 = icmp eq i32 %155, 0
%157 = zext i1 %156 to i32
%158 = icmp eq i32 %157, 0
br i1 %158, label %159, label %162
159: ; preds = %153
%160 = call i32 (...) @OS_Assert()
%161 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 84)
br label %162
162: ; preds = %159, %153
%163 = call i32 (i8*, ...) @UartPrintf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"TestCLib\0A\00"
@.str.1 = [7 x i8] c"Hello \00"
@.str.2 = [11 x i8] c"World wide\00"
@.str.3 = [8 x i8] c"!\0Athing\00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [14 x i8] c"Hello World!\0A\00"
@.str.6 = [17 x i8] c"\0D\0AAssert %s:%d\0D\0A\00"
@.str.7 = [174 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/karvonz/Mandelbrot/refs/heads/master/soc_plasma/vhdl/plasma_core/kernel/rtos_test.c\00"
@.str.8 = [14 x i8] c"Hello WOrld!\0A\00"
@.str.9 = [14 x i8] c"Hello world!\0A\00"
@.str.10 = [6 x i8] c"Hellx\00"
@.str.11 = [4 x i8] c"orl\00"
@.str.12 = [27 x i8] c"test c%c d%d 0x%x s%s End\0A\00"
@.str.13 = [7 x i8] c"String\00"
@.str.14 = [30 x i8] c"test c%c d%6d 0x%6x s%8s End\0A\00"
@.str.15 = [25 x i8] c"1234 -1234 0xabcd text h\00"
@.str.16 = [12 x i8] c"%d %d %x %s\00"
@.str.17 = [5 x i8] c"text\00"
@.str.18 = [7 x i8] c"Done.\0A\00"
define void @TestCLib() {
%1 = alloca [80 x i8]
%2 = alloca [80 x i8]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%7 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%8 = bitcast i32* %3 to i8*
%9 = bitcast i32* %4 to i8*
%10 = bitcast i32* %5 to i8*
%11 = tail call i32 (i8*, ...) @UartPrintf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%12 = call i32 @strcpy2(i8* %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%13 = call i32 @memset2(i8* %7, i8 signext 0, i32 80)
%14 = call i32 @strncpy(i8* %7, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 5)
%15 = call i32 @strcat2(i8* %6, i8* %7)
%16 = call i32 @strncat2(i8* %6, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 2)
%17 = call i32 (i8*, ...) @UartPrintf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %6)
%18 = call i32 @strcmp2(i8* %6, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%19 = icmp eq i32 %18, 0
br i1 %19, label %23, label %20
20: ; preds = %0
%21 = call i32 (...) @OS_Assert()
%22 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 53)
br label %23
23: ; preds = %20, %0
%24 = call i32 @strcmp2(i8* %6, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%25 = icmp slt i32 %24, 1
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = call i32 (...) @OS_Assert()
%28 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 55)
br label %29
29: ; preds = %26, %23
%30 = call i32 @strcmp2(i8* %6, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0))
%31 = icmp sgt i32 %30, -1
br i1 %31, label %32, label %35
32: ; preds = %29
%33 = call i32 (...) @OS_Assert()
%34 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 57)
br label %35
35: ; preds = %32, %29
%36 = call i32 @strncmp(i8* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 4)
%37 = icmp eq i32 %36, 0
br i1 %37, label %41, label %38
38: ; preds = %35
%39 = call i32 (...) @OS_Assert()
%40 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 59)
br label %41
41: ; preds = %38, %35
%42 = call i8* @strstr2(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%43 = load i8, i8* %42
%44 = icmp eq i8 %43, 111
br i1 %44, label %48, label %45
45: ; preds = %41
%46 = call i32 (...) @OS_Assert()
%47 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 61)
br label %48
48: ; preds = %45, %41
%49 = call i32 @strlen2(i8* %6)
%50 = icmp eq i32 %49, 13
br i1 %50, label %54, label %51
51: ; preds = %48
%52 = call i32 (...) @OS_Assert()
%53 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 63)
br label %54
54: ; preds = %51, %48
%55 = add nsw i32 %49, 1
%56 = call i32 @memcpy2(i8* %7, i8* %6, i32 %55)
%57 = call i32 @memcmp2(i8* %6, i8* %7, i32 8)
%58 = icmp eq i32 %57, 0
br i1 %58, label %62, label %59
59: ; preds = %54
%60 = call i32 (...) @OS_Assert()
%61 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 66)
br label %62
62: ; preds = %59, %54
%63 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 5
store i8 122, i8* %63
%64 = call i32 @memcmp2(i8* %6, i8* %7, i32 8)
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %62
%67 = call i32 (...) @OS_Assert()
%68 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 69)
br label %69
69: ; preds = %66, %62
%70 = call i32 @memset2(i8* %7, i8 signext 0, i32 5)
%71 = call i32 @memset2(i8* %7, i8 signext 97, i32 3)
%72 = call i32 @abs2(i32 -5)
%73 = call i32 @itoa(i32 1234, i8* %6, i32 10)
%74 = call i32 @itoa(i32 0, i8* %6, i32 10)
%75 = call i32 @itoa(i32 -1234, i8* %6, i32 10)
%76 = call i32 @itoa(i32 43981, i8* %6, i32 16)
%77 = call i32 @itoa(i32 4779, i8* %6, i32 16)
%78 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0), i8 signext 67, i32 1234, i32 43981, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%79 = call i32 (i8*, ...) @UartPrintf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %6)
%80 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i8 signext 67, i32 1234, i32 43981, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%81 = call i32 (i8*, ...) @UartPrintf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %6)
%82 = call i32 @sscanf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.16, i64 0, i64 0), i32* %3, i32* %4, i32* %5, i8* %6)
%83 = load i32, i32* %3
%84 = icmp ne i32 %83, 1234
%85 = load i32, i32* %4
%86 = icmp ne i32 %85, -1234
%87 = select i1 %84, i1 true, i1 %86
%88 = load i32, i32* %5
%89 = icmp ne i32 %88, 43981
%90 = select i1 %87, i1 true, i1 %89
br i1 %90, label %91, label %94
91: ; preds = %69
%92 = call i32 (...) @OS_Assert()
%93 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 83)
br label %94
94: ; preds = %69, %91
%95 = call i32 @strcmp2(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
%96 = icmp eq i32 %95, 0
br i1 %96, label %100, label %97
97: ; preds = %94
%98 = call i32 (...) @OS_Assert()
%99 = call i32 @UartPrintfCritical(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str.7, i64 0, i64 0), i32 84)
br label %100
100: ; preds = %97, %94
%101 = call i32 (i8*, ...) @UartPrintf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0))
ret void
}