#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(char *);
int /*<<< orphan*/ printid(int);
void main() {
  int a = 2, b = 3, c;
  int d[2] = {4, 2};
  float m[2] = {1.5, 2.5};
  float k;
  c = a * ++b;
  print("c  8");
  printid(c);
  c = a * b++;
  print("c  8");
  printid(c);
  print("b  5");
  printid(b);
  c = d[0]++;
  print("c  4");
  printid(c);
  c = d[0];
  print("c  5");
  printid(c);
  k = m[0]--;
  print("k  1.500000");
  printid(k);
  k = m[0];
  print("k  0.500000");
  printid(k);
  k = ++m[1];
  print("k  3.500000");
  printid(k);
  c = --d[1];
  print("c  1");
  printid(c);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x2,-0x4(%rbp)
movl   $0x3,-0x8(%rbp)
mov    0xecb(%rip),%rax
mov    %rax,-0x14(%rbp)
mov    0xec8(%rip),%rax
mov    %rax,-0x1c(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
imul   %ecx,%eax
mov    %eax,-0xc(%rbp)
lea    0xeb3(%rip),%rdi
call   1030 <print@plt>
mov    -0xc(%rbp),%edi
call   1040 <printid@plt>
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x8(%rbp)
imul   %ecx,%eax
mov    %eax,-0xc(%rbp)
lea    0xe8b(%rip),%rdi
call   1030 <print@plt>
mov    -0xc(%rbp),%edi
call   1040 <printid@plt>
lea    0xe7c(%rip),%rdi
call   1030 <print@plt>
mov    -0x8(%rbp),%edi
call   1040 <printid@plt>
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x14(%rbp)
mov    %eax,-0xc(%rbp)
lea    0xe5f(%rip),%rdi
call   1030 <print@plt>
mov    -0xc(%rbp),%edi
call   1040 <printid@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
lea    0xe4a(%rip),%rdi
call   1030 <print@plt>
mov    -0xc(%rbp),%edi
call   1040 <printid@plt>
movss  -0x1c(%rbp),%xmm0
movss  0xe0d(%rip),%xmm2
movaps %xmm0,%xmm1
addss  %xmm2,%xmm1
movss  %xmm1,-0x1c(%rbp)
movss  %xmm0,-0x20(%rbp)
lea    0xe1d(%rip),%rdi
call   1030 <print@plt>
cvttss2si -0x20(%rbp),%edi
call   1040 <printid@plt>
movss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
lea    0xe09(%rip),%rdi
call   1030 <print@plt>
cvttss2si -0x20(%rbp),%edi
call   1040 <printid@plt>
movss  0xdba(%rip),%xmm0
addss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  %xmm0,-0x20(%rbp)
lea    0xde8(%rip),%rdi
call   1030 <print@plt>
cvttss2si -0x20(%rbp),%edi
call   1040 <printid@plt>
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
mov    %eax,-0xc(%rbp)
lea    0xdd2(%rip),%rdi
call   1030 <print@plt>
mov    -0xc(%rbp),%edi
call   1040 <printid@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xed8(%rip),%rbx
mov    %rbx,%rdi
call   1030 <print@plt>
mov    $0x8,%edi
call   1040 <printid@plt>
mov    %rbx,%rdi
call   1030 <print@plt>
mov    $0x8,%edi
call   1040 <printid@plt>
lea    0xeb2(%rip),%rdi
call   1030 <print@plt>
mov    $0x5,%edi
call   1040 <printid@plt>
lea    0xea1(%rip),%rdi
call   1030 <print@plt>
mov    $0x4,%edi
call   1040 <printid@plt>
lea    0xe90(%rip),%rdi
call   1030 <print@plt>
mov    $0x5,%edi
call   1040 <printid@plt>
lea    0xe7f(%rip),%rdi
call   1030 <print@plt>
mov    $0x1,%edi
call   1040 <printid@plt>
lea    0xe75(%rip),%rdi
call   1030 <print@plt>
xor    %edi,%edi
call   1040 <printid@plt>
lea    0xe6e(%rip),%rdi
call   1030 <print@plt>
mov    $0x3,%edi
call   1040 <printid@plt>
lea    0xe64(%rip),%rdi
call   1030 <print@plt>
mov    $0x1,%edi
pop    %rbx
jmp    1040 <printid@plt>

LLVM IR (-O0):
@__const.main.d = [2 x i32] [i32 4, i32 2]
@__const.main.m = [2 x float] [float 1.500000e+00, float 2.500000e+00]
@.str = [5 x i8] c"c 8\00"
@.str.1 = [5 x i8] c"b 5\00"
@.str.2 = [5 x i8] c"c 4\00"
@.str.3 = [5 x i8] c"c 5\00"
@.str.4 = [12 x i8] c"k 1.500000\00"
@.str.5 = [12 x i8] c"k 0.500000\00"
@.str.6 = [12 x i8] c"k 3.500000\00"
@.str.7 = [5 x i8] c"c 1\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [2 x i32]
%5 = alloca [2 x float]
%6 = alloca float
store i32 2, i32* %1
store i32 3, i32* %2
%7 = bitcast [2 x i32]* %4 to i8*
%8 = bitcast [2 x float]* %5 to i8*
%9 = load i32, i32* %1
%10 = load i32, i32* %2
%11 = add nsw i32 %10, 1
store i32 %11, i32* %2
%12 = mul nsw i32 %9, %11
store i32 %12, i32* %3
%13 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%14 = load i32, i32* %3
%15 = call i32 @printid(i32 %14)
%16 = load i32, i32* %1
%17 = load i32, i32* %2
%18 = add nsw i32 %17, 1
store i32 %18, i32* %2
%19 = mul nsw i32 %16, %17
store i32 %19, i32* %3
%20 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%21 = load i32, i32* %3
%22 = call i32 @printid(i32 %21)
%23 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%24 = load i32, i32* %2
%25 = call i32 @printid(i32 %24)
%26 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 0
%27 = load i32, i32* %26
%28 = add nsw i32 %27, 1
store i32 %28, i32* %26
store i32 %27, i32* %3
%29 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%30 = load i32, i32* %3
%31 = call i32 @printid(i32 %30)
%32 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 0
%33 = load i32, i32* %32
store i32 %33, i32* %3
%34 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%35 = load i32, i32* %3
%36 = call i32 @printid(i32 %35)
%37 = getelementptr inbounds [2 x float], [2 x float]* %5, i64 0, i64 0
%38 = load float, float* %37
%39 = fadd float %38, -1.000000e+00
store float %39, float* %37
store float %38, float* %6
%40 = call i32 @print(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%41 = load float, float* %6
%42 = fptosi float %41 to i32
%43 = call i32 @printid(i32 %42)
%44 = getelementptr inbounds [2 x float], [2 x float]* %5, i64 0, i64 0
%45 = load float, float* %44
store float %45, float* %6
%46 = call i32 @print(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%47 = load float, float* %6
%48 = fptosi float %47 to i32
%49 = call i32 @printid(i32 %48)
%50 = getelementptr inbounds [2 x float], [2 x float]* %5, i64 0, i64 1
%51 = load float, float* %50
%52 = fadd float %51, 1.000000e+00
store float %52, float* %50
store float %52, float* %6
%53 = call i32 @print(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%54 = load float, float* %6
%55 = fptosi float %54 to i32
%56 = call i32 @printid(i32 %55)
%57 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
%58 = load i32, i32* %57
%59 = add nsw i32 %58, -1
store i32 %59, i32* %57
store i32 %59, i32* %3
%60 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%61 = load i32, i32* %3
%62 = call i32 @printid(i32 %61)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"c 8\00"
@.str.1 = [5 x i8] c"b 5\00"
@.str.2 = [5 x i8] c"c 4\00"
@.str.3 = [5 x i8] c"c 5\00"
@.str.4 = [12 x i8] c"k 1.500000\00"
@.str.5 = [12 x i8] c"k 0.500000\00"
@.str.6 = [12 x i8] c"k 3.500000\00"
@.str.7 = [5 x i8] c"c 1\00"
define void @main() {
%1 = tail call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printid(i32 8)
%3 = tail call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @printid(i32 8)
%5 = tail call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @printid(i32 5)
%7 = tail call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i32 @printid(i32 4)
%9 = tail call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%10 = tail call i32 @printid(i32 5)
%11 = tail call i32 @print(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%12 = tail call i32 @printid(i32 1)
%13 = tail call i32 @print(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%14 = tail call i32 @printid(i32 0)
%15 = tail call i32 @print(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%16 = tail call i32 @printid(i32 3)
%17 = tail call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%18 = tail call i32 @printid(i32 1)
ret void
}