#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 *, long);
int /*<<< orphan*/ scanf(char *, float *);
void main() {
  long x;
  float t;
  scanf("%f", &t);
  printf("%d\n", t);
  x = 90;
  printf("%f\n", x);
  {
    x = 1;
    printf("%f\n", x);
    {
      x = 30;
      printf("%f\n", x);
    }
    printf("%f\n", x);
  }
  x == 9;
  printf("%f\n", x);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
cvttss2si -0xc(%rbp),%rsi
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
movq   $0x5a,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
movq   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xe92(%rip),%rdi
call   1030 <printf@plt>
movq   $0x1e,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xe7a(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xe6a(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xe5a(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
cvttss2si 0xc(%rsp),%rsi
lea    0xebf(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb7(%rip),%rbx
mov    $0x5a,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x1,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x1e,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x1e,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x1e,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%f\00"
@.str.1 = [4 x i8] c"%d\0A\00"
@.str.2 = [4 x i8] c"%f\0A\00"
define void @main() {
%1 = alloca i64
%2 = alloca float
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%4 = load float, float* %2
%5 = fptosi float %4 to i64
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i64 %5)
store i64 90, i64* %1
%7 = load i64, i64* %1
%8 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 %7)
store i64 1, i64* %1
%9 = load i64, i64* %1
%10 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 %9)
store i64 30, i64* %1
%11 = load i64, i64* %1
%12 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 %11)
%13 = load i64, i64* %1
%14 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 %13)
%15 = load i64, i64* %1
%16 = icmp eq i64 %15, 9
%17 = zext i1 %16 to i32
%18 = load i64, i64* %1
%19 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 %18)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
@.str.1 = [4 x i8] c"%d\0A\00"
@.str.2 = [4 x i8] c"%f\0A\00"
define void @main() {
%1 = alloca float
%2 = bitcast float* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %1)
%4 = load float, float* %1
%5 = fptosi float %4 to i64
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i64 %5)
%7 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 90)
%8 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 1)
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 30)
%10 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 30)
%11 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 30)
ret void
}