Right-linearity analysis: check whether functions are defined by right-linear rules.
The right-linearity analysis is a global function dependency analysis. It assigns to a function a flag which is True if this function is right-linear, i.e., defined by right-linear rules and depend only on functions defined by right-linear rules.
showRightLinear
:: AOutFormat -> Bool -> String
hasRightLinearRules
:: FuncDecl -> Bool
linearExpr
:: Expr -> Bool