#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 s_readInt(char *, int /*<<< orphan*/, char **);
int s_readInt10n(char *, int, char **);
int /*<<< orphan*/ s_test_long_eq_(char, char, char *, char *, int);
int /*<<< orphan*/ strcpy(char *, char *);
void s_str_test_readNum() {
  char buf[100];
  char *p, *p2;
  int n;
  strcpy(buf, "123");
  p = buf;
  n = s_readInt10n(p, 0, NULL);
  s_test_long_eq_(n, 123, "s_str_readNum:1",
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/kujirahand/sakuramml-c/"
                  "refs/heads/master/src/s_str_test.c",
                  115);
  strcpy(buf, "5ab");
  p = buf;
  n = s_readInt10n(p, 0, NULL);
  s_test_long_eq_(n, 5, "s_str_readNum:2",
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/kujirahand/sakuramml-c/"
                  "refs/heads/master/src/s_str_test.c",
                  120);
  strcpy(buf, "ab");
  p = buf;
  n = s_readInt10n(p, 0, NULL);
  s_test_long_eq_(n, 0, "s_str_readNum:3",
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/kujirahand/sakuramml-c/"
                  "refs/heads/master/src/s_str_test.c",
                  125);
  strcpy(buf, "123abc");
  p = buf;
  n = s_readInt10n(p, 0, &p2);
  s_test_long_eq_(n, 123, "s_str_readNum:4a",
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/kujirahand/sakuramml-c/"
                  "refs/heads/master/src/s_str_test.c",
                  130);
  s_test_long_eq_(*p2, 'a', "s_str_readNum:4b",
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/kujirahand/sakuramml-c/"
                  "refs/heads/master/src/s_str_test.c",
                  131);
  strcpy(buf, "abc");
  p = buf;
  n = s_readInt10n(p, 50, &p2);
  s_test_long_eq_(n, 50, "s_str_readNum:5a",
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/kujirahand/sakuramml-c/"
                  "refs/heads/master/src/s_str_test.c",
                  136);
  s_test_long_eq_(*p2, 'a', "s_str_readNum:5b",
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/kujirahand/sakuramml-c/"
                  "refs/heads/master/src/s_str_test.c",
                  137);
  strcpy(buf, "123abc");
  p = buf;
  n = s_readInt(p, 0, &p);
  s_test_long_eq_(n, 123, "s_readInt:1a",
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/kujirahand/sakuramml-c/"
                  "refs/heads/master/src/s_str_test.c",
                  142);
  s_test_long_eq_(*p, 'a', "s_readInt:1b",
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/kujirahand/sakuramml-c/"
                  "refs/heads/master/src/s_str_test.c",
                  143);
  strcpy(buf, "$FF:");
  p = buf;
  n = s_readInt(p, 0, &p);
  s_test_long_eq_(n, 255, "s_readInt:2a",
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/kujirahand/sakuramml-c/"
                  "refs/heads/master/src/s_str_test.c",
                  148);
  s_test_long_eq_(*p, ':', "s_readInt:2b",
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/kujirahand/sakuramml-c/"
                  "refs/heads/master/src/s_str_test.c",
                  149);
  strcpy(buf, "0xFF:");
  p = buf;
  n = s_readInt(p, 0, &p);
  s_test_long_eq_(n, 255, "s_readInt:3a",
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/kujirahand/sakuramml-c/"
                  "refs/heads/master/src/s_str_test.c",
                  154);
  s_test_long_eq_(*p, ':', "s_readInt:3b",
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/kujirahand/sakuramml-c/"
                  "refs/heads/master/src/s_str_test.c",
                  155);
}


x86 assembly (clang, -O0):
<s_str_test_readNum>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
lea    -0x70(%rbp),%rdi
lea    0xeaa(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x70(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
xor    %esi,%esi
xor    %eax,%eax
mov    %eax,%edx
call   1050 <s_readInt10n@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%eax
mov    $0x7b,%esi
lea    0xe7a(%rip),%rdx
lea    0xe83(%rip),%rcx
mov    $0x73,%r8d
movsbl %al,%edi
call   1040 <s_test_long_eq_@plt>
lea    -0x70(%rbp),%rdi
lea    0xefe(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x70(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
xor    %esi,%esi
xor    %eax,%eax
mov    %eax,%edx
call   1050 <s_readInt10n@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%eax
mov    $0x5,%esi
lea    0xece(%rip),%rdx
lea    0xe2f(%rip),%rcx
mov    $0x78,%r8d
movsbl %al,%edi
call   1040 <s_test_long_eq_@plt>
lea    -0x70(%rbp),%rdi
lea    0xeab(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x70(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
xor    %esi,%esi
xor    %eax,%eax
mov    %eax,%edx
call   1050 <s_readInt10n@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%eax
xor    %esi,%esi
lea    0xe8d(%rip),%rdx
lea    0xdde(%rip),%rcx
mov    $0x7d,%r8d
movsbl %al,%edi
call   1040 <s_test_long_eq_@plt>
lea    -0x70(%rbp),%rdi
lea    0xe7d(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x70(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
xor    %esi,%esi
lea    -0x80(%rbp),%rdx
call   1050 <s_readInt10n@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%eax
mov    $0x7b,%esi
lea    0xe50(%rip),%rdx
lea    0xd8a(%rip),%rcx
mov    $0x82,%r8d
movsbl %al,%edi
call   1040 <s_test_long_eq_@plt>
mov    -0x80(%rbp),%rax
mov    $0x61,%esi
lea    0xe3c(%rip),%rdx
lea    0xd65(%rip),%rcx
mov    $0x83,%r8d
movsbl (%rax),%edi
call   1040 <s_test_long_eq_@plt>
lea    -0x70(%rbp),%rdi
lea    0xe07(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x70(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
mov    $0x32,%esi
lea    -0x80(%rbp),%rdx
call   1050 <s_readInt10n@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%eax
mov    $0x32,%esi
lea    0xdf6(%rip),%rdx
lea    0xd0e(%rip),%rcx
mov    $0x88,%r8d
movsbl %al,%edi
call   1040 <s_test_long_eq_@plt>
mov    -0x80(%rbp),%rax
mov    $0x61,%esi
lea    0xde2(%rip),%rdx
lea    0xce9(%rip),%rcx
mov    $0x89,%r8d
movsbl (%rax),%edi
call   1040 <s_test_long_eq_@plt>
lea    -0x70(%rbp),%rdi
lea    0xd88(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x70(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
xor    %esi,%esi
lea    -0x78(%rbp),%rdx
call   1060 <s_readInt@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%eax
mov    $0x7b,%esi
lea    0xd9f(%rip),%rdx
lea    0xc95(%rip),%rcx
mov    $0x8e,%r8d
movsbl %al,%edi
call   1040 <s_test_long_eq_@plt>
mov    -0x78(%rbp),%rax
mov    $0x61,%esi
lea    0xd87(%rip),%rdx
lea    0xc70(%rip),%rcx
mov    $0x8f,%r8d
movsbl (%rax),%edi
call   1040 <s_test_long_eq_@plt>
lea    -0x70(%rbp),%rdi
lea    0xd74(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x70(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
xor    %esi,%esi
lea    -0x78(%rbp),%rdx
call   1060 <s_readInt@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%eax
mov    $0xffffffff,%esi
lea    0xd45(%rip),%rdx
lea    0xc1c(%rip),%rcx
mov    $0x94,%r8d
movsbl %al,%edi
call   1040 <s_test_long_eq_@plt>
mov    -0x78(%rbp),%rax
mov    $0x3a,%esi
lea    0xd2d(%rip),%rdx
lea    0xbf7(%rip),%rcx
mov    $0x95,%r8d
movsbl (%rax),%edi
call   1040 <s_test_long_eq_@plt>
lea    -0x70(%rbp),%rdi
lea    0xd1a(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x70(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
xor    %esi,%esi
lea    -0x78(%rbp),%rdx
call   1060 <s_readInt@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%eax
mov    $0xffffffff,%esi
lea    0xcec(%rip),%rdx
lea    0xba3(%rip),%rcx
mov    $0x9a,%r8d
movsbl %al,%edi
call   1040 <s_test_long_eq_@plt>
mov    -0x78(%rbp),%rax
mov    $0x3a,%esi
lea    0xcd4(%rip),%rdx
lea    0xb7e(%rip),%rcx
mov    $0x9b,%r8d
movsbl (%rax),%edi
call   1040 <s_test_long_eq_@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<s_str_test_readNum>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x78,%rsp
lea    0xeae(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1050 <s_readInt10n@plt>
movsbl %al,%edi
lea    0xe8f(%rip),%rdx
lea    0xe98(%rip),%r14
mov    $0x7b,%esi
mov    %r14,%rcx
mov    $0x73,%r8d
call   1040 <s_test_long_eq_@plt>
lea    0xf12(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1050 <s_readInt10n@plt>
movsbl %al,%edi
lea    0xef8(%rip),%rdx
mov    $0x5,%esi
mov    %r14,%rcx
mov    $0x78,%r8d
call   1040 <s_test_long_eq_@plt>
lea    0xedb(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1050 <s_readInt10n@plt>
movsbl %al,%edi
lea    0xed0(%rip),%rdx
xor    %esi,%esi
mov    %r14,%rcx
mov    $0x7d,%r8d
call   1040 <s_test_long_eq_@plt>
lea    0xec9(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <strcpy@plt>
lea    0x8(%rsp),%r12
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r12,%rdx
call   1050 <s_readInt10n@plt>
movsbl %al,%edi
lea    0xea9(%rip),%rdx
mov    $0x7b,%esi
mov    %r14,%rcx
mov    $0x82,%r8d
call   1040 <s_test_long_eq_@plt>
mov    0x8(%rsp),%rax
movsbl (%rax),%edi
lea    0xe98(%rip),%rdx
mov    $0x61,%esi
mov    %r14,%rcx
mov    $0x83,%r8d
call   1040 <s_test_long_eq_@plt>
lea    0xe69(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
mov    $0x32,%esi
mov    %r12,%rdx
call   1050 <s_readInt10n@plt>
movsbl %al,%edi
lea    0xe6d(%rip),%rdx
mov    $0x32,%esi
mov    %r14,%rcx
mov    $0x88,%r8d
call   1040 <s_test_long_eq_@plt>
mov    0x8(%rsp),%rax
movsbl (%rax),%edi
lea    0xe5c(%rip),%rdx
mov    $0x61,%esi
mov    %r14,%rcx
mov    $0x89,%r8d
call   1040 <s_test_long_eq_@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <strcpy@plt>
mov    %rbx,(%rsp)
mov    %rsp,%r15
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r15,%rdx
call   1060 <s_readInt@plt>
movsbl %al,%edi
lea    0xe31(%rip),%rdx
mov    $0x7b,%esi
mov    %r14,%rcx
mov    $0x8e,%r8d
call   1040 <s_test_long_eq_@plt>
mov    (%rsp),%rax
movsbl (%rax),%edi
lea    0xe1d(%rip),%rdx
mov    $0x61,%esi
mov    %r14,%rcx
mov    $0x8f,%r8d
call   1040 <s_test_long_eq_@plt>
lea    0xe10(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    %rbx,(%rsp)
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r15,%rdx
call   1060 <s_readInt@plt>
movsbl %al,%edi
lea    0xdf2(%rip),%rdx
mov    $0xffffffff,%esi
mov    %r14,%rcx
mov    $0x94,%r8d
call   1040 <s_test_long_eq_@plt>
mov    (%rsp),%rax
movsbl (%rax),%edi
lea    0xdde(%rip),%rdx
mov    $0x3a,%esi
mov    %r14,%rcx
mov    $0x95,%r8d
call   1040 <s_test_long_eq_@plt>
lea    0xdd1(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    %rbx,(%rsp)
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r15,%rdx
call   1060 <s_readInt@plt>
movsbl %al,%edi
lea    0xdb4(%rip),%rdx
mov    $0xffffffff,%esi
mov    %r14,%rcx
mov    $0x9a,%r8d
call   1040 <s_test_long_eq_@plt>
mov    (%rsp),%rax
movsbl (%rax),%edi
lea    0xda0(%rip),%rdx
mov    $0x3a,%esi
mov    %r14,%rcx
mov    $0x9b,%r8d
call   1040 <s_test_long_eq_@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [4 x i8] c"123\00"
@.str.1 = [16 x i8] c"s_str_readNum:1\00"
@.str.2 = [148 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kujirahand/sakuramml-c/refs/heads/master/src/s_str_test.c\00"
@.str.3 = [4 x i8] c"5ab\00"
@.str.4 = [16 x i8] c"s_str_readNum:2\00"
@.str.5 = [3 x i8] c"ab\00"
@.str.6 = [16 x i8] c"s_str_readNum:3\00"
@.str.7 = [7 x i8] c"123abc\00"
@.str.8 = [17 x i8] c"s_str_readNum:4a\00"
@.str.9 = [17 x i8] c"s_str_readNum:4b\00"
@.str.10 = [4 x i8] c"abc\00"
@.str.11 = [17 x i8] c"s_str_readNum:5a\00"
@.str.12 = [17 x i8] c"s_str_readNum:5b\00"
@.str.13 = [13 x i8] c"s_readInt:1a\00"
@.str.14 = [13 x i8] c"s_readInt:1b\00"
@.str.15 = [5 x i8] c"$FF:\00"
@.str.16 = [13 x i8] c"s_readInt:2a\00"
@.str.17 = [13 x i8] c"s_readInt:2b\00"
@.str.18 = [6 x i8] c"0xFF:\00"
@.str.19 = [13 x i8] c"s_readInt:3a\00"
@.str.20 = [13 x i8] c"s_readInt:3b\00"
define void @s_str_test_readNum() {
%1 = alloca [100 x i8]
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%6 = call i32 @strcpy(i8* %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
store i8* %7, i8** %2
%8 = load i8*, i8** %2
%9 = call i32 @s_readInt10n(i8* %8, i32 0, i8** null)
store i32 %9, i32* %4
%10 = load i32, i32* %4
%11 = trunc i32 %10 to i8
%12 = call i32 @s_test_long_eq_(i8 signext %11, i8 signext 123, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 115)
%13 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%14 = call i32 @strcpy(i8* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%15 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
store i8* %15, i8** %2
%16 = load i8*, i8** %2
%17 = call i32 @s_readInt10n(i8* %16, i32 0, i8** null)
store i32 %17, i32* %4
%18 = load i32, i32* %4
%19 = trunc i32 %18 to i8
%20 = call i32 @s_test_long_eq_(i8 signext %19, i8 signext 5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 120)
%21 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%22 = call i32 @strcpy(i8* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%23 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
store i8* %23, i8** %2
%24 = load i8*, i8** %2
%25 = call i32 @s_readInt10n(i8* %24, i32 0, i8** null)
store i32 %25, i32* %4
%26 = load i32, i32* %4
%27 = trunc i32 %26 to i8
%28 = call i32 @s_test_long_eq_(i8 signext %27, i8 signext 0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 125)
%29 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%30 = call i32 @strcpy(i8* %29, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%31 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
store i8* %31, i8** %2
%32 = load i8*, i8** %2
%33 = call i32 @s_readInt10n(i8* %32, i32 0, i8** %3)
store i32 %33, i32* %4
%34 = load i32, i32* %4
%35 = trunc i32 %34 to i8
%36 = call i32 @s_test_long_eq_(i8 signext %35, i8 signext 123, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 130)
%37 = load i8*, i8** %3
%38 = load i8, i8* %37
%39 = call i32 @s_test_long_eq_(i8 signext %38, i8 signext 97, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 131)
%40 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%41 = call i32 @strcpy(i8* %40, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%42 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
store i8* %42, i8** %2
%43 = load i8*, i8** %2
%44 = call i32 @s_readInt10n(i8* %43, i32 50, i8** %3)
store i32 %44, i32* %4
%45 = load i32, i32* %4
%46 = trunc i32 %45 to i8
%47 = call i32 @s_test_long_eq_(i8 signext %46, i8 signext 50, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 136)
%48 = load i8*, i8** %3
%49 = load i8, i8* %48
%50 = call i32 @s_test_long_eq_(i8 signext %49, i8 signext 97, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 137)
%51 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%52 = call i32 @strcpy(i8* %51, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%53 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
store i8* %53, i8** %2
%54 = load i8*, i8** %2
%55 = call i32 @s_readInt(i8* %54, i32 0, i8** %2)
store i32 %55, i32* %4
%56 = load i32, i32* %4
%57 = trunc i32 %56 to i8
%58 = call i32 @s_test_long_eq_(i8 signext %57, i8 signext 123, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 142)
%59 = load i8*, i8** %2
%60 = load i8, i8* %59
%61 = call i32 @s_test_long_eq_(i8 signext %60, i8 signext 97, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 143)
%62 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%63 = call i32 @strcpy(i8* %62, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%64 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
store i8* %64, i8** %2
%65 = load i8*, i8** %2
%66 = call i32 @s_readInt(i8* %65, i32 0, i8** %2)
store i32 %66, i32* %4
%67 = load i32, i32* %4
%68 = trunc i32 %67 to i8
%69 = call i32 @s_test_long_eq_(i8 signext %68, i8 signext -1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 148)
%70 = load i8*, i8** %2
%71 = load i8, i8* %70
%72 = call i32 @s_test_long_eq_(i8 signext %71, i8 signext 58, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 149)
%73 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%74 = call i32 @strcpy(i8* %73, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
%75 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
store i8* %75, i8** %2
%76 = load i8*, i8** %2
%77 = call i32 @s_readInt(i8* %76, i32 0, i8** %2)
store i32 %77, i32* %4
%78 = load i32, i32* %4
%79 = trunc i32 %78 to i8
%80 = call i32 @s_test_long_eq_(i8 signext %79, i8 signext -1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 154)
%81 = load i8*, i8** %2
%82 = load i8, i8* %81
%83 = call i32 @s_test_long_eq_(i8 signext %82, i8 signext 58, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 155)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"123\00"
@.str.1 = [16 x i8] c"s_str_readNum:1\00"
@.str.2 = [148 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kujirahand/sakuramml-c/refs/heads/master/src/s_str_test.c\00"
@.str.3 = [4 x i8] c"5ab\00"
@.str.4 = [16 x i8] c"s_str_readNum:2\00"
@.str.5 = [3 x i8] c"ab\00"
@.str.6 = [16 x i8] c"s_str_readNum:3\00"
@.str.7 = [7 x i8] c"123abc\00"
@.str.8 = [17 x i8] c"s_str_readNum:4a\00"
@.str.9 = [17 x i8] c"s_str_readNum:4b\00"
@.str.10 = [4 x i8] c"abc\00"
@.str.11 = [17 x i8] c"s_str_readNum:5a\00"
@.str.12 = [17 x i8] c"s_str_readNum:5b\00"
@.str.13 = [13 x i8] c"s_readInt:1a\00"
@.str.14 = [13 x i8] c"s_readInt:1b\00"
@.str.15 = [5 x i8] c"$FF:\00"
@.str.16 = [13 x i8] c"s_readInt:2a\00"
@.str.17 = [13 x i8] c"s_readInt:2b\00"
@.str.18 = [6 x i8] c"0xFF:\00"
@.str.19 = [13 x i8] c"s_readInt:3a\00"
@.str.20 = [13 x i8] c"s_readInt:3b\00"
define void @s_str_test_readNum() {
%1 = alloca [100 x i8]
%2 = alloca i8*
%3 = alloca i8*
%4 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%5 = bitcast i8** %2 to i8*
%6 = bitcast i8** %3 to i8*
%7 = call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @s_readInt10n(i8* %4, i32 0, i8** null)
%9 = trunc i32 %8 to i8
%10 = call i32 @s_test_long_eq_(i8 signext %9, i8 signext 123, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 115)
%11 = call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @s_readInt10n(i8* %4, i32 0, i8** null)
%13 = trunc i32 %12 to i8
%14 = call i32 @s_test_long_eq_(i8 signext %13, i8 signext 5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 120)
%15 = call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%16 = call i32 @s_readInt10n(i8* %4, i32 0, i8** null)
%17 = trunc i32 %16 to i8
%18 = call i32 @s_test_long_eq_(i8 signext %17, i8 signext 0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 125)
%19 = call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%20 = call i32 @s_readInt10n(i8* %4, i32 0, i8** %3)
%21 = trunc i32 %20 to i8
%22 = call i32 @s_test_long_eq_(i8 signext %21, i8 signext 123, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 130)
%23 = load i8*, i8** %3
%24 = load i8, i8* %23
%25 = call i32 @s_test_long_eq_(i8 signext %24, i8 signext 97, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 131)
%26 = call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%27 = call i32 @s_readInt10n(i8* %4, i32 50, i8** %3)
%28 = trunc i32 %27 to i8
%29 = call i32 @s_test_long_eq_(i8 signext %28, i8 signext 50, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 136)
%30 = load i8*, i8** %3
%31 = load i8, i8* %30
%32 = call i32 @s_test_long_eq_(i8 signext %31, i8 signext 97, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 137)
%33 = call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
store i8* %4, i8** %2
%34 = call i32 @s_readInt(i8* %4, i32 0, i8** %2)
%35 = trunc i32 %34 to i8
%36 = call i32 @s_test_long_eq_(i8 signext %35, i8 signext 123, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 142)
%37 = load i8*, i8** %2
%38 = load i8, i8* %37
%39 = call i32 @s_test_long_eq_(i8 signext %38, i8 signext 97, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 143)
%40 = call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
store i8* %4, i8** %2
%41 = call i32 @s_readInt(i8* %4, i32 0, i8** %2)
%42 = trunc i32 %41 to i8
%43 = call i32 @s_test_long_eq_(i8 signext %42, i8 signext -1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 148)
%44 = load i8*, i8** %2
%45 = load i8, i8* %44
%46 = call i32 @s_test_long_eq_(i8 signext %45, i8 signext 58, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 149)
%47 = call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
store i8* %4, i8** %2
%48 = call i32 @s_readInt(i8* %4, i32 0, i8** %2)
%49 = trunc i32 %48 to i8
%50 = call i32 @s_test_long_eq_(i8 signext %49, i8 signext -1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 154)
%51 = load i8*, i8** %2
%52 = load i8, i8* %51
%53 = call i32 @s_test_long_eq_(i8 signext %52, i8 signext 58, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 155)
ret void
}