#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 /*<<< orphan*/ scanf(char *, float *);
main() {
  float a, b, i1, i2, i3, A, B, C;
  {
    printf("Программа вычисляет значение выражений таких как 'A' 'B' 'C'\n");
    printf("A=(1/2)*(a/(b+a/b))\n");
    printf("B=(1/i1)+(1/i2)+(1/i3)\n");
    printf("C=(i1/i2*i3)+(i1*i3/i2)\n");
    printf("Значения i1, i2, i3 являются целыми числами, например -1, 0, 1, "
           "2...\n");
    printf("Значения a, b являются действительными числами, например -1, 0, 1, "
           "2, 0.5, 1.2 и т.д.\n");
  }
a:
  printf("a=");
  scanf("%f", &a);
  {
    if (a == 0)
      printf(
          "При a=0 выражение имеет смысл, 0 является действительным числом\n");
  }
b:
  printf("b=");
  scanf("%f", &b);
  {
    if (b == 0)
      printf("При b=0 выражение 'A' не имеет смысла, введи число которое "
             "больше или меньше 0\n");
    if (b == 0)
      goto b;
  }
i1:
  printf("i1=");
  scanf("%f", &i1);
  {
    if (i1 == 0)
      printf("При i1=0 выражения 'A' 'B' 'C' не имеют смысла, введите число "
             "которое больше или меньше 0\n");
    if (i1 == 0)
      goto i1;
  }
i2:
  printf("i2=");
  scanf("%f", &i2);
  {
    if (i2 == 0)
      printf("При i2=0 выражения 'A' 'B' 'C' не имеют смысла, введите число "
             "которое больше или меньше 0\n");
    if (i2 == 0)
      goto i2;
  }
i3:
  printf("i3=");
  scanf("%f", &i3);
  {
    if (i3 == 0)
      printf("При i3=0 выражения 'A' 'B' 'C' не имеют смысла, введите число "
             "которое больше или меньше 0\n");
    if (i3 == 0)
      goto i3;
  }
  A = (1.0 / 2.0) * (a / (b + a / b));
  B = (1.0 / i1) + (1.0 / i2) + (1.0 / i3);
  C = (i1 / i2 * i3) + (i1 * i3 / i2);
  printf("A=%f\n", A);
  printf("B=%f\n", B);
  printf("C=%f\n", C);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf51(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1028(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x101d(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11c6 <main+0xa6>
jp     11c6 <main+0xa6>
lea    0xff9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11cb <main+0xab>
lea    0x1059(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd5(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0xc(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    120e <main+0xee>
jp     120e <main+0xee>
lea    0x1027(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    122a <main+0x10a>
jp     122a <main+0x10a>
jmp    11cb <main+0xab>
jmp    122f <main+0x10f>
lea    0x1081(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf71(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1272 <main+0x152>
jp     1272 <main+0x152>
lea    0x1050(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    128e <main+0x16e>
jp     128e <main+0x16e>
jmp    122f <main+0x10f>
jmp    1293 <main+0x173>
lea    0x10b7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    12d6 <main+0x1b6>
jp     12d6 <main+0x1b6>
lea    0x1086(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    12f2 <main+0x1d2>
jp     12f2 <main+0x1d2>
jmp    1293 <main+0x173>
jmp    12f7 <main+0x1d7>
lea    0x10ed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea9(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    133a <main+0x21a>
jp     133a <main+0x21a>
lea    0x10bc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1356 <main+0x236>
jp     1356 <main+0x236>
jmp    12f7 <main+0x1d7>
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
movss  -0x8(%rbp),%xmm2
divss  -0xc(%rbp),%xmm2
addss  %xmm2,%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xc8a(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xc64(%rip),%xmm0
divsd  %xmm1,%xmm0
movss  -0x14(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xc4f(%rip),%xmm1
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movss  -0x18(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xc36(%rip),%xmm1
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x10(%rbp),%xmm0
divss  -0x14(%rbp),%xmm0
movss  -0x18(%rbp),%xmm2
movss  -0x10(%rbp),%xmm1
mulss  -0x18(%rbp),%xmm1
divss  -0x14(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x106f(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x105e(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x24(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x104d(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x38,%rsp
lea    0xf05(%rip),%rdi
call   1030 <puts@plt>
lea    0xf61(%rip),%rdi
call   1030 <puts@plt>
lea    0xf69(%rip),%rdi
call   1030 <puts@plt>
lea    0xf74(%rip),%rdi
call   1030 <puts@plt>
lea    0xf80(%rip),%rdi
call   1030 <puts@plt>
lea    0xfde(%rip),%rdi
call   1030 <puts@plt>
lea    0xe96(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe8b(%rip),%rdi
lea    0x18(%rsp),%rsi
call   1050 <scanf@plt>
movss  0x18(%rsp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11be <main+0x8e>
jp     11be <main+0x8e>
lea    0x1271(%rip),%rdi
call   1030 <puts@plt>
lea    0xe61(%rip),%r14
lea    0xe57(%rip),%r15
lea    0x10(%rsp),%rbx
lea    0x11ca(%rip),%r12
jmp    11e7 <main+0xb7>
nopw   0x0(%rax,%rax,1)
ucomiss %xmm1,%xmm0
jne    121f <main+0xef>
jp     121f <main+0xef>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
xorps  %xmm1,%xmm1
movss  0x10(%rsp),%xmm0
ucomiss %xmm1,%xmm0
jne    11e0 <main+0xb0>
jp     11e0 <main+0xb0>
mov    %r12,%rdi
call   1030 <puts@plt>
xorps  %xmm1,%xmm1
movss  0x10(%rsp),%xmm0
jmp    11e0 <main+0xb0>
lea    0xe03(%rip),%r14
lea    0xdf6(%rip),%r15
lea    0xc(%rsp),%rbx
lea    0x10d4(%rip),%r12
jmp    1247 <main+0x117>
nopl   0x0(%rax,%rax,1)
ucomiss %xmm1,%xmm0
jne    127f <main+0x14f>
jp     127f <main+0x14f>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
xorps  %xmm1,%xmm1
movss  0xc(%rsp),%xmm0
ucomiss %xmm1,%xmm0
jne    1240 <main+0x110>
jp     1240 <main+0x110>
mov    %r12,%rdi
call   1030 <puts@plt>
xorps  %xmm1,%xmm1
movss  0xc(%rsp),%xmm0
jmp    1240 <main+0x110>
lea    0xda7(%rip),%r14
lea    0xd96(%rip),%r15
lea    0x8(%rsp),%rbx
lea    0xfdf(%rip),%r12
jmp    12a7 <main+0x177>
nopl   0x0(%rax,%rax,1)
ucomiss %xmm1,%xmm0
jne    12df <main+0x1af>
jp     12df <main+0x1af>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
xorps  %xmm1,%xmm1
movss  0x8(%rsp),%xmm0
ucomiss %xmm1,%xmm0
jne    12a0 <main+0x170>
jp     12a0 <main+0x170>
mov    %r12,%rdi
call   1030 <puts@plt>
xorps  %xmm1,%xmm1
movss  0x8(%rsp),%xmm0
jmp    12a0 <main+0x170>
lea    0xd4b(%rip),%r14
lea    0xd36(%rip),%r15
lea    0x14(%rsp),%rbx
lea    0xeea(%rip),%r12
jmp    1307 <main+0x1d7>
nopl   0x0(%rax,%rax,1)
ucomiss %xmm1,%xmm0
jne    133f <main+0x20f>
jp     133f <main+0x20f>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
xorps  %xmm1,%xmm1
movss  0x14(%rsp),%xmm0
ucomiss %xmm1,%xmm0
jne    1300 <main+0x1d0>
jp     1300 <main+0x1d0>
mov    %r12,%rdi
call   1030 <puts@plt>
xorps  %xmm1,%xmm1
movss  0x14(%rsp),%xmm0
jmp    1300 <main+0x1d0>
movss  0x18(%rsp),%xmm1
movss  0x10(%rsp),%xmm2
movaps %xmm1,%xmm3
divss  %xmm2,%xmm3
addss  %xmm2,%xmm3
divss  %xmm3,%xmm1
mulss  0xc9e(%rip),%xmm1
movss  0xc(%rsp),%xmm6
movss  0x8(%rsp),%xmm2
xorps  %xmm3,%xmm3
cvtss2sd %xmm2,%xmm3
movsd  0xc8b(%rip),%xmm4
divsd  %xmm3,%xmm4
movaps %xmm0,%xmm3
unpcklps %xmm6,%xmm3
cvtps2pd %xmm3,%xmm3
movapd 0xc7e(%rip),%xmm5
divpd  %xmm3,%xmm5
movapd %xmm5,%xmm3
unpckhpd %xmm5,%xmm3
addsd  %xmm4,%xmm3
addsd  %xmm5,%xmm3
cvtsd2ss %xmm3,%xmm3
movss  %xmm3,0x1c(%rsp)
movaps %xmm0,%xmm3
mulss  %xmm6,%xmm3
divss  %xmm2,%xmm6
divss  %xmm2,%xmm3
mulss  %xmm0,%xmm6
addss  %xmm3,%xmm6
movaps %xmm6,0x20(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xc5b(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x1c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc49(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movaps 0x20(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc38(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [105 x i8] c"\D0\9F\D1\80\D0\BE\D0\B3\D1\80\D0\B0\D0\BC\D0\BC\D0\B0 \D0\B2\D1\8B\D1\87\D0\B8\D1\81\D0\BB\D1\8F\D0\B5\D1\82 \D0\B7\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5 \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D0\B9 \D1\82\D0\B0\D0\BA\D0\B8\D1\85 \D0\BA\D0\B0\D0\BA 'A' 'B' 'C'\0A\00"
@.str.1 = [21 x i8] c"A=(1/2)*(a/(b+a/b))\0A\00"
@.str.2 = [24 x i8] c"B=(1/i1)+(1/i2)+(1/i3)\0A\00"
@.str.3 = [25 x i8] c"C=(i1/i2*i3)+(i1*i3/i2)\0A\00"
@.str.4 = [107 x i8] c"\D0\97\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D1\8F i1, i2, i3 \D1\8F\D0\B2\D0\BB\D1\8F\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0\BC\D0\B5\D0\BD\D1\8C\D1\88\D0\B5 0\0A\00"
@.str.15 = [4 x i8] c"i3=\00"
@.str.16 = [150 x i8] c"\D0\9F\D1\80\D0\B8 i3=0 \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D1\8F 'A' 'B' 'C' \D0\BD\D0\B5 \D0\B8\D0\BC\D0\B5\D1\8E\D1\82 \D1\81\D0\BC\D1\8B\D1\81\D0\BB\D0\B0, \D0\B2\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\BE \D0\BA\D0\BE\D1\82\D0\BE\D1\80\D0\BE\D0\B5 \D0\B1\D0\BE\D0\BB\D1\8C\D1\88\D0\B5 \D0\B8\D0\BB\D0\B8 \D0\BC\D0\B5\D0\BD\D1\8C\D1\88\D0\B5 0\0A\00"
@.str.17 = [6 x i8] c"A=%f\0A\00"
@.str.18 = [6 x i8] c"B=%f\0A\00"
@.str.19 = [6 x i8] c"C=%f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
store i32 0, i32* %1
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([105 x i8], [105 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.5, i64 0, i64 0))
br label %16
16: ; preds = %0
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %2)
%19 = load float, float* %2
%20 = fcmp oeq float %19, 0.000000e+00
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([115 x i8], [115 x i8]* @.str.8, i64 0, i64 0))
br label %23
23: ; preds = %21, %16
br label %24
24: ; preds = %34, %23
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%26 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %3)
%27 = load float, float* %3
%28 = fcmp oeq float %27, 0.000000e+00
br i1 %28, label %29, label %31
29: ; preds = %24
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.10, i64 0, i64 0))
br label %31
31: ; preds = %29, %24
%32 = load float, float* %3
%33 = fcmp oeq float %32, 0.000000e+00
br i1 %33, label %34, label %35
34: ; preds = %31
br label %24
35: ; preds = %31
br label %36
36: ; preds = %46, %35
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%38 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %4)
%39 = load float, float* %4
%40 = fcmp oeq float %39, 0.000000e+00
br i1 %40, label %41, label %43
41: ; preds = %36
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.12, i64 0, i64 0))
br label %43
43: ; preds = %41, %36
%44 = load float, float* %4
%45 = fcmp oeq float %44, 0.000000e+00
br i1 %45, label %46, label %47
46: ; preds = %43
br label %36
47: ; preds = %43
br label %48
48: ; preds = %58, %47
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%50 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %5)
%51 = load float, float* %5
%52 = fcmp oeq float %51, 0.000000e+00
br i1 %52, label %53, label %55
53: ; preds = %48
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.14, i64 0, i64 0))
br label %55
55: ; preds = %53, %48
%56 = load float, float* %5
%57 = fcmp oeq float %56, 0.000000e+00
br i1 %57, label %58, label %59
58: ; preds = %55
br label %48
59: ; preds = %55
br label %60
60: ; preds = %70, %59
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
%62 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %6)
%63 = load float, float* %6
%64 = fcmp oeq float %63, 0.000000e+00
br i1 %64, label %65, label %67
65: ; preds = %60
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.16, i64 0, i64 0))
br label %67
67: ; preds = %65, %60
%68 = load float, float* %6
%69 = fcmp oeq float %68, 0.000000e+00
br i1 %69, label %70, label %71
70: ; preds = %67
br label %60
71: ; preds = %67
%72 = load float, float* %2
%73 = load float, float* %3
%74 = load float, float* %2
%75 = load float, float* %3
%76 = fdiv float %74, %75
%77 = fadd float %73, %76
%78 = fdiv float %72, %77
%79 = fpext float %78 to double
%80 = fmul double 5.000000e-01, %79
%81 = fptrunc double %80 to float
store float %81, float* %7
%82 = load float, float* %4
%83 = fpext float %82 to double
%84 = fdiv double 1.000000e+00, %83
%85 = load float, float* %5
%86 = fpext float %85 to double
%87 = fdiv double 1.000000e+00, %86
%88 = fadd double %84, %87
%89 = load float, float* %6
%90 = fpext float %89 to double
%91 = fdiv double 1.000000e+00, %90
%92 = fadd double %88, %91
%93 = fptrunc double %92 to float
store float %93, float* %8
%94 = load float, float* %4
%95 = load float, float* %5
%96 = fdiv float %94, %95
%97 = load float, float* %6
%98 = load float, float* %4
%99 = load float, float* %6
%100 = fmul float %98, %99
%101 = load float, float* %5
%102 = fdiv float %100, %101
%103 = call float @llvm.fmuladd.f32(float %96, float %97, float %102)
store float %103, float* %9
%104 = load float, float* %7
%105 = fpext float %104 to double
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0), double %105)
%107 = load float, float* %8
%108 = fpext float %107 to double
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0), double %108)
%110 = load float, float* %9
%111 = fpext float %110 to double
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), double %111)
ret i32 0
}

LLVM IR (-O2):
@.str.6 = [3 x i8] c"a=\00"
@.str.7 = [3 x i8] c"%f\00"
@.str.9 = [3 x i8] c"b=\00"
@.str.11 = [4 x i8] c"i1=\00"
@.str.13 = [4 x i8] c"i2=\00"
@.str.15 = [4 x i8] c"i3=\00"
@.str.17 = [6 x i8] c"A=%f\0A\00"
@.str.18 = [6 x i8] c"B=%f\0A\00"
@.str.19 = [6 x i8] c"C=%f\0A\00"
@str = [104 x i8] c"\D0\9F\D1\80\D0\BE\D0\B3\D1\80\D0\B0\D0\BC\D0\BC\D0\B0 \D0\B2\D1\8B\D1\87\D0\B8\D1\81\D0\BB\D1\8F\D0\B5\D1\82 \D0\B7\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5 \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D0\B9 \D1\82\D0\B0\D0\BA\D0\B8\D1\85 \D0\BA\D0\B0\D0\BA 'A' 'B' 'C'\00"
@str.20 =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B2\D0\B5\D0\B4\D0\B8 \D1\87\D0\B8\D1\81\D0\BB\D0\BE \D0\BA\D0\BE\D1\82\D0\BE\D1\80\D0\BE\D0\B5 \D0\B1\D0\BE\D0\BB\D1\8C\D1\88\D0\B5 \D0\B8\D0\BB\D0\B8 \D0\BC\D0\B5\D0\BD\D1\8C\D1\88\D0\B5 0\00"
@str.29 = [114 x i8] c"\D0\9F\D1\80\D0\B8 a=0 \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D0\B5 \D0\B8\D0\BC\D0\B5\D0\B5\D1\82 \D1\81\D0\BC\D1\8B\D1\81\D0\BB, 0 \D1\8F\D0\B2\D0\BB\D1\8F\D0\B5\D1\82\D1\81\D1\8F \D0\B4\D0\B5\D0\B9\D1\81\D1\82\D0\B2\D0\B8\D1\82\D0\B5\D0\BB\D1\8C\D0\BD\D1\8B\D0\BC \D1\87\D0\B8\D1\81\D0\BB\D0\BE\D0\BC\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = bitcast float* %1 to i8*
%7 = bitcast float* %2 to i8*
%8 = bitcast float* %3 to i8*
%9 = bitcast float* %4 to i8*
%10 = bitcast float* %5 to i8*
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([104 x i8], [104 x i8]* @str, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.20, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.21, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.22, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([106 x i8], [106 x i8]* @str.23, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([135 x i8], [135 x i8]* @str.24, i64 0, i64 0))
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %1)
%19 = load float, float* %1
%20 = fcmp oeq float %19, 0.000000e+00
br i1 %20, label %21, label %23
21: ; preds = %0
%22 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([114 x i8], [114 x i8]* @str.29, i64 0, i64 0))
br label %23
23: ; preds = %21, %0
br label %24
24: ; preds = %23, %32
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%26 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %2)
%27 = load float, float* %2
%28 = fcmp oeq float %27, 0.000000e+00
br i1 %28, label %29, label %32
29: ; preds = %24
%30 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([136 x i8], [136 x i8]* @str.28, i64 0, i64 0))
%31 = load float, float* %2
br label %32
32: ; preds = %29, %24
%33 = phi float [ %31, %29 ], [ %27, %24 ]
%34 = fcmp oeq float %33, 0.000000e+00
br i1 %34, label %24, label %35
35: ; preds = %32, %43
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%37 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %3)
%38 = load float, float* %3
%39 = fcmp oeq float %38, 0.000000e+00
br i1 %39, label %40, label %43
40: ; preds = %35
%41 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([149 x i8], [149 x i8]* @str.27, i64 0, i64 0))
%42 = load float, float* %3
br label %43
43: ; preds = %40, %35
%44 = phi float [ %42, %40 ], [ %38, %35 ]
%45 = fcmp oeq float %44, 0.000000e+00
br i1 %45, label %35, label %46
46: ; preds = %43, %54
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%48 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %4)
%49 = load float, float* %4
%50 = fcmp oeq float %49, 0.000000e+00
br i1 %50, label %51, label %54
51: ; preds = %46
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([149 x i8], [149 x i8]* @str.26, i64 0, i64 0))
%53 = load float, float* %4
br label %54
54: ; preds = %51, %46
%55 = phi float [ %53, %51 ], [ %49, %46 ]
%56 = fcmp oeq float %55, 0.000000e+00
br i1 %56, label %46, label %57
57: ; preds = %54, %65
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
%59 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %5)
%60 = load float, float* %5
%61 = fcmp oeq float %60, 0.000000e+00
br i1 %61, label %62, label %65
62: ; preds = %57
%63 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([149 x i8], [149 x i8]* @str.25, i64 0, i64 0))
%64 = load float, float* %5
br label %65
65: ; preds = %62, %57
%66 = phi float [ %64, %62 ], [ %60, %57 ]
%67 = fcmp oeq float %66, 0.000000e+00
br i1 %67, label %57, label %68
68: ; preds = %65
%69 = load float, float* %1
%70 = load float, float* %2
%71 = fdiv float %69, %70
%72 = fadd float %70, %71
%73 = fdiv float %69, %72
%74 = fmul float %73, 5.000000e-01
%75 = load float, float* %3
%76 = load float, float* %4
%77 = fpext float %76 to double
%78 = fdiv double 1.000000e+00, %77
%79 = insertelement <2 x float> poison, float %66, i64 0
%80 = insertelement <2 x float> %79, float %75, i64 1
%81 = fpext <2 x float> %80 to <2 x double>
%82 = fdiv <2 x double> <double 1.000000e+00, double 1.000000e+00>, %81
%83 = extractelement <2 x double> %82, i64 1
%84 = fadd double %83, %78
%85 = extractelement <2 x double> %82, i64 0
%86 = fadd double %85, %84
%87 = fptrunc double %86 to float
%88 = fdiv float %75, %76
%89 = fmul float %66, %75
%90 = fdiv float %89, %76
%91 = call float @llvm.fmuladd.f32(float %88, float %66, float %90)
%92 = fpext float %74 to double
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0), double %92)
%94 = fpext float %87 to double
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0), double %94)
%96 = fpext float %91 to double
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), double %96)
ret i32 0
}