#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 *, float);
int main(int argc, char *argv[]) {
  int a;
  float b;
  double c;
  char d;
  int x = 5;
  int y, z;
  signed int e;
  unsigned int f;
  long int g;
  short int h;
  x = 5;
  y = 6;
  b = 7.3f;
  c = 7.3;
  z = x + y;
  z = x * y;
  z = x - y;
  z = x / y;
  b = (float)x / y;
  x += 5;
  x++;
  ++x;
  c = 5.0 / 6.0;
  c = 0.78;
  c = 0.78e7;
  printf("x: %i\n", x);
  printf("b: %f\n", b);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x5,-0x28(%rbp)
movl   $0x5,-0x28(%rbp)
movl   $0x6,-0x2c(%rbp)
movss  0xedd(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movsd  0xec8(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x28(%rbp),%eax
add    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x28(%rbp),%eax
imul   -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x28(%rbp),%eax
sub    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x28(%rbp),%eax
cltd
idivl  -0x2c(%rbp)
mov    %eax,-0x30(%rbp)
cvtsi2ssl -0x28(%rbp),%xmm0
cvtsi2ssl -0x2c(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0x28(%rbp),%eax
add    $0x5,%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
movsd  0xe5f(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe4a(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe35(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
cvtsi2ssl -0x28(%rbp),%xmm0
lea    0xe48(%rip),%rdi
call   1030 <printf@plt>
movss  -0x18(%rbp),%xmm0
lea    0xe3e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef0(%rip),%rdi
movss  0xee0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xee3(%rip),%rdi
movss  0xed0(%rip),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"x: %i\0A\00"
@.str.1 = [7 x i8] c"b: %f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca float
%8 = alloca double
%9 = alloca i8
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i64
%16 = alloca i16
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 5, i32* %10
store i32 5, i32* %10
store i32 6, i32* %11
store float 0x401D333340000000, float* %7
store double 7.300000e+00, double* %8
%17 = load i32, i32* %10
%18 = load i32, i32* %11
%19 = add nsw i32 %17, %18
store i32 %19, i32* %12
%20 = load i32, i32* %10
%21 = load i32, i32* %11
%22 = mul nsw i32 %20, %21
store i32 %22, i32* %12
%23 = load i32, i32* %10
%24 = load i32, i32* %11
%25 = sub nsw i32 %23, %24
store i32 %25, i32* %12
%26 = load i32, i32* %10
%27 = load i32, i32* %11
%28 = sdiv i32 %26, %27
store i32 %28, i32* %12
%29 = load i32, i32* %10
%30 = sitofp i32 %29 to float
%31 = load i32, i32* %11
%32 = sitofp i32 %31 to float
%33 = fdiv float %30, %32
store float %33, float* %7
%34 = load i32, i32* %10
%35 = add nsw i32 %34, 5
store i32 %35, i32* %10
%36 = load i32, i32* %10
%37 = add nsw i32 %36, 1
store i32 %37, i32* %10
%38 = load i32, i32* %10
%39 = add nsw i32 %38, 1
store i32 %39, i32* %10
store double 0x3FEAAAAAAAAAAAAB, double* %8
store double 7.800000e-01, double* %8
store double 7.800000e+06, double* %8
%40 = load i32, i32* %10
%41 = sitofp i32 %40 to float
%42 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), float %41)
%43 = load float, float* %7
%44 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), float %43)
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"x: %i\0A\00"
@.str.1 = [7 x i8] c"b: %f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), float 1.200000e+01)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), float 0x3FEAAAAAA0000000)
ret i32 0
}