#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*/ printf(char *, int, int, int, int, int, float, float);
main() {
  int a = 10, b = 3, c, d, e;
  float x, y;
  x = a / b;
  c = a < b && 25;
  d = a + b++;
  e = ++a - b;
  y = (float)a / b;
  printf("a=%d b=%d c=%d d=%d e=%d \nx=%f y=%f \n", a, b, c, d, e, x, y);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
movl   $0x3,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x8(%rbp),%ecx
xor    %eax,%eax
cmp    -0xc(%rbp),%ecx
mov    %al,-0x21(%rbp)
jge    1158 <main+0x48>
mov    $0x1,%al
mov    %al,-0x21(%rbp)
jmp    1158 <main+0x48>
mov    -0x21(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
add    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
sub    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
cvtsi2ssl -0x8(%rbp),%xmm0
cvtsi2ssl -0xc(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    -0x18(%rbp),%r9d
movss  -0x1c(%rbp),%xmm0
movss  -0x20(%rbp),%xmm1
lea    0xe46(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef0(%rip),%rdi
movss  0xee0(%rip),%xmm0
movss  0xedc(%rip),%xmm1
mov    $0xb,%esi
mov    $0x4,%edx
xor    %ecx,%ecx
mov    $0xd,%r8d
mov    $0x7,%r9d
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [38 x i8] c"a=%d b=%d c=%d d=%d e=%d \0Ax=%f y=%f \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca float
%8 = alloca float
store i32 0, i32* %1
store i32 10, i32* %2
store i32 3, i32* %3
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = sdiv i32 %9, %10
%12 = sitofp i32 %11 to float
store float %12, float* %7
%13 = load i32, i32* %2
%14 = load i32, i32* %3
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %17
16: ; preds = %0
br label %17
17: ; preds = %16, %0
%18 = phi i1 [ false, %0 ], [ true, %16 ]
%19 = zext i1 %18 to i32
store i32 %19, i32* %4
%20 = load i32, i32* %2
%21 = load i32, i32* %3
%22 = add nsw i32 %21, 1
store i32 %22, i32* %3
%23 = add nsw i32 %20, %21
store i32 %23, i32* %5
%24 = load i32, i32* %2
%25 = add nsw i32 %24, 1
store i32 %25, i32* %2
%26 = load i32, i32* %3
%27 = sub nsw i32 %25, %26
store i32 %27, i32* %6
%28 = load i32, i32* %2
%29 = sitofp i32 %28 to float
%30 = load i32, i32* %3
%31 = sitofp i32 %30 to float
%32 = fdiv float %29, %31
store float %32, float* %8
%33 = load i32, i32* %2
%34 = load i32, i32* %3
%35 = load i32, i32* %4
%36 = load i32, i32* %5
%37 = load i32, i32* %6
%38 = load float, float* %7
%39 = load float, float* %8
%40 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %33, i32 %34, i32 %35, i32 %36, i32 %37, float %38, float %39)
%41 = load i32, i32* %1
ret i32 %41
}

LLVM IR (-O2):
@.str = [38 x i8] c"a=%d b=%d c=%d d=%d e=%d \0Ax=%f y=%f \0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 11, i32 4, i32 0, i32 13, i32 7, float 3.000000e+00, float 2.750000e+00)
ret i32 0
}