#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 *, char, ...);
int main(int argc, char const *argv[]) {
  char ch;
  int i;
  float fl;
  fl = i = ch = 'C';
  printf("ch = %c,i = %d, fl = %2.2f \n", ch, i, fl);
  ch = ch + 1;
  i = fl + 2 * ch;
  fl = 2.0 * ch + i;
  printf("ch = %c,i = %d, fl = %2.2f \n", ch, i, fl);
  ch = 5212205.17;
  printf("Now ch = %c \n", ch);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movb   $0x43,-0x11(%rbp)
movl   $0x43,-0x18(%rbp)
movss  0xec7(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x11(%rbp),%al
mov    -0x18(%rbp),%edx
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xeb0(%rip),%rdi
movsbl %al,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movsbl -0x11(%rbp),%eax
add    $0x1,%eax
mov    %al,-0x11(%rbp)
movss  -0x1c(%rbp),%xmm0
movsbl -0x11(%rbp),%eax
shl    $0x1,%eax
cvtsi2ss %eax,%xmm1
addss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
mov    %eax,-0x18(%rbp)
movsbl -0x11(%rbp),%eax
cvtsi2sd %eax,%xmm0
cvtsi2sdl -0x18(%rbp),%xmm1
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x11(%rbp),%al
mov    -0x18(%rbp),%edx
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe4d(%rip),%rdi
movsbl %al,%esi
mov    $0x1,%al
call   1030 <printf@plt>
mov    %al,-0x11(%rbp)
lea    0xe56(%rip),%rdi
movsbl -0x11(%rbp),%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xef8(%rip),%rbx
movsd  0xee0(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x43,%esi
mov    $0x43,%edx
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xecc(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x44,%esi
mov    $0xcb,%edx
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xed6(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [29 x i8] c"ch = %c,i = %d, fl = %2.2f \0A\00"
@.str.1 = [14 x i8] c"Now ch = %c \0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8
%7 = alloca i32
%8 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8 67, i8* %6
store i32 67, i32* %7
store float 6.700000e+01, float* %8
%9 = load i8, i8* %6
%10 = load i32, i32* %7
%11 = load float, float* %8
%12 = fpext float %11 to double
%13 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8 signext %9, i32 %10, double %12)
%14 = load i8, i8* %6
%15 = sext i8 %14 to i32
%16 = add nsw i32 %15, 1
%17 = trunc i32 %16 to i8
store i8 %17, i8* %6
%18 = load float, float* %8
%19 = load i8, i8* %6
%20 = sext i8 %19 to i32
%21 = mul nsw i32 2, %20
%22 = sitofp i32 %21 to float
%23 = fadd float %18, %22
%24 = fptosi float %23 to i32
store i32 %24, i32* %7
%25 = load i8, i8* %6
%26 = sext i8 %25 to i32
%27 = sitofp i32 %26 to double
%28 = load i32, i32* %7
%29 = sitofp i32 %28 to double
%30 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %27, double %29)
%31 = fptrunc double %30 to float
store float %31, float* %8
%32 = load i8, i8* %6
%33 = load i32, i32* %7
%34 = load float, float* %8
%35 = fpext float %34 to double
%36 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8 signext %32, i32 %33, double %35)
store i8 poison, i8* %6
%37 = load i8, i8* %6
%38 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8 signext %37)
ret i32 0
}

LLVM IR (-O2):
@.str = [29 x i8] c"ch = %c,i = %d, fl = %2.2f \0A\00"
@.str.1 = [14 x i8] c"Now ch = %c \0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8 signext 67, i32 67, double 6.700000e+01)
%4 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8 signext 68, i32 203, double 3.390000e+02)
%5 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8 signext poison)
ret i32 0
}