#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*/ assert_expands_(char *, int, char *, char *, char *);
int main() {
  assert_expands_(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/dleonard0/state/refs/heads/master/expand-t.c",
      292, "", "", "");
  assert_expands_(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/dleonard0/state/refs/heads/master/expand-t.c",
      293, "abc", "abc", "");
  assert_expands_(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/dleonard0/state/refs/heads/master/expand-t.c",
      294, "abc", "ab$(X)c", "");
  assert_expands_(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/dleonard0/state/refs/heads/master/expand-t.c",
      295, "abc", "ab$()c", "");
  assert_expands_(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/dleonard0/state/refs/heads/master/expand-t.c",
      296, "abc", "ab$( )c", "");
  assert_expands_(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/dleonard0/state/refs/heads/master/expand-t.c",
      297, "abc", "a$(X)c",
      ""
      "X = b");
  assert_expands_(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/dleonard0/state/refs/heads/master/expand-t.c",
      298, "abc", "a$(X)c",
      ""
      "X = $(Y)\nY = b");
  assert_expands_(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/dleonard0/state/refs/heads/master/expand-t.c",
      299, "abc", "a$($(X))c",
      ""
      "X = Y\nY = b");
  assert_expands_(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/dleonard0/state/refs/heads/master/expand-t.c",
      302, "afofofoMc", "a$(subst fofobar,M,$(X))c",
      ""
      "X = fofofofofobar");
  assert_expands_(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/dleonard0/state/refs/heads/master/expand-t.c",
      304, "axbc", "a$(subst ,b,x)c", "");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x124,%esi
lea    0xf7c(%rip),%r8
mov    %r8,%rdx
mov    %r8,%rcx
call   1030 <assert_expands_@plt>
lea    0xebc(%rip),%rdi
mov    $0x125,%esi
lea    0xf37(%rip),%rcx
lea    0xf57(%rip),%r8
mov    %rcx,%rdx
call   1030 <assert_expands_@plt>
lea    0xe9a(%rip),%rdi
mov    $0x126,%esi
lea    0xf15(%rip),%rdx
lea    0xf12(%rip),%rcx
lea    0xf2e(%rip),%r8
call   1030 <assert_expands_@plt>
lea    0xe74(%rip),%rdi
mov    $0x127,%esi
lea    0xeef(%rip),%rdx
lea    0xef4(%rip),%rcx
lea    0xf08(%rip),%r8
call   1030 <assert_expands_@plt>
lea    0xe4e(%rip),%rdi
mov    $0x128,%esi
lea    0xec9(%rip),%rdx
lea    0xed5(%rip),%rcx
lea    0xee2(%rip),%r8
call   1030 <assert_expands_@plt>
lea    0xe28(%rip),%rdi
mov    $0x129,%esi
lea    0xea3(%rip),%rdx
lea    0xeb7(%rip),%rcx
lea    0xeb7(%rip),%r8
call   1030 <assert_expands_@plt>
lea    0xe02(%rip),%rdi
mov    $0x12a,%esi
lea    0xe7d(%rip),%rdx
lea    0xe91(%rip),%rcx
lea    0xe97(%rip),%r8
call   1030 <assert_expands_@plt>
lea    0xddc(%rip),%rdi
mov    $0x12b,%esi
lea    0xe57(%rip),%rdx
lea    0xe87(%rip),%rcx
lea    0xe8a(%rip),%r8
call   1030 <assert_expands_@plt>
lea    0xdb6(%rip),%rdi
mov    $0x12e,%esi
lea    0xe7e(%rip),%rdx
lea    0xe81(%rip),%rcx
lea    0xe94(%rip),%r8
call   1030 <assert_expands_@plt>
lea    0xd90(%rip),%rdi
mov    $0x130,%esi
lea    0xe8e(%rip),%rdx
lea    0xe8c(%rip),%rcx
lea    0xe24(%rip),%r8
call   1030 <assert_expands_@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xee1(%rip),%r15
lea    0xf88(%rip),%r14
mov    %r15,%rdi
mov    $0x124,%esi
mov    %r14,%rdx
mov    %r14,%rcx
mov    %r14,%r8
call   1030 <assert_expands_@plt>
lea    0xf44(%rip),%rbx
mov    %r15,%rdi
mov    $0x125,%esi
mov    %rbx,%rdx
mov    %rbx,%rcx
mov    %r14,%r8
call   1030 <assert_expands_@plt>
lea    0xf2b(%rip),%rcx
mov    %r15,%rdi
mov    $0x126,%esi
mov    %rbx,%rdx
mov    %r14,%r8
call   1030 <assert_expands_@plt>
lea    0xf19(%rip),%rcx
mov    %r15,%rdi
mov    $0x127,%esi
mov    %rbx,%rdx
mov    %r14,%r8
call   1030 <assert_expands_@plt>
lea    0xf06(%rip),%rcx
mov    %r15,%rdi
mov    $0x128,%esi
mov    %rbx,%rdx
mov    %r14,%r8
call   1030 <assert_expands_@plt>
lea    0xef4(%rip),%r12
lea    0xef4(%rip),%r8
mov    %r15,%rdi
mov    $0x129,%esi
mov    %rbx,%rdx
mov    %r12,%rcx
call   1030 <assert_expands_@plt>
lea    0xee0(%rip),%r8
mov    %r15,%rdi
mov    $0x12a,%esi
mov    %rbx,%rdx
mov    %r12,%rcx
call   1030 <assert_expands_@plt>
lea    0xed5(%rip),%rcx
lea    0xed8(%rip),%r8
mov    %r15,%rdi
mov    $0x12b,%esi
mov    %rbx,%rdx
call   1030 <assert_expands_@plt>
lea    0xecd(%rip),%rdx
lea    0xed0(%rip),%rcx
lea    0xee3(%rip),%r8
mov    %r15,%rdi
mov    $0x12e,%esi
call   1030 <assert_expands_@plt>
lea    0xee1(%rip),%rdx
lea    0xedf(%rip),%rcx
mov    %r15,%rdi
mov    $0x130,%esi
mov    %r14,%r8
call   1030 <assert_expands_@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [135 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/dleonard0/state/refs/heads/master/expand-t.c\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [4 x i8] c"abc\00"
@.str.3 = [8 x i8] c"ab$(X)c\00"
@.str.4 = [7 x i8] c"ab$()c\00"
@.str.5 = [8 x i8] c"ab$( )c\00"
@.str.6 = [7 x i8] c"a$(X)c\00"
@.str.7 = [6 x i8] c"X = b\00"
@.str.8 = [15 x i8] c"X = $(Y)\0AY = b\00"
@.str.9 = [10 x i8] c"a$($(X))c\00"
@.str.10 = [12 x i8] c"X = Y\0AY = b\00"
@.str.11 = [10 x i8] c"afofofoMc\00"
@.str.12 = [26 x i8] c"a$(subst fofobar,M,$(X))c\00"
@.str.13 = [18 x i8] c"X = fofofofofobar\00"
@.str.14 = [5 x i8] c"axbc\00"
@.str.15 = [16 x i8] c"a$(subst ,b,x)c\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 292, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 293, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 294, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 295, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 296, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 297, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 298, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%9 = call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 299, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
%10 = call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 302, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0))
%11 = call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 304, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [135 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/dleonard0/state/refs/heads/master/expand-t.c\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [4 x i8] c"abc\00"
@.str.3 = [8 x i8] c"ab$(X)c\00"
@.str.4 = [7 x i8] c"ab$()c\00"
@.str.5 = [8 x i8] c"ab$( )c\00"
@.str.6 = [7 x i8] c"a$(X)c\00"
@.str.7 = [6 x i8] c"X = b\00"
@.str.8 = [15 x i8] c"X = $(Y)\0AY = b\00"
@.str.9 = [10 x i8] c"a$($(X))c\00"
@.str.10 = [12 x i8] c"X = Y\0AY = b\00"
@.str.11 = [10 x i8] c"afofofoMc\00"
@.str.12 = [26 x i8] c"a$(subst fofobar,M,$(X))c\00"
@.str.13 = [18 x i8] c"X = fofofofofobar\00"
@.str.14 = [5 x i8] c"axbc\00"
@.str.15 = [16 x i8] c"a$(subst ,b,x)c\00"
define i32 @main() {
%1 = tail call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 292, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 293, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 294, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 295, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 296, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 297, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%7 = tail call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 298, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%8 = tail call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 299, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
%9 = tail call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 302, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0))
%10 = tail call i32 @assert_expands_(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 304, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}