#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*/ putchar(char);
int main() {
  int a = 43;
  int b = a++;
  int c = ++a;
  int d = b--;
  int e = --a;
  putchar(a);
  putchar(b);
  putchar(c);
  putchar(d);
  putchar(e);
  while (a--) {
    putchar('X');
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2b,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0xc(%rbp)
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0xc(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0x10(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0x14(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0x18(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x8(%rbp)
cmp    $0x0,%eax
je     11b4 <main+0xa4>
mov    $0x58,%edi
call   1030 <putchar@plt>
jmp    1191 <main+0x81>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2b,%edi
call   1030 <putchar@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
mov    $0x58,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
store i32 43, i32* %2
%7 = load i32, i32* %2
%8 = add nsw i32 %7, 1
store i32 %8, i32* %2
store i32 %7, i32* %3
%9 = load i32, i32* %2
%10 = add nsw i32 %9, 1
store i32 %10, i32* %2
store i32 %10, i32* %4
%11 = load i32, i32* %3
%12 = add nsw i32 %11, -1
store i32 %12, i32* %3
store i32 %11, i32* %5
%13 = load i32, i32* %2
%14 = add nsw i32 %13, -1
store i32 %14, i32* %2
store i32 %14, i32* %6
%15 = load i32, i32* %2
%16 = trunc i32 %15 to i8
%17 = call i32 @putchar(i8 signext %16)
%18 = load i32, i32* %3
%19 = trunc i32 %18 to i8
%20 = call i32 @putchar(i8 signext %19)
%21 = load i32, i32* %4
%22 = trunc i32 %21 to i8
%23 = call i32 @putchar(i8 signext %22)
%24 = load i32, i32* %5
%25 = trunc i32 %24 to i8
%26 = call i32 @putchar(i8 signext %25)
%27 = load i32, i32* %6
%28 = trunc i32 %27 to i8
%29 = call i32 @putchar(i8 signext %28)
br label %30
30: ; preds = %34, %0
%31 = load i32, i32* %2
%32 = add nsw i32 %31, -1
store i32 %32, i32* %2
%33 = icmp ne i32 %31, 0
br i1 %33, label %34, label %36
34: ; preds = %30
%35 = call i32 @putchar(i8 signext 88)
br label %30
36: ; preds = %30
%37 = load i32, i32* %1
ret i32 %37
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @putchar(i8 signext 44)
%2 = tail call i32 @putchar(i8 signext 42)
%3 = tail call i32 @putchar(i8 signext 45)
%4 = tail call i32 @putchar(i8 signext 43)
%5 = tail call i32 @putchar(i8 signext 44)
%6 = tail call i32 @putchar(i8 signext 88)
%7 = tail call i32 @putchar(i8 signext 88)
%8 = tail call i32 @putchar(i8 signext 88)
%9 = tail call i32 @putchar(i8 signext 88)
%10 = tail call i32 @putchar(i8 signext 88)
%11 = tail call i32 @putchar(i8 signext 88)
%12 = tail call i32 @putchar(i8 signext 88)
%13 = tail call i32 @putchar(i8 signext 88)
%14 = tail call i32 @putchar(i8 signext 88)
%15 = tail call i32 @putchar(i8 signext 88)
%16 = tail call i32 @putchar(i8 signext 88)
%17 = tail call i32 @putchar(i8 signext 88)
%18 = tail call i32 @putchar(i8 signext 88)
%19 = tail call i32 @putchar(i8 signext 88)
%20 = tail call i32 @putchar(i8 signext 88)
%21 = tail call i32 @putchar(i8 signext 88)
%22 = tail call i32 @putchar(i8 signext 88)
%23 = tail call i32 @putchar(i8 signext 88)
%24 = tail call i32 @putchar(i8 signext 88)
%25 = tail call i32 @putchar(i8 signext 88)
%26 = tail call i32 @putchar(i8 signext 88)
%27 = tail call i32 @putchar(i8 signext 88)
%28 = tail call i32 @putchar(i8 signext 88)
%29 = tail call i32 @putchar(i8 signext 88)
%30 = tail call i32 @putchar(i8 signext 88)
%31 = tail call i32 @putchar(i8 signext 88)
%32 = tail call i32 @putchar(i8 signext 88)
%33 = tail call i32 @putchar(i8 signext 88)
%34 = tail call i32 @putchar(i8 signext 88)
%35 = tail call i32 @putchar(i8 signext 88)
%36 = tail call i32 @putchar(i8 signext 88)
%37 = tail call i32 @putchar(i8 signext 88)
%38 = tail call i32 @putchar(i8 signext 88)
%39 = tail call i32 @putchar(i8 signext 88)
%40 = tail call i32 @putchar(i8 signext 88)
%41 = tail call i32 @putchar(i8 signext 88)
%42 = tail call i32 @putchar(i8 signext 88)
%43 = tail call i32 @putchar(i8 signext 88)
%44 = tail call i32 @putchar(i8 signext 88)
%45 = tail call i32 @putchar(i8 signext 88)
%46 = tail call i32 @putchar(i8 signext 88)
%47 = tail call i32 @putchar(i8 signext 88)
%48 = tail call i32 @putchar(i8 signext 88)
%49 = tail call i32 @putchar(i8 signext 88)
ret i32 0
}