#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*/ print(float);
int /*<<< orphan*/ printid(int);
void main() {
  int a = 9, *b, e = 1;
  float c = 3.14, *d;
  b = &a;
  print(*b);
  (*b)++;
  print(*b);
  ++*b;
  print(*b);
  d = &c;
  print(*d);
  (*d)++;
  print(*d);
  ++*d;
  print(*d);
  a = ++e + ++e;
  printid(a);
  printid(e);
  a = e++ + ++e;
  printid(a);
  printid(e);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x9,-0x4(%rbp)
movl   $0x1,-0x14(%rbp)
movss  0xec6(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
lea    -0x4(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cvtsi2ssl (%rax),%xmm0
call   1030 <print@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
cvtsi2ssl (%rax),%xmm0
call   1030 <print@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
cvtsi2ssl (%rax),%xmm0
call   1030 <print@plt>
lea    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm0
call   1030 <print@plt>
mov    -0x20(%rbp),%rax
movss  0xe57(%rip),%xmm0
addss  (%rax),%xmm0
movss  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm0
call   1030 <print@plt>
mov    -0x20(%rbp),%rax
movss  0xe36(%rip),%xmm0
addss  (%rax),%xmm0
movss  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm0
call   1030 <print@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x14(%rbp)
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <printid@plt>
mov    -0x14(%rbp),%edi
call   1040 <printid@plt>
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x14(%rbp)
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x14(%rbp)
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <printid@plt>
mov    -0x14(%rbp),%edi
call   1040 <printid@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movss  0xed7(%rip),%xmm0
call   1030 <print@plt>
movss  0xece(%rip),%xmm0
call   1030 <print@plt>
movss  0xec5(%rip),%xmm0
call   1030 <print@plt>
movss  0xebc(%rip),%xmm0
call   1030 <print@plt>
movss  0xeb3(%rip),%xmm0
call   1030 <print@plt>
movss  0xeaa(%rip),%xmm0
call   1030 <print@plt>
mov    $0x5,%edi
call   1040 <printid@plt>
mov    $0x3,%edi
call   1040 <printid@plt>
mov    $0x8,%edi
call   1040 <printid@plt>
mov    $0x5,%edi
pop    %rax
jmp    1040 <printid@plt>

LLVM IR (-O0):
define void @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32
%4 = alloca float
%5 = alloca float*
store i32 9, i32* %1
store i32 1, i32* %3
store float 0x40091EB860000000, float* %4
store i32* %1, i32** %2
%6 = load i32*, i32** %2
%7 = load i32, i32* %6
%8 = sitofp i32 %7 to float
%9 = call i32 @print(float %8)
%10 = load i32*, i32** %2
%11 = load i32, i32* %10
%12 = add nsw i32 %11, 1
store i32 %12, i32* %10
%13 = load i32*, i32** %2
%14 = load i32, i32* %13
%15 = sitofp i32 %14 to float
%16 = call i32 @print(float %15)
%17 = load i32*, i32** %2
%18 = load i32, i32* %17
%19 = add nsw i32 %18, 1
store i32 %19, i32* %17
%20 = load i32*, i32** %2
%21 = load i32, i32* %20
%22 = sitofp i32 %21 to float
%23 = call i32 @print(float %22)
store float* %4, float** %5
%24 = load float*, float** %5
%25 = load float, float* %24
%26 = call i32 @print(float %25)
%27 = load float*, float** %5
%28 = load float, float* %27
%29 = fadd float %28, 1.000000e+00
store float %29, float* %27
%30 = load float*, float** %5
%31 = load float, float* %30
%32 = call i32 @print(float %31)
%33 = load float*, float** %5
%34 = load float, float* %33
%35 = fadd float %34, 1.000000e+00
store float %35, float* %33
%36 = load float*, float** %5
%37 = load float, float* %36
%38 = call i32 @print(float %37)
%39 = load i32, i32* %3
%40 = add nsw i32 %39, 1
store i32 %40, i32* %3
%41 = load i32, i32* %3
%42 = add nsw i32 %41, 1
store i32 %42, i32* %3
%43 = add nsw i32 %40, %42
store i32 %43, i32* %1
%44 = load i32, i32* %1
%45 = call i32 @printid(i32 %44)
%46 = load i32, i32* %3
%47 = call i32 @printid(i32 %46)
%48 = load i32, i32* %3
%49 = add nsw i32 %48, 1
store i32 %49, i32* %3
%50 = load i32, i32* %3
%51 = add nsw i32 %50, 1
store i32 %51, i32* %3
%52 = add nsw i32 %48, %51
store i32 %52, i32* %1
%53 = load i32, i32* %1
%54 = call i32 @printid(i32 %53)
%55 = load i32, i32* %3
%56 = call i32 @printid(i32 %55)
ret void
}

LLVM IR (-O2):
define void @main() {
%1 = tail call i32 @print(float 9.000000e+00)
%2 = tail call i32 @print(float 1.000000e+01)
%3 = tail call i32 @print(float 1.100000e+01)
%4 = tail call i32 @print(float 0x40091EB860000000)
%5 = tail call i32 @print(float 0x40108F5C40000000)
%6 = tail call i32 @print(float 0x40148F5C40000000)
%7 = tail call i32 @printid(i32 5)
%8 = tail call i32 @printid(i32 3)
%9 = tail call i32 @printid(i32 8)
%10 = tail call i32 @printid(i32 5)
ret void
}