int main(void) {
  double s1, s2, a, b, y, step;
  printf("Введите a, b: ");
  scanf("%lf %lf", &a, &b);
  printf("Введите интервал: ");
  scanf("%lf %lf", &s1, &s2);
  printf("Введите шаг: ");
  scanf("%lf", &step);
  double x = s1;
  printf("-------------------------------------------------\n");
  printf("|           X           |           Y           |\n");
  printf("|-----------------------|-----------------------|\n");
  while (x <= s2) {
    double d = a * x;
    if (d <= 0) {
      printf("| %-22f| Функция не существует |\n", x);
    } else {
      y = (sqrt(d) + b) / (sin(d)) + 3 * sin(x);
      printf("| %-22f| %-22f|\n", x, y);
    }
    x += step;
  }
  printf("-------------------------------------------------");
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeaa(%rip),%rdi
lea    -0x20(%rbp),%rsi
lea    -0x28(%rbp),%rdx
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe86(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe66(%rip),%rdi
lea    -0x38(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    0xe88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xead(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x40(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     12c3 <main+0x173>
movsd  -0x20(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x48(%rbp),%xmm0
jb     1244 <main+0xf4>
movsd  -0x40(%rbp),%xmm0
lea    0xec1(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    12af <main+0x15f>
movsd  -0x48(%rbp),%xmm0
call   1060 <sqrt@plt>
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1040 <sin@plt>
movsd  -0x50(%rbp),%xmm1
movsd  0xd76(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
lea    0xe86(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movsd  -0x38(%rbp),%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
jmp    11fb <main+0xab>
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1070 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x38,%rsp
lea    0xe9a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xea2(%rip),%rbx
lea    0x28(%rsp),%rsi
lea    0x20(%rsp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe8f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x30(%rsp),%rsi
lea    0x10(%rsp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe8f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe5b(%rip),%rdi
lea    0x18(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movsd  0x30(%rsp),%xmm0
movsd  %xmm0,(%rsp)
lea    0xec1(%rip),%rdi
call   1030 <puts@plt>
lea    0xee7(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0d(%rip),%rdi
call   1030 <puts@plt>
movsd  (%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jae    1228 <main+0xc8>
lea    0xe8c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
call   1080 <exit@plt>
xorpd  %xmm2,%xmm2
lea    0xe62(%rip),%r14
lea    0xe26(%rip),%rbx
jmp    1265 <main+0x105>
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xorpd  %xmm2,%xmm2
movsd  (%rsp),%xmm0
addsd  0x18(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jb     1213 <main+0xb3>
movsd  0x28(%rsp),%xmm3
mulsd  %xmm0,%xmm3
ucomisd %xmm3,%xmm2
movsd  %xmm0,(%rsp)
jae    1240 <main+0xe0>
ucomisd %xmm2,%xmm3
jb     1290 <main+0x130>
xorps  %xmm0,%xmm0
sqrtsd %xmm3,%xmm0
jmp    12a5 <main+0x145>
nopl   0x0(%rax)
movapd %xmm3,%xmm0
movsd  %xmm3,0x8(%rsp)
call   1070 <sqrt@plt>
movsd  0x8(%rsp),%xmm3
addsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movapd %xmm3,%xmm0
call   1050 <sin@plt>
movsd  0x8(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  (%rsp),%xmm0
call   1050 <sin@plt>
mulsd  0xd24(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
addsd  %xmm0,%xmm1
mov    %r14,%rdi
movsd  (%rsp),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
movsd  (%rsp),%xmm0
xorpd  %xmm2,%xmm2
jmp    1253 <main+0xf3>

LLVM IR (-O0):
@.str = [22 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 a, b: \00"
@.str.1 = [8 x i8] c"%lf %lf\00"
@.str.2 = [34 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B8\D0\BD\D1\82\D0\B5\D1\80\D0\B2\D0\B0\D0\BB: \00"
@.str.3 = [24 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D1\88\D0\B0\D0\B3: \00"
@.str.4 = [4 x i8] c"%lf\00"
@.str.5 = [51 x i8] c"-------------------------------------------------\0A\00"
@.str.6 = [51 x i8] c"| X | Y |\0A\00"
@.str.7 = [51 x i8] c"|-----------------------|-----------------------|\0A\00"
@.str.8 = [53 x i8] c"| %-22f| \D0\A4\D1\83\D0\BD\D0\BA\D1\86\D0\B8\D1\8F \D0\BD\D0\B5 \D1\81\D1\83\D1\89\D0\B5\D1\81\D1\82\D0\B2\D1\83\D0\B5\D1\82 |\0A\00"
@.str.9 = [17 x i8] c"| %-22f| %-22f|\0A\00"
@.str.10 = [50 x i8] c"-------------------------------------------------\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
store i32 0, i32* %1
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double* %4, double* %5)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double* %2, double* %3)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %7)
%16 = load double, double* %2
store double %16, double* %8
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0))
br label %20
20: ; preds = %47, %0
%21 = load double, double* %8
%22 = load double, double* %3
%23 = fcmp ole double %21, %22
br i1 %23, label %24, label %51
24: ; preds = %20
%25 = load double, double* %4
%26 = load double, double* %8
%27 = fmul double %25, %26
store double %27, double* %9
%28 = load double, double* %9
%29 = fcmp ole double %28, 0.000000e+00
br i1 %29, label %30, label %33
30: ; preds = %24
%31 = load double, double* %8
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.8, i64 0, i64 0), double %31)
br label %47
33: ; preds = %24
%34 = load double, double* %9
%35 = call double @sqrt(double %34)
%36 = load double, double* %5
%37 = fadd double %35, %36
%38 = load double, double* %9
%39 = call double @sin(double %38)
%40 = fdiv double %37, %39
%41 = load double, double* %8
%42 = call double @sin(double %41)
%43 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %42, double %40)
store double %43, double* %6
%44 = load double, double* %8
%45 = load double, double* %6
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), double %44, double %45)
br label %47
47: ; preds = %33, %30
%48 = load double, double* %7
%49 = load double, double* %8
%50 = fadd double %49, %48
store double %50, double* %8
br label %20
51: ; preds = %20
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.10, i64 0, i64 0))
unreachable
}

LLVM IR (-O2):
@.str = [22 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 a, b: \00"
@.str.1 = [8 x i8] c"%lf %lf\00"
@.str.2 = [34 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B8\D0\BD\D1\82\D0\B5\D1\80\D0\B2\D0\B0\D0\BB: \00"
@.str.3 = [24 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D1\88\D0\B0\D0\B3: \00"
@.str.4 = [4 x i8] c"%lf\00"
@.str.8 = [53 x i8] c"| %-22f| \D0\A4\D1\83\D0\BD\D0\BA\D1\86\D0\B8\D1\8F \D0\BD\D0\B5 \D1\81\D1\83\D1\89\D0\B5\D1\81\D1\82\D0\B2\D1\83\D0\B5\D1\82 |\0A\00"
@.str.9 = [17 x i8] c"| %-22f| %-22f|\0A\00"
@str = [50 x i8] c"-------------------------------------------------\00"
@str.11 = [50 x i8] c"| X | Y |\00"
@str.12 = [50 x i8] c"|-----------------------|-----------------------|\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = bitcast double* %1 to i8*
%7 = bitcast double* %2 to i8*
%8 = bitcast double* %3 to i8*
%9 = bitcast double* %4 to i8*
%10 = bitcast double* %5 to i8*
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double* %3, double* %4)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double* %1, double* %2)
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %5)
%17 = load double, double* %1
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str, i64 0, i64 0))
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.11, i64 0, i64 0))
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.12, i64 0, i64 0))
%21 = load double, double* %2
%22 = fcmp ugt double %17, %21
br i1 %22, label %44, label %23
23: ; preds = %0, %39
%24 = phi double [ %41, %39 ], [ %17, %0 ]
%25 = load double, double* %3
%26 = fmul double %24, %25
%27 = fcmp ugt double %26, 0.000000e+00
br i1 %27, label %30, label %28
28: ; preds = %23
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.8, i64 0, i64 0), double %24)
br label %39
30: ; preds = %23
%31 = call double @sqrt(double %26)
%32 = load double, double* %4
%33 = fadd double %31, %32
%34 = call double @sin(double %26)
%35 = fdiv double %33, %34
%36 = call double @sin(double %24)
%37 = call double @llvm.fmuladd.f64(double %36, double 3.000000e+00, double %35)
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), double %24, double %37)
br label %39
39: ; preds = %30, %28
%40 = load double, double* %5
%41 = fadd double %24, %40
%42 = load double, double* %2
%43 = fcmp ugt double %41, %42
br i1 %43, label %44, label %23
44: ; preds = %39, %0
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str, i64 0, i64 0))
unreachable
}