CurryInfo: call-analysis-3.2.0 / TRS.addChoiceRules

definition: Info
 
addChoiceRules :: [Rule] -> [Rule]
addChoiceRules rules =
  if ("?",2) `elem` allFunctions rules
  then rules
  else Rule "?" [Var 0, Var 1] (Var 0) :
       Rule "?" [Var 0, Var 1] (Var 1) : rules
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
rules defining the choice operator "?"
failfree: Info
 _
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_) |-> _}
name: Info
 addChoiceRules
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 [Rule] -> [Rule]
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 reducible on all ground data terms