CurryInfo: call-analysis-3.2.0 / TRS.addChoiceRules

definition:
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:
no demanded arguments
deterministic:
deterministic operation
documentation:
-- rules defining the choice operator "?"
failfree:
_
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_) |-> _}
name:
addChoiceRules
precedence:
no precedence defined
result-values:
_
signature:
[Rule] -> [Rule]
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
reducible on all ground data terms