#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 main(int argc, char **argv) {
  float fahr, celsius;
  int lower, upper, step;
  lower = 0;
  upper = 300;
  step = 20;
  fahr = lower;
  printf("Таблица перевода из fahr в cels\n");
  while (fahr <= upper) {
    celsius = (5.0 / 9.0) * (fahr - 32);
    printf("fahr: %7.3f\tcels: %7.3f\n", fahr, celsius);
    fahr += step;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x12c,-0x20(%rbp)
movl   $0x14,-0x24(%rbp)
cvtsi2ssl -0x1c(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
lea    0xec0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm1
cvtsi2ssl -0x20(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jb     11c4 <main+0xb4>
movss  -0x14(%rbp),%xmm0
movss  0xe95(%rip),%xmm1
subss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe7d(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x18(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xe96(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
cvtsi2ssl -0x24(%rbp),%xmm0
addss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
jmp    1153 <main+0x43>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
lea    0xeff(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffec,%ebp
lea    0xed5(%rip),%rbx
nopl   0x0(%rax,%rax,1)
add    $0x14,%ebp
xorps  %xmm1,%xmm1
cvtsi2ss %ebp,%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
addss  0xea7(%rip),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  0xea3(%rip),%xmm1
cvtsd2ss %xmm1,%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
cmp    $0x119,%ebp
jb     1140 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [51 x i8] c"\D0\A2\D0\B0\D0\B1\D0\BB\D0\B8\D1\86\D0\B0 \D0\BF\D0\B5\D1\80\D0\B5\D0\B2\D0\BE\D0\B4\D0\B0 \D0\B8\D0\B7 fahr \D0\B2 cels\0A\00"
@.str.1 = [25 x i8] c"fahr: %7.3f\09cels: %7.3f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
%7 = alloca float
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %8
store i32 300, i32* %9
store i32 20, i32* %10
%11 = load i32, i32* %8
%12 = sitofp i32 %11 to float
store float %12, float* %6
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0))
br label %14
14: ; preds = %19, %2
%15 = load float, float* %6
%16 = load i32, i32* %9
%17 = sitofp i32 %16 to float
%18 = fcmp ole float %15, %17
br i1 %18, label %19, label %34
19: ; preds = %14
%20 = load float, float* %6
%21 = fsub float %20, 3.200000e+01
%22 = fpext float %21 to double
%23 = fmul double 0x3FE1C71C71C71C72, %22
%24 = fptrunc double %23 to float
store float %24, float* %7
%25 = load float, float* %6
%26 = fpext float %25 to double
%27 = load float, float* %7
%28 = fpext float %27 to double
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), double %26, double %28)
%30 = load i32, i32* %10
%31 = sitofp i32 %30 to float
%32 = load float, float* %6
%33 = fadd float %32, %31
store float %33, float* %6
br label %14
34: ; preds = %14
%35 = load i32, i32* %3
ret i32 %35
}

LLVM IR (-O2):
@.str.1 = [25 x i8] c"fahr: %7.3f\09cels: %7.3f\0A\00"
@str = [50 x i8] c"\D0\A2\D0\B0\D0\B1\D0\BB\D0\B8\D1\86\D0\B0 \D0\BF\D0\B5\D1\80\D0\B5\D0\B2\D0\BE\D0\B4\D0\B0 \D0\B8\D0\B7 fahr \D0\B2 cels\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str, i64 0, i64 0))
br label %4
4: ; preds = %2, %4
%5 = phi i32 [ 0, %2 ], [ %14, %4 ]
%6 = sitofp i32 %5 to float
%7 = fadd float %6, -3.200000e+01
%8 = fpext float %7 to double
%9 = fmul double %8, 0x3FE1C71C71C71C72
%10 = fptrunc double %9 to float
%11 = fpext float %6 to double
%12 = fpext float %10 to double
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), double %11, double %12)
%14 = add nuw nsw i32 %5, 20
%15 = icmp ugt i32 %5, 280
br i1 %15, label %16, label %4
16: ; preds = %4
ret i32 0
}