这个程序为什么超时了

为什么计算超时了?

#include
#include
int main()
{
    int x1, x2;
    int a, b;
    
    scanf_s("%d %d", &a, &b);
    x1 = a;x2 = b;
    float x0, fx0, fx1, fx2;
    fx1 = x1 * ((2 * x1 - 4) * x1 + 3) - 6;
    fx2 = x2 * ((2 * x2 - 4) * x2 + 3) - 6;
    do
    {
        
        x0 = (x1 + x2) / 2;
        fx0 = x0 * ((2 * x0 - 4) * x0 + 3) - 6;
        if ((fx0 * fx1) < 0)
            x1 = x0;
        else
            x2= x0;
    } while (fabs(x1 -x2) >= 1e-5);
    
    if (x0 > a && x0 < b)
        printf("%.4lf", x0);
    else
    printf("指定区间没有实数根");
    return 0;
}

![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/954323698766191.png "#left")

do循环里头数据没有变化,一直这么一成不变的算永远达不到while的条件

int x1, x2;
改为
float x1,x2;