#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 M, N, L, p, r, q, a;
  {
    printf("Программа вычисляет значение выражений M, N, L\n");
    printf("M=(0.8/p)+(1/r)+0.5/q)\n");
    printf("N=10^2*((p*q/r)-(q/p*r)+a)\n");
    printf("L=(p*r+r*q+q*p)\n");
    printf("Значения p r q являются целыми числами\n");
    printf("Значение a является действительным числом\n");
  }
a:
  printf("a=");
  scanf("%f", &a);
  {
    if (a == 0)
      printf(
          "При a=0 выражение имеет смысл, 0 является действительным числом\n");
  }
p:
  printf("p=");
  scanf("%f", &p);
  {
    if (p == 0)
      printf("При p=0 выражения M N не имеют смысла\n");
    if (p == 0)
      goto p;
  }
r:
  printf("r=");
  scanf("%f", &r);
  {
    if (r == 0)
      printf("При r=0 выражения M N не имеют смысла\n");
    if (r == 0)
      goto r;
  }
q:
  printf("q=");
  scanf("%f", &q);
  {
    if (q == 0)
      printf("При q=0 выражение M не имеет смысла\n");
    if (q == 0)
      goto q;
  }
  M = (0.8 / p) + (1 / r) + (0.5 / q);
  N = 100.0 * ((p * q / r) - (q / p * r) + a);
  L = ((p * r) + (r * q) + (q * p));
  printf("M=%f\n", M);
  printf("N=%f\n", N);
  printf("L=%f\n", L);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xee6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf7d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfbe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb3(%rip),%rdi
lea    -0x20(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11c6 <main+0xa6>
jp     11c6 <main+0xa6>
lea    0xf8f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11cb <main+0xab>
lea    0xfef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6b(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    120e <main+0xee>
jp     120e <main+0xee>
lea    0xfbd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x14(%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    0xfce(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf07(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1272 <main+0x152>
jp     1272 <main+0x152>
lea    0xf9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x18(%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    0xfad(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea3(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x1c(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    12d6 <main+0x1b6>
jp     12d6 <main+0x1b6>
lea    0xf7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x1c(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    12f2 <main+0x1d2>
jp     12f2 <main+0x1d2>
jmp    1293 <main+0x173>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xd0d(%rip),%xmm0
divsd  %xmm1,%xmm0
movss  0xd09(%rip),%xmm1
divss  -0x18(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
addsd  %xmm1,%xmm0
movss  -0x1c(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xcdb(%rip),%xmm1
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x14(%rbp),%xmm1
mulss  -0x1c(%rbp),%xmm1
divss  -0x18(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm0
divss  -0x14(%rbp),%xmm0
movss  -0x18(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
addss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xc7e(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x14(%rbp),%xmm1
movss  -0x18(%rbp),%xmm2
movss  -0x18(%rbp),%xmm0
mulss  -0x1c(%rbp),%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x1c(%rbp),%xmm0
movss  -0x14(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xeb6(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xea5(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe94(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x38,%rsp
lea    0xeff(%rip),%rdi
call   1030 <puts@plt>
lea    0xf45(%rip),%rdi
call   1030 <puts@plt>
lea    0xf50(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf63(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9b(%rip),%rdi
call   1030 <puts@plt>
lea    0xe96(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe8b(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1050 <scanf@plt>
movss  0x8(%rsp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11be <main+0x8e>
jp     11be <main+0x8e>
lea    0x1069(%rip),%rdi
call   1030 <puts@plt>
lea    0xe61(%rip),%r14
lea    0xe57(%rip),%r15
lea    0x4(%rsp),%rbx
lea    0x100b(%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  0x4(%rsp),%xmm0
ucomiss %xmm1,%xmm0
jne    11e0 <main+0xb0>
jp     11e0 <main+0xb0>
mov    %r12,%rdi
call   1030 <puts@plt>
xorps  %xmm1,%xmm1
movss  0x4(%rsp),%xmm0
jmp    11e0 <main+0xb0>
lea    0xe03(%rip),%r14
lea    0xdf6(%rip),%r15
mov    %rsp,%rbx
lea    0xf6d(%rip),%r12
jmp    1247 <main+0x117>
nopl   0x0(%rax)
ucomiss %xmm1,%xmm0
jne    127d <main+0x14d>
jp     127d <main+0x14d>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
xorps  %xmm1,%xmm1
movss  (%rsp),%xmm0
ucomiss %xmm1,%xmm0
jne    1240 <main+0x110>
jp     1240 <main+0x110>
mov    %r12,%rdi
call   1030 <puts@plt>
xorps  %xmm1,%xmm1
movss  (%rsp),%xmm0
jmp    1240 <main+0x110>
lea    0xda8(%rip),%r14
lea    0xd98(%rip),%r15
lea    0xc(%rsp),%rbx
lea    0xed0(%rip),%r12
jmp    12a7 <main+0x177>
nopl   0x0(%rax)
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  0xc(%rsp),%xmm0
ucomiss %xmm1,%xmm0
jne    12a0 <main+0x170>
jp     12a0 <main+0x170>
mov    %r12,%rdi
call   1030 <puts@plt>
xorps  %xmm1,%xmm1
movss  0xc(%rsp),%xmm0
jmp    12a0 <main+0x170>
movss  0x4(%rsp),%xmm5
movss  (%rsp),%xmm1
movss  0xd0e(%rip),%xmm2
divss  %xmm1,%xmm2
movaps %xmm0,%xmm3
unpcklps %xmm5,%xmm3
cvtps2pd %xmm3,%xmm3
cvtss2sd %xmm2,%xmm2
movapd 0xd05(%rip),%xmm4
divpd  %xmm3,%xmm4
movapd %xmm4,%xmm3
unpckhpd %xmm4,%xmm3
addsd  %xmm2,%xmm3
addsd  %xmm4,%xmm3
xorps  %xmm2,%xmm2
cvtsd2ss %xmm3,%xmm2
movaps %xmm0,%xmm3
mulss  %xmm5,%xmm3
movaps %xmm3,%xmm6
divss  %xmm1,%xmm6
movaps %xmm0,%xmm4
divss  %xmm5,%xmm4
mulss  %xmm1,%xmm4
subss  %xmm4,%xmm6
addss  0x8(%rsp),%xmm6
mulss  %xmm1,%xmm0
mulss  %xmm1,%xmm5
addss  %xmm0,%xmm5
addss  %xmm3,%xmm5
movaps %xmm5,0x20(%rsp)
mulss  0xc9e(%rip),%xmm6
movaps %xmm6,0x10(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
lea    0xcb6(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movaps 0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xca5(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movaps 0x20(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc94(%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 = [83 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 M, N, L\0A\00"
@.str.1 = [24 x i8] c"M=(0.8/p)+(1/r)+0.5/q)\0A\00"
@.str.2 = [28 x i8] c"N=10^2*((p*q/r)-(q/p*r)+a)\0A\00"
@.str.3 = [17 x i8] c"L=(p*r+r*q+q*p)\0A\00"
@.str.4 = [69 x i8] c"\D0\97\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D1\8F p r q \D1\8F\D0\B2\D0\BB\D1\8F\D1\8E\D1\82\D1\81\D1\8F \D1\86\D0\B5\D0\BB\D1\8B\D0\BC\D0\B8 \D1\87\D0\B8\D1\81\D0\BB\D0\B0\D0\BC\D0\B8\0A\00"
@.str.5 = [79 x i8] c"\D0\97\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5 a \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\0A\00"
@.str.6 = [3 x i8] c"a=\00"
@.str.7 = [3 x i8] c"%f\00"
@.str.8 = [115 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\0A\00"
@.str.9 = [3 x i8] c"p=\00"
@.str.10 = [64 x i8] c"\D0\9F\D1\80\D0\B8 p=0 \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D1\8F M N \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\0A\00"
@.str.11 = [3 x i8] c"r=\00"
@.str.12 = [64 x i8] c"\D0\9F\D1\80\D0\B8 r=0 \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D1\8F M N \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\0A\00"
@.str.13 = [3 x i8] c"q=\00"
@.str.14 = [62 x i8] c"\D0\9F\D1\80\D0\B8 q=0 \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D0\B5 M \D0\BD\D0\B5 \D0\B8\D0\BC\D0\B5\D0\B5\D1\82 \D1\81\D0\BC\D1\8B\D1\81\D0\BB\D0\B0\0A\00"
@.str.15 = [6 x i8] c"M=%f\0A\00"
@.str.16 = [6 x i8] c"N=%f\0A\00"
@.str.17 = [6 x i8] c"L=%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
store i32 0, i32* %1
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.5, i64 0, i64 0))
br label %15
15: ; preds = %0
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %8)
%18 = load float, float* %8
%19 = fcmp oeq float %18, 0.000000e+00
br i1 %19, label %20, label %22
20: ; preds = %15
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([115 x i8], [115 x i8]* @.str.8, i64 0, i64 0))
br label %22
22: ; preds = %20, %15
br label %23
23: ; preds = %33, %22
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%25 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %5)
%26 = load float, float* %5
%27 = fcmp oeq float %26, 0.000000e+00
br i1 %27, label %28, label %30
28: ; preds = %23
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.10, i64 0, i64 0))
br label %30
30: ; preds = %28, %23
%31 = load float, float* %5
%32 = fcmp oeq float %31, 0.000000e+00
br i1 %32, label %33, label %34
33: ; preds = %30
br label %23
34: ; preds = %30
br label %35
35: ; preds = %45, %34
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 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* %6)
%38 = load float, float* %6
%39 = fcmp oeq float %38, 0.000000e+00
br i1 %39, label %40, label %42
40: ; preds = %35
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.12, i64 0, i64 0))
br label %42
42: ; preds = %40, %35
%43 = load float, float* %6
%44 = fcmp oeq float %43, 0.000000e+00
br i1 %44, label %45, label %46
45: ; preds = %42
br label %35
46: ; preds = %42
br label %47
47: ; preds = %57, %46
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%49 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %7)
%50 = load float, float* %7
%51 = fcmp oeq float %50, 0.000000e+00
br i1 %51, label %52, label %54
52: ; preds = %47
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.14, i64 0, i64 0))
br label %54
54: ; preds = %52, %47
%55 = load float, float* %7
%56 = fcmp oeq float %55, 0.000000e+00
br i1 %56, label %57, label %58
57: ; preds = %54
br label %47
58: ; preds = %54
%59 = load float, float* %5
%60 = fpext float %59 to double
%61 = fdiv double 8.000000e-01, %60
%62 = load float, float* %6
%63 = fdiv float 1.000000e+00, %62
%64 = fpext float %63 to double
%65 = fadd double %61, %64
%66 = load float, float* %7
%67 = fpext float %66 to double
%68 = fdiv double 5.000000e-01, %67
%69 = fadd double %65, %68
%70 = fptrunc double %69 to float
store float %70, float* %2
%71 = load float, float* %5
%72 = load float, float* %7
%73 = fmul float %71, %72
%74 = load float, float* %6
%75 = fdiv float %73, %74
%76 = load float, float* %7
%77 = load float, float* %5
%78 = fdiv float %76, %77
%79 = load float, float* %6
%80 = fneg float %78
%81 = call float @llvm.fmuladd.f32(float %80, float %79, float %75)
%82 = load float, float* %8
%83 = fadd float %81, %82
%84 = fpext float %83 to double
%85 = fmul double 1.000000e+02, %84
%86 = fptrunc double %85 to float
store float %86, float* %3
%87 = load float, float* %5
%88 = load float, float* %6
%89 = load float, float* %6
%90 = load float, float* %7
%91 = fmul float %89, %90
%92 = call float @llvm.fmuladd.f32(float %87, float %88, float %91)
%93 = load float, float* %7
%94 = load float, float* %5
%95 = call float @llvm.fmuladd.f32(float %93, float %94, float %92)
store float %95, float* %4
%96 = load float, float* %2
%97 = fpext float %96 to double
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), double %97)
%99 = load float, float* %3
%100 = fpext float %99 to double
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), double %100)
%102 = load float, float* %4
%103 = fpext float %102 to double
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0), double %103)
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"p=\00"
@.str.11 = [3 x i8] c"r=\00"
@.str.13 = [3 x i8] c"q=\00"
@.str.15 = [6 x i8] c"M=%f\0A\00"
@.str.16 = [6 x i8] c"N=%f\0A\00"
@.str.17 = [6 x i8] c"L=%f\0A\00"
@str = [82 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 M, N, L\00"
@str.18 = [23 x i8] c"M=(0.8/p)+(1/r)+0.5/q)\00"
@str.19 = [27 x i8] c"N=10^2*((p*q/r)-(q/p*r)+a)\00"
@str.20 = [16 x i8] c"L=(p*r+r*q+q*p)\00"
@str.21 = [68 x i8] c"\D0\97\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D1\8F p r q \D1\8F\D0\B2\D0\BB\D1\8F\D1\8E\D1\82\D1\81\D1\8F \D1\86\D0\B5\D0\BB\D1\8B\D0\BC\D0\B8 \D1\87\D0\B8\D1\81\D0\BB\D0\B0\D0\BC\D0\B8\00"
@str.22 = [78 x i8] c"\D0\97\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5 a \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"
@str.23 = [61 x i8] c"\D0\9F\D1\80\D0\B8 q=0 \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D0\B5 M \D0\BD\D0\B5 \D0\B8\D0\BC\D0\B5\D0\B5\D1\82 \D1\81\D0\BC\D1\8B\D1\81\D0\BB\D0\B0\00"
@str.24 = [63 x i8] c"\D0\9F\D1\80\D0\B8 r=0 \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D1\8F M N \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\00"
@str.25 = [63 x i8] c"\D0\9F\D1\80\D0\B8 p=0 \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D1\8F M N \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\00"
@str.26 = [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 = bitcast float* %1 to i8*
%6 = bitcast float* %2 to i8*
%7 = bitcast float* %3 to i8*
%8 = bitcast float* %4 to i8*
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.18, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.19, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.20, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.21, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.22, i64 0, i64 0))
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %4)
%17 = load float, float* %4
%18 = fcmp oeq float %17, 0.000000e+00
br i1 %18, label %19, label %21
19: ; preds = %0
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([114 x i8], [114 x i8]* @str.26, i64 0, i64 0))
br label %21
21: ; preds = %19, %0
br label %22
22: ; preds = %21, %30
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %1)
%25 = load float, float* %1
%26 = fcmp oeq float %25, 0.000000e+00
br i1 %26, label %27, label %30
27: ; preds = %22
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.25, i64 0, i64 0))
%29 = load float, float* %1
br label %30
30: ; preds = %27, %22
%31 = phi float [ %29, %27 ], [ %25, %22 ]
%32 = fcmp oeq float %31, 0.000000e+00
br i1 %32, label %22, label %33
33: ; preds = %30, %41
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%35 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %2)
%36 = load float, float* %2
%37 = fcmp oeq float %36, 0.000000e+00
br i1 %37, label %38, label %41
38: ; preds = %33
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.24, i64 0, i64 0))
%40 = load float, float* %2
br label %41
41: ; preds = %38, %33
%42 = phi float [ %40, %38 ], [ %36, %33 ]
%43 = fcmp oeq float %42, 0.000000e+00
br i1 %43, label %33, label %44
44: ; preds = %41, %52
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%46 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %3)
%47 = load float, float* %3
%48 = fcmp oeq float %47, 0.000000e+00
br i1 %48, label %49, label %52
49: ; preds = %44
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.23, i64 0, i64 0))
%51 = load float, float* %3
br label %52
52: ; preds = %49, %44
%53 = phi float [ %51, %49 ], [ %47, %44 ]
%54 = fcmp oeq float %53, 0.000000e+00
br i1 %54, label %44, label %55
55: ; preds = %52
%56 = load float, float* %1
%57 = load float, float* %2
%58 = fdiv float 1.000000e+00, %57
%59 = fpext float %58 to double
%60 = insertelement <2 x float> poison, float %53, i64 0
%61 = insertelement <2 x float> %60, float %56, i64 1
%62 = fpext <2 x float> %61 to <2 x double>
%63 = fdiv <2 x double> <double 5.000000e-01, double 8.000000e-01>, %62
%64 = extractelement <2 x double> %63, i64 1
%65 = fadd double %64, %59
%66 = extractelement <2 x double> %63, i64 0
%67 = fadd double %66, %65
%68 = fptrunc double %67 to float
%69 = fmul float %53, %56
%70 = fdiv float %69, %57
%71 = fneg float %53
%72 = fdiv float %71, %56
%73 = call float @llvm.fmuladd.f32(float %72, float %57, float %70)
%74 = load float, float* %4
%75 = fadd float %74, %73
%76 = fmul float %75, 1.000000e+02
%77 = fmul float %53, %57
%78 = call float @llvm.fmuladd.f32(float %56, float %57, float %77)
%79 = call float @llvm.fmuladd.f32(float %53, float %56, float %78)
%80 = fpext float %68 to double
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), double %80)
%82 = fpext float %76 to double
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), double %82)
%84 = fpext float %79 to double
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0), double %84)
ret i32 0
}