exception Lambda
exception Backtrack of string
-(*
- The number of arguments which can applied to numbers
- safely, depending on the encoding of numbers.
- For Scott's encoding, two.
-*)
-let num_more_args = 2;;
(* verbosity *)
let _very_verbose = false;;
(** Display measure of every term when printing problem *)
(match t with
`N _ -> List.iter (dangerous arities showstoppers) args
| `Match _ as t -> dangerous arities showstoppers t ; List.iter (dangerous arities showstoppers) args
- | `Var(x,_) -> dangerous_inert arities showstoppers x args num_more_args
- | `I((x,_),args') -> dangerous_inert arities showstoppers x (Listx.to_list args' @ args) num_more_args
+ | `Var(x,_) -> dangerous_inert arities showstoppers x args 2
+ | `I((x,_),args') -> dangerous_inert arities showstoppers x (Listx.to_list args' @ args) 2
)
| `I((k,_),args) -> dangerous_inert arities showstoppers k (Listx.to_list args) 0