#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 *, int *, int *, int *, float *, float *);
int main() {
  int i, j, k = 0;
  float m, n, V, W, Z = 0;
  while ((i == 0) || (j == 0) || (k == 0)) {
    printf("введите целые i, j, k, отличные от 0 и действительные m и n не "
           "равное 0\n");
    scanf("%d\n%d\n%d\n%f\n%f\n", &i, &j, &k, &m, &n);
  }
  printf("%d\n%d\n%d\n%d\n%d\n", i, j, k, m, n);
  V = (((10000 + 100000) / i) + (i / (j + k)) + ((j * k) / i));
  W = ((i + m / n) / (j + i / k) + 1 / 5);
  Z = (1 / i + 1 / k + 1 / j + 1 / m + 1 / n);
  printf("V=%f\n W=%\n Z = %\n", V, W, Z);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x10(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x24(%rbp)
mov    $0x1,%al
cmpl   $0x0,-0x8(%rbp)
mov    %al,-0x25(%rbp)
je     1166 <main+0x46>
mov    $0x1,%al
cmpl   $0x0,-0xc(%rbp)
mov    %al,-0x25(%rbp)
je     1166 <main+0x46>
cmpl   $0x0,-0x10(%rbp)
sete   %al
mov    %al,-0x25(%rbp)
mov    -0x25(%rbp),%al
test   $0x1,%al
jne    1176 <main+0x56>
jmp    11a9 <main+0x89>
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
lea    -0x18(%rbp),%r9
call   1040 <scanf@plt>
jmp    113e <main+0x1e>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x18(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xec0(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    $0x1adb0,%eax
cltd
idivl  -0x8(%rbp)
mov    %eax,-0x3c(%rbp)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
add    -0x10(%rbp),%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x3c(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x38(%rbp)
mov    -0xc(%rbp),%eax
imul   -0x10(%rbp),%eax
cltd
idivl  -0x8(%rbp)
mov    %eax,%ecx
mov    -0x38(%rbp),%eax
add    %ecx,%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x1c(%rbp)
cvtsi2ssl -0x8(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
divss  -0x18(%rbp),%xmm1
addss  %xmm1,%xmm0
mov    -0xc(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x8(%rbp),%eax
cltd
idivl  -0x10(%rbp)
mov    %eax,%ecx
mov    -0x34(%rbp),%eax
add    %ecx,%eax
cvtsi2ss %eax,%xmm1
divss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
mov    $0x1,%eax
cltd
idivl  -0x8(%rbp)
mov    %eax,-0x30(%rbp)
mov    $0x1,%eax
cltd
idivl  -0x10(%rbp)
mov    %eax,%ecx
mov    -0x30(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x2c(%rbp)
mov    $0x1,%eax
cltd
idivl  -0xc(%rbp)
mov    %eax,%ecx
mov    -0x2c(%rbp),%eax
add    %ecx,%eax
cvtsi2ss %eax,%xmm0
movss  0xd7b(%rip),%xmm1
divss  -0x14(%rbp),%xmm1
addss  %xmm1,%xmm0
movss  0xd6a(%rip),%xmm1
divss  -0x18(%rbp),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x20(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x24(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xdd5(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
movl   $0x0,0x4(%rsp)
lea    0xec3(%rip),%r15
lea    0x14(%rsp),%r12
lea    0x10(%rsp),%r13
lea    0x4(%rsp),%rbx
lea    0xc(%rsp),%rbp
lea    0x8(%rsp),%r14
cs nopw 0x0(%rax,%rax,1)
lea    0xecb(%rip),%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
mov    %rbx,%rcx
mov    %rbp,%r8
mov    %r14,%r9
call   1050 <scanf@plt>
mov    0x14(%rsp),%esi
test   %esi,%esi
je     1170 <main+0x40>
mov    0x10(%rsp),%edx
test   %edx,%edx
je     1170 <main+0x40>
mov    0x4(%rsp),%ecx
test   %ecx,%ecx
je     1170 <main+0x40>
movss  0xc(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
cvtss2sd %xmm0,%xmm0
cvtss2sd %xmm1,%xmm1
lea    0xe5a(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    0x14(%rsp),%ecx
mov    $0x1adb0,%eax
xor    %edx,%edx
idiv   %ecx
mov    %eax,%esi
mov    0x10(%rsp),%ebp
mov    0x4(%rsp),%ebx
lea    (%rbx,%rbp,1),%edi
mov    %ecx,%eax
cltd
idiv   %edi
mov    %eax,%edi
add    %esi,%edi
mov    %ebx,%eax
imul   %ebp,%eax
cltd
idiv   %ecx
add    %edi,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
cvtsi2ss %ecx,%xmm3
xor    %esi,%esi
movss  0xc(%rsp),%xmm2
movss  0x8(%rsp),%xmm1
movaps %xmm2,%xmm4
divss  %xmm1,%xmm4
addss  %xmm3,%xmm4
mov    %ecx,%eax
cltd
idiv   %ebx
add    %ebp,%eax
xorps  %xmm3,%xmm3
cvtsi2ss %eax,%xmm3
divss  %xmm3,%xmm4
xorps  %xmm3,%xmm3
addss  %xmm4,%xmm3
lea    0x1(%rcx),%eax
cmp    $0x3,%eax
cmovae %esi,%ecx
lea    0x1(%rbx),%eax
cmp    $0x3,%eax
cmovae %esi,%ebx
lea    0x1(%rbp),%eax
cmp    $0x3,%eax
cmovae %esi,%ebp
add    %ecx,%ebp
add    %ebx,%ebp
xorps  %xmm4,%xmm4
cvtsi2ss %ebp,%xmm4
unpcklps %xmm2,%xmm1
movaps 0xd99(%rip),%xmm2
divps  %xmm1,%xmm2
movaps %xmm2,%xmm5
shufps $0x55,%xmm2,%xmm5
addss  %xmm4,%xmm5
addss  %xmm2,%xmm5
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm3,%xmm1
xorps  %xmm2,%xmm2
cvtss2sd %xmm5,%xmm2
lea    0xd9e(%rip),%rdi
mov    $0x3,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [119 x i8] c"\D0\B2\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D1\86\D0\B5\D0\BB\D1\8B\D0\B5 i, j, k, \D0\BE\D1\82\D0\BB\D0\B8\D1\87\D0\BD\D1\8B\D0\B5 \D0\BE\D1\82 0 \D0\B8 \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\B5 m \D0\B8 n \D0\BD\D0\B5 \D1\80\D0\B0\D0\B2\D0\BD\D0\BE\D0\B5 0\0A\00"
@.str.1 = [16 x i8] c"%d\0A%d\0A%d\0A%f\0A%f\0A\00"
@.str.2 = [16 x i8] c"%d\0A%d\0A%d\0A%d\0A%d\0A\00"
@.str.3 = [18 x i8] c"V=%f\0A W=%\0A Z = %\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
store i32 0, i32* %1
store i32 0, i32* %4
store float 0.000000e+00, float* %9
br label %10
10: ; preds = %21, %0
%11 = load i32, i32* %2
%12 = icmp eq i32 %11, 0
br i1 %12, label %19, label %13
13: ; preds = %10
%14 = load i32, i32* %3
%15 = icmp eq i32 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %13
%17 = load i32, i32* %4
%18 = icmp eq i32 %17, 0
br label %19
19: ; preds = %16, %13, %10
%20 = phi i1 [ true, %13 ], [ true, %10 ], [ %18, %16 ]
br i1 %20, label %21, label %24
21: ; preds = %19
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([119 x i8], [119 x i8]* @.str, i64 0, i64 0))
%23 = call i32 @scanf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32* %2, i32* %3, i32* %4, float* %5, float* %6)
br label %10
24: ; preds = %19
%25 = load i32, i32* %2
%26 = load i32, i32* %3
%27 = load i32, i32* %4
%28 = load float, float* %5
%29 = fpext float %28 to double
%30 = load float, float* %6
%31 = fpext float %30 to double
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %25, i32 %26, i32 %27, double %29, double %31)
%33 = load i32, i32* %2
%34 = sdiv i32 110000, %33
%35 = load i32, i32* %2
%36 = load i32, i32* %3
%37 = load i32, i32* %4
%38 = add nsw i32 %36, %37
%39 = sdiv i32 %35, %38
%40 = add nsw i32 %34, %39
%41 = load i32, i32* %3
%42 = load i32, i32* %4
%43 = mul nsw i32 %41, %42
%44 = load i32, i32* %2
%45 = sdiv i32 %43, %44
%46 = add nsw i32 %40, %45
%47 = sitofp i32 %46 to float
store float %47, float* %7
%48 = load i32, i32* %2
%49 = sitofp i32 %48 to float
%50 = load float, float* %5
%51 = load float, float* %6
%52 = fdiv float %50, %51
%53 = fadd float %49, %52
%54 = load i32, i32* %3
%55 = load i32, i32* %2
%56 = load i32, i32* %4
%57 = sdiv i32 %55, %56
%58 = add nsw i32 %54, %57
%59 = sitofp i32 %58 to float
%60 = fdiv float %53, %59
%61 = fadd float %60, 0.000000e+00
store float %61, float* %8
%62 = load i32, i32* %2
%63 = sdiv i32 1, %62
%64 = load i32, i32* %4
%65 = sdiv i32 1, %64
%66 = add nsw i32 %63, %65
%67 = load i32, i32* %3
%68 = sdiv i32 1, %67
%69 = add nsw i32 %66, %68
%70 = sitofp i32 %69 to float
%71 = load float, float* %5
%72 = fdiv float 1.000000e+00, %71
%73 = fadd float %70, %72
%74 = load float, float* %6
%75 = fdiv float 1.000000e+00, %74
%76 = fadd float %73, %75
store float %76, float* %9
%77 = load float, float* %7
%78 = fpext float %77 to double
%79 = load float, float* %8
%80 = fpext float %79 to double
%81 = load float, float* %9
%82 = fpext float %81 to double
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), double %78, double %80, double %82)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [16 x i8] c"%d\0A%d\0A%d\0A%f\0A%f\0A\00"
@.str.2 = [16 x i8] c"%d\0A%d\0A%d\0A%d\0A%d\0A\00"
@.str.3 = [18 x i8] c"V=%f\0A W=%\0A Z = %\0A\00"
@str = [118 x i8] c"\D0\B2\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D1\86\D0\B5\D0\BB\D1\8B\D0\B5 i, j, k, \D0\BE\D1\82\D0\BB\D0\B8\D1\87\D0\BD\D1\8B\D0\B5 \D0\BE\D1\82 0 \D0\B8 \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\B5 m \D0\B8 n \D0\BD\D0\B5 \D1\80\D0\B0\D0\B2\D0\BD\D0\BE\D0\B5 0\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
%5 = alloca float
%6 = bitcast i32* %1 to i8*
%7 = bitcast i32* %2 to i8*
%8 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%9 = bitcast float* %4 to i8*
%10 = bitcast float* %5 to i8*
br label %11
11: ; preds = %0, %11
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([118 x i8], [118 x i8]* @str, i64 0, i64 0))
%13 = call i32 @scanf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2, i32* %3, float* %4, float* %5)
%14 = load i32, i32* %1
%15 = icmp eq i32 %14, 0
%16 = load i32, i32* %2
%17 = icmp eq i32 %16, 0
%18 = select i1 %15, i1 true, i1 %17
%19 = load i32, i32* %3
%20 = icmp eq i32 %19, 0
%21 = select i1 %18, i1 true, i1 %20
br i1 %21, label %11, label %22
22: ; preds = %11
%23 = load float, float* %4
%24 = load float, float* %5
%25 = fpext float %23 to double
%26 = fpext float %24 to double
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %14, i32 %16, i32 %19, double %25, double %26)
%28 = load i32, i32* %1
%29 = sdiv i32 110000, %28
%30 = load i32, i32* %2
%31 = load i32, i32* %3
%32 = add nsw i32 %31, %30
%33 = sdiv i32 %28, %32
%34 = add nsw i32 %33, %29
%35 = mul nsw i32 %31, %30
%36 = sdiv i32 %35, %28
%37 = add nsw i32 %34, %36
%38 = sitofp i32 %37 to float
%39 = sitofp i32 %28 to float
%40 = load float, float* %4
%41 = load float, float* %5
%42 = fdiv float %40, %41
%43 = fadd float %42, %39
%44 = sdiv i32 %28, %31
%45 = add nsw i32 %44, %30
%46 = sitofp i32 %45 to float
%47 = fdiv float %43, %46
%48 = fadd float %47, 0.000000e+00
%49 = add i32 %28, 1
%50 = icmp ult i32 %49, 3
%51 = select i1 %50, i32 %28, i32 0
%52 = add i32 %31, 1
%53 = icmp ult i32 %52, 3
%54 = select i1 %53, i32 %31, i32 0
%55 = add i32 %30, 1
%56 = icmp ult i32 %55, 3
%57 = select i1 %56, i32 %30, i32 0
%58 = add nsw i32 %57, %51
%59 = add nsw i32 %58, %54
%60 = sitofp i32 %59 to float
%61 = insertelement <2 x float> poison, float %41, i64 0
%62 = insertelement <2 x float> %61, float %40, i64 1
%63 = fdiv <2 x float> <float 1.000000e+00, float 1.000000e+00>, %62
%64 = extractelement <2 x float> %63, i64 1
%65 = fadd float %64, %60
%66 = extractelement <2 x float> %63, i64 0
%67 = fadd float %66, %65
%68 = fpext float %38 to double
%69 = fpext float %48 to double
%70 = fpext float %67 to double
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), double %68, double %69, double %70)
ret i32 0
}