Build complete CSP tree.