main() {
  int m, n, p, d1, d2, c, z, s;
  int a, b, x, d, e, f, g, h;
  printf("Введите значения переменных m, n, p\n");
  scanf("%d%d%d\n", &m, &n, &p);
  printf("Введите значения переменных d1 и d2\n");
  scanf("%d%d", &d1, &d2);
  a = (m + p);
  b = d2;
  x = (n * p);
  d = p;
  e = n;
  g = m;
  h = (d2 + (m / p));
  if (a == 0 || b == 0) {
    printf("Первое выражение не имеет смысла\n");
  } else {
    c = (m + n) / (m + p) + pow(10, -3);
  }
  if (x == 0 || d == 0 || e == 0 || b == 0) {
    printf("Второе выражение не имеет смысла\n");
  } else {
    s = (m / (n * p)) + ((n * m) / p) + (d1 / n) + (p / d2);
  }
  if (g == 0 || h == 0) {
    printf("Третье выражение не имеет смысла\n");
  } else {
    z = (p / m) * ((d1 + (m / n)) / (d2 + (m / p)));
  }
  printf("Значение первого выражения = %d\n", &c);
  printf("Значение второго выражения = %d\n", &s);
  printf("Значение третьего выражения = %d\n", &z);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xee8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf19(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0xc(%rbp),%eax
imul   -0x10(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x8(%rbp),%eax
cltd
idivl  -0x10(%rbp)
mov    %eax,%ecx
mov    -0x48(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x44(%rbp)
cmpl   $0x0,-0x28(%rbp)
je     11e1 <main+0xb1>
cmpl   $0x0,-0x2c(%rbp)
jne    11f4 <main+0xc4>
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1234 <main+0x104>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    -0x10(%rbp),%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xdec(%rip),%xmm0
movsd  0xdec(%rip),%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x30(%rbp)
je     125c <main+0x12c>
cmpl   $0x0,-0x34(%rbp)
je     125c <main+0x12c>
cmpl   $0x0,-0x38(%rbp)
je     125c <main+0x12c>
cmpl   $0x0,-0x2c(%rbp)
jne    126f <main+0x13f>
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12b6 <main+0x186>
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
imul   -0x10(%rbp),%ecx
cltd
idiv   %ecx
mov    %eax,-0x5c(%rbp)
mov    -0xc(%rbp),%eax
imul   -0x8(%rbp),%eax
cltd
idivl  -0x10(%rbp)
mov    %eax,%ecx
mov    -0x5c(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x58(%rbp)
mov    -0x14(%rbp),%eax
cltd
idivl  -0xc(%rbp)
mov    %eax,%ecx
mov    -0x58(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x54(%rbp)
mov    -0x10(%rbp),%eax
cltd
idivl  -0x18(%rbp)
mov    %eax,%ecx
mov    -0x54(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x40(%rbp)
je     12ca <main+0x19a>
cmpl   $0x0,-0x44(%rbp)
jne    12dd <main+0x1ad>
lea    0xe45(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    131d <main+0x1ed>
mov    -0x10(%rbp),%eax
cltd
idivl  -0x8(%rbp)
mov    %eax,-0x60(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
mov    %eax,%ecx
mov    -0x68(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x64(%rbp)
mov    -0x18(%rbp),%ecx
mov    -0x8(%rbp),%eax
cltd
idivl  -0x10(%rbp)
mov    %eax,%edx
mov    -0x64(%rbp),%eax
add    %edx,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x60(%rbp),%eax
imul   %ecx,%eax
mov    %eax,-0x20(%rbp)
lea    0xe30(%rip),%rdi
lea    -0x1c(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe57(%rip),%rdi
lea    -0x24(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe7e(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x20,%rsp
lea    0xf7f(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb9(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
lea    0x4(%rsp),%rcx
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xf93(%rip),%rdi
call   1030 <puts@plt>
lea    0xe98(%rip),%rdi
lea    0x10(%rsp),%rsi
mov    %rsp,%rdx
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0xc(%rsp),%r12d
mov    0x4(%rsp),%ebx
mov    0x8(%rsp),%ebp
mov    %r12d,%eax
cltd
idiv   %ebx
mov    %eax,%r14d
mov    %ebx,%ecx
mov    (%rsp),%r15d
add    %r12d,%ecx
je     11ce <main+0x9e>
test   %r15d,%r15d
je     11ce <main+0x9e>
lea    (%r12,%rbp,1),%eax
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
addsd  0xe40(%rip),%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,0x1c(%rsp)
test   %ebx,%ebx
jne    11de <main+0xae>
jmp    1230 <main+0x100>
lea    0xfe2(%rip),%rdi
call   1030 <puts@plt>
test   %ebx,%ebx
je     1230 <main+0x100>
imul   %ebp,%ebx
test   %ebx,%ebx
je     1230 <main+0x100>
test   %ebp,%ebp
je     1230 <main+0x100>
test   %r15d,%r15d
je     1230 <main+0x100>
mov    0xc(%rsp),%ecx
mov    0x8(%rsp),%ebp
mov    0x4(%rsp),%esi
mov    %esi,%edi
imul   %ebp,%edi
mov    %ecx,%eax
cltd
idiv   %edi
mov    %eax,%edi
imul   %ebp,%ecx
mov    %ecx,%eax
cltd
idiv   %esi
mov    %eax,%ecx
add    %edi,%ecx
mov    0x10(%rsp),%eax
cltd
idiv   %ebp
mov    %eax,%edi
add    %ecx,%edi
mov    %esi,%eax
cltd
idivl  (%rsp)
add    %edi,%eax
mov    %eax,0x14(%rsp)
test   %r12d,%r12d
jne    1241 <main+0x111>
jmp    127d <main+0x14d>
lea    0xf43(%rip),%rdi
call   1030 <puts@plt>
test   %r12d,%r12d
je     127d <main+0x14d>
neg    %r14d
cmp    %r14d,%r15d
je     127d <main+0x14d>
mov    0x4(%rsp),%ecx
mov    0xc(%rsp),%esi
mov    %ecx,%eax
cltd
idiv   %esi
mov    %eax,%edi
mov    %esi,%eax
cltd
idivl  0x8(%rsp)
mov    %eax,%ebp
add    0x10(%rsp),%ebp
mov    %esi,%eax
cltd
idiv   %ecx
mov    %eax,%ecx
add    (%rsp),%ecx
mov    %ebp,%eax
cltd
idiv   %ecx
imul   %edi,%eax
mov    %eax,0x18(%rsp)
jmp    1289 <main+0x159>
lea    0xeb9(%rip),%rdi
call   1030 <puts@plt>
lea    0xd85(%rip),%rdi
lea    0x1c(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdab(%rip),%rdi
lea    0x14(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdd1(%rip),%rdi
lea    0x18(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [62 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B7\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D1\8F \D0\BF\D0\B5\D1\80\D0\B5\D0\BC\D0\B5\D0\BD\D0\BD\D1\8B\D1\85 m, n, p\0A\00"
@.str.1 = [8 x i8] c"%d%d%d\0A\00"
@.str.2 = [63 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B7\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D1\8F \D0\BF\D0\B5\D1\80\D0\B5\D0\BC\D0\B5\D0\BD\D0\BD\D1\8B\D1\85 d1 \D0\B8 d2\0A\00"
@.str.3 = [5 x i8] c"%d%d\00"
@.str.4 = [62 x i8] c"\D0\9F\D0\B5\D1\80\D0\B2\D0\BE\D0\B5 \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D0\B5 \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.5 = [62 x i8] c"\D0\92\D1\82\D0\BE\D1\80\D0\BE\D0\B5 \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D0\B5 \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.6 = [62 x i8] c"\D0\A2\D1\80\D0\B5\D1\82\D1\8C\D0\B5 \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D0\B5 \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.7 = [57 x i8] c"\D0\97\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5 \D0\BF\D0\B5\D1\80\D0\B2\D0\BE\D0\B3\D0\BE \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D1\8F = %d\0A\00"
@.str.8 = [57 x i8] c"\D0\97\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5 \D0\B2\D1\82\D0\BE\D1\80\D0\BE\D0\B3\D0\BE \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D1\8F = %d\0A\00"
@.str.9 = [59 x i8] c"\D0\97\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5 \D1\82\D1\80\D0\B5\D1\82\D1\8C\D0\B5\D0\B3\D0\BE \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D1\8F = %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i32 0, i32* %1
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0))
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0))
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32* %5, i32* %6)
%22 = load i32, i32* %2
%23 = load i32, i32* %4
%24 = add nsw i32 %22, %23
store i32 %24, i32* %10
%25 = load i32, i32* %6
store i32 %25, i32* %11
%26 = load i32, i32* %3
%27 = load i32, i32* %4
%28 = mul nsw i32 %26, %27
store i32 %28, i32* %12
%29 = load i32, i32* %4
store i32 %29, i32* %13
%30 = load i32, i32* %3
store i32 %30, i32* %14
%31 = load i32, i32* %2
store i32 %31, i32* %16
%32 = load i32, i32* %6
%33 = load i32, i32* %2
%34 = load i32, i32* %4
%35 = sdiv i32 %33, %34
%36 = add nsw i32 %32, %35
store i32 %36, i32* %17
%37 = load i32, i32* %10
%38 = icmp eq i32 %37, 0
br i1 %38, label %42, label %39
39: ; preds = %0
%40 = load i32, i32* %11
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %39, %0
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i64 0, i64 0))
br label %56
44: ; preds = %39
%45 = load i32, i32* %2
%46 = load i32, i32* %3
%47 = add nsw i32 %45, %46
%48 = load i32, i32* %2
%49 = load i32, i32* %4
%50 = add nsw i32 %48, %49
%51 = sdiv i32 %47, %50
%52 = sitofp i32 %51 to double
%53 = call double @pow(double 1.000000e+01, double -3.000000e+00)
%54 = fadd double %52, %53
%55 = fptosi double %54 to i32
store i32 %55, i32* %7
br label %56
56: ; preds = %44, %42
%57 = load i32, i32* %12
%58 = icmp eq i32 %57, 0
br i1 %58, label %68, label %59
59: ; preds = %56
%60 = load i32, i32* %13
%61 = icmp eq i32 %60, 0
br i1 %61, label %68, label %62
62: ; preds = %59
%63 = load i32, i32* %14
%64 = icmp eq i32 %63, 0
br i1 %64, label %68, label %65
65: ; preds = %62
%66 = load i32, i32* %11
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %65, %62, %59, %56
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.5, i64 0, i64 0))
br label %90
70: ; preds = %65
%71 = load i32, i32* %2
%72 = load i32, i32* %3
%73 = load i32, i32* %4
%74 = mul nsw i32 %72, %73
%75 = sdiv i32 %71, %74
%76 = load i32, i32* %3
%77 = load i32, i32* %2
%78 = mul nsw i32 %76, %77
%79 = load i32, i32* %4
%80 = sdiv i32 %78, %79
%81 = add nsw i32 %75, %80
%82 = load i32, i32* %5
%83 = load i32, i32* %3
%84 = sdiv i32 %82, %83
%85 = add nsw i32 %81, %84
%86 = load i32, i32* %4
%87 = load i32, i32* %6
%88 = sdiv i32 %86, %87
%89 = add nsw i32 %85, %88
store i32 %89, i32* %9
br label %90
90: ; preds = %70, %68
%91 = load i32, i32* %16
%92 = icmp eq i32 %91, 0
br i1 %92, label %96, label %93
93: ; preds = %90
%94 = load i32, i32* %17
%95 = icmp eq i32 %94, 0
br i1 %95, label %96, label %98
96: ; preds = %93, %90
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0))
br label %114
98: ; preds = %93
%99 = load i32, i32* %4
%100 = load i32, i32* %2
%101 = sdiv i32 %99, %100
%102 = load i32, i32* %5
%103 = load i32, i32* %2
%104 = load i32, i32* %3
%105 = sdiv i32 %103, %104
%106 = add nsw i32 %102, %105
%107 = load i32, i32* %6
%108 = load i32, i32* %2
%109 = load i32, i32* %4
%110 = sdiv i32 %108, %109
%111 = add nsw i32 %107, %110
%112 = sdiv i32 %106, %111
%113 = mul nsw i32 %101, %112
store i32 %113, i32* %8
br label %114
114: ; preds = %98, %96
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.7, i64 0, i64 0), i32* %7)
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.8, i64 0, i64 0), i32* %9)
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.9, i64 0, i64 0), i32* %8)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [8 x i8] c"%d%d%d\0A\00"
@.str.3 = [5 x i8] c"%d%d\00"
@.str.7 = [57 x i8] c"\D0\97\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5 \D0\BF\D0\B5\D1\80\D0\B2\D0\BE\D0\B3\D0\BE \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D1\8F = %d\0A\00"
@.str.8 = [57 x i8] c"\D0\97\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5 \D0\B2\D1\82\D0\BE\D1\80\D0\BE\D0\B3\D0\BE \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D1\8F = %d\0A\00"
@.str.9 = [59 x i8] c"\D0\97\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5 \D1\82\D1\80\D0\B5\D1\82\D1\8C\D0\B5\D0\B3\D0\BE \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D1\8F = %d\0A\00"
@str = [61 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B7\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D1\8F \D0\BF\D0\B5\D1\80\D0\B5\D0\BC\D0\B5\D0\BD\D0\BD\D1\8B\D1\85 m, n, p\00"
@str.10 = [62 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B7\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D1\8F \D0\BF\D0\B5\D1\80\D0\B5\D0\BC\D0\B5\D0\BD\D0\BD\D1\8B\D1\85 d1 \D0\B8 d2\00"
@str.11 = [61 x i8] c"\D0\A2\D1\80\D0\B5\D1\82\D1\8C\D0\B5 \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D0\B5 \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.12 = [61 x i8] c"\D0\92\D1\82\D0\BE\D1\80\D0\BE\D0\B5 \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D0\B5 \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.13 = [61 x i8] c"\D0\9F\D0\B5\D1\80\D0\B2\D0\BE\D0\B5 \D0\B2\D1\8B\D1\80\D0\B0\D0\B6\D0\B5\D0\BD\D0\B8\D0\B5 \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"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = bitcast i32* %1 to i8*
%10 = bitcast i32* %2 to i8*
%11 = bitcast i32* %3 to i8*
%12 = bitcast i32* %4 to i8*
%13 = bitcast i32* %5 to i8*
%14 = bitcast i32* %6 to i8*
%15 = bitcast i32* %7 to i8*
%16 = bitcast i32* %8 to i8*
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str, i64 0, i64 0))
%18 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.10, i64 0, i64 0))
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32* %4, i32* %5)
%21 = load i32, i32* %1
%22 = load i32, i32* %3
%23 = add nsw i32 %22, %21
%24 = load i32, i32* %5
%25 = load i32, i32* %2
%26 = mul nsw i32 %25, %22
%27 = sdiv i32 %21, %22
%28 = icmp eq i32 %23, 0
%29 = icmp eq i32 %24, 0
%30 = select i1 %28, i1 true, i1 %29
br i1 %30, label %31, label %33
31: ; preds = %0
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.13, i64 0, i64 0))
br label %39
33: ; preds = %0
%34 = add nsw i32 %25, %21
%35 = sdiv i32 %34, %23
%36 = sitofp i32 %35 to double
%37 = fadd double %36, 1.000000e-03
%38 = fptosi double %37 to i32
store i32 %38, i32* %6
br label %39
39: ; preds = %33, %31
%40 = icmp eq i32 %26, 0
%41 = icmp eq i32 %22, 0
%42 = or i1 %41, %40
%43 = icmp eq i32 %25, 0
%44 = select i1 %42, i1 true, i1 %43
%45 = select i1 %44, i1 true, i1 %29
br i1 %45, label %46, label %48
46: ; preds = %39
%47 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.12, i64 0, i64 0))
br label %63
48: ; preds = %39
%49 = load i32, i32* %1
%50 = load i32, i32* %2
%51 = load i32, i32* %3
%52 = mul nsw i32 %51, %50
%53 = sdiv i32 %49, %52
%54 = mul nsw i32 %50, %49
%55 = sdiv i32 %54, %51
%56 = add nsw i32 %55, %53
%57 = load i32, i32* %4
%58 = sdiv i32 %57, %50
%59 = add nsw i32 %56, %58
%60 = load i32, i32* %5
%61 = sdiv i32 %51, %60
%62 = add nsw i32 %59, %61
store i32 %62, i32* %8
br label %63
63: ; preds = %48, %46
%64 = icmp eq i32 %21, 0
%65 = sub i32 0, %27
%66 = icmp eq i32 %24, %65
%67 = select i1 %64, i1 true, i1 %66
br i1 %67, label %68, label %70
68: ; preds = %63
%69 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.11, i64 0, i64 0))
br label %83
70: ; preds = %63
%71 = load i32, i32* %3
%72 = load i32, i32* %1
%73 = sdiv i32 %71, %72
%74 = load i32, i32* %4
%75 = load i32, i32* %2
%76 = sdiv i32 %72, %75
%77 = add nsw i32 %76, %74
%78 = load i32, i32* %5
%79 = sdiv i32 %72, %71
%80 = add nsw i32 %79, %78
%81 = sdiv i32 %77, %80
%82 = mul nsw i32 %81, %73
store i32 %82, i32* %7
br label %83
83: ; preds = %70, %68
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.7, i64 0, i64 0), i32* %6)
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.8, i64 0, i64 0), i32* %8)
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.9, i64 0, i64 0), i32* %7)
ret i32 0
}