SciML / FunctionProperties.jl

A SciML symbolic-numeric compiler tool for investigating functions in order to perform optimizations
MIT License
9 stars 0 forks source link

Mysterious branch in indexing #9

Closed ChrisRackauckas closed 5 months ago

ChrisRackauckas commented 6 months ago
using FunctionProperties
function f(dx, x)
    @inbounds dx[1] = x[1]
end
x = zeros(1)
dx = zeros(1)
FunctionProperties.hasbranching(f,dx,x) # true?
oscardssmith commented 5 months ago

Better MWE:

f() = true ? 1 : 0
FunctionProperties.hasbranching(f)