details on graph traversal and code generation

I am wondering how the vfx graph is handling branches,

in my use case I would pass a parameter going from 0 to 1 do blend in some calculated value so for 0 I do not need to calculate these values, is the code generation smart in such ways that it checks if a constant parameter leads to a branch that is always true that it does not calculate the false input?

Hi, constant lerp ratio of 0 or 1 will lead to the stripping of the lerp and will evaluate only the side needed.
However if the ratio is exposed from outside the graph, it cannot be considered constant anymore and therefore both side will be evaluated.