NOVELTY - The method involves traversing a tree of potential complex computer operations; and pruning the tree for optimality under constraints. The optimality comprises maximization of a function of merit. The constraints comprise a convexity constraint, a maximum-input-multiplicity constraint, or a maximum-output-multiplicity constraint. USE - For determining complex computer operation for computer application. ADVANTAGE - Enhances processing performance by automatically forming extensions from high-level application code. DETAILED DESCRIPTION - An INDEPENDENT CLAIM is also included for a system for determining a complex computer operation for a computer application.