#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, int);
void test_inc_dec() {
  int a = 15;
  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",
          52, 15, 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",
          53, 16, 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",
          54, 16, 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",
          55, 15, 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",
          56, 14, --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",
          57, 14, 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",
          58, 15, ++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",
          59, 15, a);
  ;
}


x86 assembly (clang, -O0):
<test_inc_dec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0xf,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
mov    %ecx,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
lea    0xecf(%rip),%rdi
mov    $0x34,%esi
mov    $0xf,%edx
call   1030 <fexpect@plt>
mov    -0x4(%rbp),%ecx
lea    0xeb6(%rip),%rdi
mov    $0x35,%esi
mov    $0x10,%edx
call   1030 <fexpect@plt>
mov    -0x4(%rbp),%ecx
mov    %ecx,%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
lea    0xe95(%rip),%rdi
mov    $0x36,%esi
mov    $0x10,%edx
call   1030 <fexpect@plt>
mov    -0x4(%rbp),%ecx
lea    0xe7c(%rip),%rdi
mov    $0x37,%esi
mov    $0xf,%edx
call   1030 <fexpect@plt>
mov    -0x4(%rbp),%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x4(%rbp)
lea    0xe5d(%rip),%rdi
mov    $0x38,%esi
mov    $0xe,%edx
call   1030 <fexpect@plt>
mov    -0x4(%rbp),%ecx
lea    0xe44(%rip),%rdi
mov    $0x39,%esi
mov    $0xe,%edx
call   1030 <fexpect@plt>
mov    -0x4(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x4(%rbp)
lea    0xe25(%rip),%rdi
mov    $0x3a,%esi
mov    $0xf,%edx
call   1030 <fexpect@plt>
mov    -0x4(%rbp),%ecx
lea    0xe0c(%rip),%rdi
mov    $0x3b,%esi
mov    $0xf,%edx
call   1030 <fexpect@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_inc_dec>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x34,%esi
mov    $0xf,%edx
mov    $0xf,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x35,%esi
mov    $0x10,%edx
mov    $0x10,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x36,%esi
mov    $0x10,%edx
mov    $0x10,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x37,%esi
mov    $0xf,%edx
mov    $0xf,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x38,%esi
mov    $0xe,%edx
mov    $0xe,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x39,%esi
mov    $0xe,%edx
mov    $0xe,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x3a,%esi
mov    $0xf,%edx
mov    $0xf,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x3b,%esi
mov    $0xf,%edx
mov    $0xf,%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_inc_dec() {
%1 = alloca i32
store i32 15, i32* %1
%2 = load i32, i32* %1
%3 = add nsw i32 %2, 1
store i32 %3, i32* %1
%4 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 52, i32 15, i32 %2)
%5 = load i32, i32* %1
%6 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 53, i32 16, i32 %5)
%7 = load i32, i32* %1
%8 = add nsw i32 %7, -1
store i32 %8, i32* %1
%9 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 54, i32 16, i32 %7)
%10 = load i32, i32* %1
%11 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 55, i32 15, i32 %10)
%12 = load i32, i32* %1
%13 = add nsw i32 %12, -1
store i32 %13, i32* %1
%14 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 56, i32 14, 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 57, i32 14, i32 %15)
%17 = load i32, i32* %1
%18 = add nsw i32 %17, 1
store i32 %18, i32* %1
%19 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 58, i32 15, i32 %18)
%20 = load i32, i32* %1
%21 = call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 59, i32 15, i32 %20)
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_inc_dec() {
%1 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 52, i32 15, i32 15)
%2 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 53, i32 16, i32 16)
%3 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 54, i32 16, i32 16)
%4 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 55, i32 15, i32 15)
%5 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 56, i32 14, i32 14)
%6 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 57, i32 14, i32 14)
%7 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 58, i32 15, i32 15)
%8 = tail call i32 @fexpect(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0), i32 59, i32 15, i32 15)
ret void
}