Fault-lang / Fault

a language for building system dynamic models

Home Page:https://fault.tech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Known bug with indexes and phi values

mbellotti opened this issue · comments

Need to come back to this later but there's a known bug in indexes when they are using inside any kind of branching logic like so:

increment: func{
        if num.value == 0 {
              num.value = 1;
       else{
              num.value <- num.value[now-1];
       },

index references a variable in the true branch that shouldn't be accessible to the false branch.