vgvassilev / clad

clad -- automatic differentiation for C/C++
GNU Lesser General Public License v3.0
266 stars 113 forks source link

Unnecessary identifier in VarDecl that starts with "_" #958

Open ovdiiuv opened 1 week ago

ovdiiuv commented 1 week ago

Differentiating

double fn(double x){
    double __b = x;
    return __b;
}

produces:

double fn_darg0(double x) {
    double _d_x = 1;
    double _d___b = _d_x;
    double __b0 = x;
    return _d___b;
}