#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*/ bar(int, int);
int /*<<< orphan*/ foo(char *);
void f(void) {
  foo("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/0x7F800000/gcc/refs/heads/arm-hot-cold/"
      "ARMToolChain/source/gcc-5.2.0/gcc/testsuite/gcc.dg/pr61861.c");
  foo("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/0x7F800000/gcc/refs/heads/arm-hot-cold/"
      "ARMToolChain/source/gcc-5.2.0/gcc/testsuite/gcc.dg/pr61861.c");
  foo("03:45:32");
  foo("Mar 18 2022");
  foo("Sat Jan 22 17:39:12 2022");
  bar(1, 25);
  bar(0, 1);
  foo("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/0x7F800000/gcc/refs/heads/arm-hot-cold/"
      "ARMToolChain/source/gcc-5.2.0/gcc/testsuite/gcc.dg/pr61861.c");
  foo("03:45:32");
  foo("Mar 18 2022");
  bar(1, 31);
  foo("foo");
  foo("foo");
  foo("foo");
  bar(1, 42);
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1040 <foo@plt>
lea    0xec9(%rip),%rdi
call   1040 <foo@plt>
lea    0xf7b(%rip),%rdi
call   1040 <foo@plt>
lea    0xf78(%rip),%rdi
call   1040 <foo@plt>
lea    0xf78(%rip),%rdi
call   1040 <foo@plt>
mov    $0x1,%edi
mov    $0x19,%esi
call   1030 <bar@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <bar@plt>
lea    0xe7e(%rip),%rdi
call   1040 <foo@plt>
lea    0xf30(%rip),%rdi
call   1040 <foo@plt>
lea    0xf2d(%rip),%rdi
call   1040 <foo@plt>
mov    $0x1,%edi
mov    $0x1f,%esi
call   1030 <bar@plt>
lea    0xf37(%rip),%rdi
call   1040 <foo@plt>
lea    0xf2b(%rip),%rdi
call   1040 <foo@plt>
lea    0xf1f(%rip),%rdi
call   1040 <foo@plt>
mov    $0x1,%edi
mov    $0x2a,%esi
call   1030 <bar@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
push   %r15
push   %r14
push   %rbx
lea    0xed4(%rip),%rbx
mov    %rbx,%rdi
call   1040 <foo@plt>
mov    %rbx,%rdi
call   1040 <foo@plt>
lea    0xf7b(%rip),%r14
mov    %r14,%rdi
call   1040 <foo@plt>
lea    0xf75(%rip),%r15
mov    %r15,%rdi
call   1040 <foo@plt>
lea    0xf72(%rip),%rdi
call   1040 <foo@plt>
mov    $0x1,%edi
mov    $0x19,%esi
call   1030 <bar@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1040 <foo@plt>
mov    %r14,%rdi
call   1040 <foo@plt>
mov    %r15,%rdi
call   1040 <foo@plt>
mov    $0x1,%edi
mov    $0x1f,%esi
call   1030 <bar@plt>
lea    0xf3d(%rip),%rbx
mov    %rbx,%rdi
call   1040 <foo@plt>
mov    %rbx,%rdi
call   1040 <foo@plt>
mov    %rbx,%rdi
call   1040 <foo@plt>
mov    $0x1,%edi
mov    $0x2a,%esi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <bar@plt>

LLVM IR (-O0):
@.str = [190 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/0x7F800000/gcc/refs/heads/arm-hot-cold/ARMToolChain/source/gcc-5.2.0/gcc/testsuite/gcc.dg/pr61861.c\00"
@.str.1 = [9 x i8] c"03:45:32\00"
@.str.2 = [12 x i8] c"Mar 18 2022\00"
@.str.3 = [25 x i8] c"Sat Jan 22 17:39:12 2022\00"
@.str.4 = [4 x i8] c"foo\00"
define void @f() {
%1 = call i32 @foo(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @foo(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @foo(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @foo(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @foo(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @bar(i32 1, i32 25)
%7 = call i32 @bar(i32 0, i32 1)
%8 = call i32 @foo(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @foo(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 @foo(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @bar(i32 1, i32 31)
%12 = call i32 @foo(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 @foo(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 @foo(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 @bar(i32 1, i32 42)
ret void
}

LLVM IR (-O2):
@.str = [190 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/0x7F800000/gcc/refs/heads/arm-hot-cold/ARMToolChain/source/gcc-5.2.0/gcc/testsuite/gcc.dg/pr61861.c\00"
@.str.1 = [9 x i8] c"03:45:32\00"
@.str.2 = [12 x i8] c"Mar 18 2022\00"
@.str.3 = [25 x i8] c"Sat Jan 22 17:39:12 2022\00"
@.str.4 = [4 x i8] c"foo\00"
define void @f() {
%1 = tail call i32 @foo(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @foo(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @foo(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @foo(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @foo(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @bar(i32 1, i32 25)
%7 = tail call i32 @bar(i32 0, i32 1)
%8 = tail call i32 @foo(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 @foo(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%10 = tail call i32 @foo(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%11 = tail call i32 @bar(i32 1, i32 31)
%12 = tail call i32 @foo(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%13 = tail call i32 @foo(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%14 = tail call i32 @foo(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%15 = tail call i32 @bar(i32 1, i32 42)
ret void
}