#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*/ fexpect(char *, int, int, unsigned int);
void test_basic() {
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/arith.c",
          6, 0, 0);
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/arith.c",
          7, 3, 1 + 2);
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/arith.c",
          8, 3, 1 + 2);
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/arith.c",
          9, 10, 1 + 2 + 3 + 4);
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/arith.c",
          10, 11, 1 + 2 * 3 + 4);
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/arith.c",
          11, 14, 1 * 2 + 3 * 4);
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/arith.c",
          12, 4, 4 / 2 + 6 / 3);
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/arith.c",
          13, 4, 24 / 2 / 3);
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/arith.c",
          14, 3, 24 % 7);
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/arith.c",
          15, 0, 24 % 3);
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/arith.c",
          16, 98, 'a' + 1);
  ;
  int a = 0 - 1;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/arith.c",
          18, 0 - 1, a);
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/arith.c",
          19, -1, a);
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/arith.c",
          20, 0, a + 1);
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/arith.c",
          21, 1, +1);
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/arith.c",
          22, 1, (unsigned)4000000001 % 2);
  ;
}


x86 assembly (clang, -O0):
<test_basic>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
mov    $0x6,%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xecc(%rip),%rdi
mov    $0x7,%esi
mov    $0x3,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xeb4(%rip),%rdi
mov    $0x8,%esi
mov    $0x3,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xe9c(%rip),%rdi
mov    $0x9,%esi
mov    $0xa,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xe84(%rip),%rdi
mov    $0xa,%esi
mov    $0xb,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xe6c(%rip),%rdi
mov    $0xb,%esi
mov    $0xe,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xe54(%rip),%rdi
mov    $0xc,%esi
mov    $0x4,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xe3c(%rip),%rdi
mov    $0xd,%esi
mov    $0x4,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xe24(%rip),%rdi
mov    $0xe,%esi
mov    $0x3,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xe0c(%rip),%rdi
mov    $0xf,%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xdf7(%rip),%rdi
mov    $0x10,%esi
mov    $0x62,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
lea    0xdd5(%rip),%rdi
mov    $0x12,%esi
mov    $0xffffffff,%edx
call   1030 <fexpect@plt>
mov    -0x4(%rbp),%ecx
lea    0xdbc(%rip),%rdi
mov    $0x13,%esi
mov    $0xffffffff,%edx
call   1030 <fexpect@plt>
mov    -0x4(%rbp),%ecx
add    $0x1,%ecx
lea    0xda0(%rip),%rdi
mov    $0x14,%esi
xor    %edx,%edx
call   1030 <fexpect@plt>
lea    0xd8d(%rip),%rdi
mov    $0x15,%esi
mov    $0x1,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
lea    0xd75(%rip),%rdi
mov    $0x16,%esi
mov    $0x1,%ecx
mov    %ecx,%edx
call   1030 <fexpect@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_basic>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x6,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
mov    $0x3,%edx
mov    $0x3,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
mov    $0x3,%edx
mov    $0x3,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0xa,%edx
mov    $0xa,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
mov    $0xb,%edx
mov    $0xb,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0xb,%esi
mov    $0xe,%edx
mov    $0xe,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
mov    $0x4,%edx
mov    $0x4,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0xd,%esi
mov    $0x4,%edx
mov    $0x4,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0xe,%esi
mov    $0x3,%edx
mov    $0x3,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0xf,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
mov    $0x62,%edx
mov    $0x62,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x12,%esi
mov    $0xffffffff,%edx
mov    $0xffffffff,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x13,%esi
mov    $0xffffffff,%edx
mov    $0xffffffff,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x14,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x15,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x16,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
pop    %rbx
jmp    1030 <fexpect@plt>

LLVM IR (-O0):
@.str = [128 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/arith.c\00"
define void @test_basic() {
%1 = alloca i32
%2 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 6, i32 0, i32 0)
%3 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 7, i32 3, i32 3)
%4 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 8, i32 3, i32 3)
%5 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 9, i32 10, i32 10)
%6 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 10, i32 11, i32 11)
%7 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 11, i32 14, i32 14)
%8 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 12, i32 4, i32 4)
%9 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 13, i32 4, i32 4)
%10 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 14, i32 3, i32 3)
%11 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 15, i32 0, i32 0)
%12 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 16, i32 98, i32 98)
store i32 -1, i32* %1
%13 = load i32, i32* %1
%14 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 18, i32 -1, i32 %13)
%15 = load i32, i32* %1
%16 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 19, i32 -1, i32 %15)
%17 = load i32, i32* %1
%18 = add nsw i32 %17, 1
%19 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 20, i32 0, i32 %18)
%20 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 21, i32 1, i32 1)
%21 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 22, i32 1, i32 1)
ret void
}

LLVM IR (-O2):
@.str = [128 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/arith.c\00"
define void @test_basic() {
%1 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 6, i32 0, i32 0)
%2 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 7, i32 3, i32 3)
%3 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 8, i32 3, i32 3)
%4 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 9, i32 10, i32 10)
%5 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 10, i32 11, i32 11)
%6 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 11, i32 14, i32 14)
%7 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 12, i32 4, i32 4)
%8 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 13, i32 4, i32 4)
%9 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 14, i32 3, i32 3)
%10 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 15, i32 0, i32 0)
%11 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 16, i32 98, i32 98)
%12 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 18, i32 -1, i32 -1)
%13 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 19, i32 -1, i32 -1)
%14 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 20, i32 0, i32 0)
%15 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 21, i32 1, i32 1)
%16 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 22, i32 1, i32 1)
ret void
}