#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(void) {
  char ch;
  int i;
  float fl;
  fl = i = ch = 'A';
  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 = 52212205.17;
  printf("Now ch = %c\n", ch);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x41,-0x5(%rbp)
movl   $0x41,-0xc(%rbp)
movss  0xece(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
mov    -0x5(%rbp),%al
mov    -0xc(%rbp),%edx
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xeb7(%rip),%rdi
movsbl %al,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
add    $0x1,%eax
mov    %al,-0x5(%rbp)
movss  -0x10(%rbp),%xmm0
movsbl -0x5(%rbp),%eax
shl    $0x1,%eax
cvtsi2ss %eax,%xmm1
addss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
mov    %eax,-0xc(%rbp)
movsbl -0x5(%rbp),%eax
cvtsi2sd %eax,%xmm0
cvtsi2sdl -0xc(%rbp),%xmm1
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
mov    -0x5(%rbp),%al
mov    -0xc(%rbp),%edx
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe54(%rip),%rdi
movsbl %al,%esi
mov    $0x1,%al
call   1030 <printf@plt>
mov    %al,-0x5(%rbp)
lea    0xe5d(%rip),%rdi
movsbl -0x5(%rbp),%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xef8(%rip),%rbx
movsd  0xee0(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x41,%esi
mov    $0x41,%edx
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xecc(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x42,%esi
mov    $0xc5,%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 = [13 x i8] c"Now ch = %c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i32
%4 = alloca float
store i32 0, i32* %1
store i8 65, i8* %2
store i32 65, i32* %3
store float 6.500000e+01, float* %4
%5 = load i8, i8* %2
%6 = load i32, i32* %3
%7 = load float, float* %4
%8 = fpext float %7 to double
%9 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8 signext %5, i32 %6, double %8)
%10 = load i8, i8* %2
%11 = sext i8 %10 to i32
%12 = add nsw i32 %11, 1
%13 = trunc i32 %12 to i8
store i8 %13, i8* %2
%14 = load float, float* %4
%15 = load i8, i8* %2
%16 = sext i8 %15 to i32
%17 = mul nsw i32 2, %16
%18 = sitofp i32 %17 to float
%19 = fadd float %14, %18
%20 = fptosi float %19 to i32
store i32 %20, i32* %3
%21 = load i8, i8* %2
%22 = sext i8 %21 to i32
%23 = sitofp i32 %22 to double
%24 = load i32, i32* %3
%25 = sitofp i32 %24 to double
%26 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %23, double %25)
%27 = fptrunc double %26 to float
store float %27, float* %4
%28 = load i8, i8* %2
%29 = load i32, i32* %3
%30 = load float, float* %4
%31 = fpext float %30 to double
%32 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8 signext %28, i32 %29, double %31)
store i8 poison, i8* %2
%33 = load i8, i8* %2
%34 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8 signext %33)
ret i32 0
}

LLVM IR (-O2):
@.str = [29 x i8] c"ch = %c, i = %d, fl = %2.2f\0A\00"
@.str.1 = [13 x i8] c"Now ch = %c\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8 signext 65, i32 65, double 6.500000e+01)
%2 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8 signext 66, i32 197, double 3.290000e+02)
%3 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8 signext poison)
ret i32 0
}