(use eggdoc) (define doc `((eggdoc:begin (name "graph-ssa") (description "Compute static single assignment form of a graph.") (author (p "Richard Kelsey; ported to Chicken by " (url "http://chicken.wiki.br/ivan raikov" "Ivan Raikov"))) (history (version "1.2" "Ported to Chicken 4") (version "1.0" "Initial release")) (requires (url "graph-dominators.html" "graph-dominators") (url "matchable.html" "matchable")) (download "graph-ssa.egg") (usage "(require-extension graph-ssa)") (documentation (p "This code is based on the algorithm from " (i "Efficiently computing static single assignment form and the control dependence graph") ", " "ACM Transactions on Programming Languages and Systems 1991 13(4), pp. 451-490. ") (subsection "Procedures" (procedure "graph->ssa-graph:: G -> SSA-GRAPH" (p "Computes the dominance frontiers of the nodes in the graph, and returns " "the list of nodes augmented with this information. ")) (procedure "graph-ssa-find-joins:: SSA-GRAPH -> NODES" (p "Given a list of SSA nodes, returns the list of nodes " (tt "N") " for which there are (at least) two paths " (tt "... N_0 M_0 ... M_i N") " and " (tt " ... N_1 P_0 ... P_j N") " such that " (tt "N_0") " and " (tt "N_1") " are distinct members of " (tt "NODES") " and the M's and P's are disjoint sets."))) (examples (pre #<~A" ni nj))))) (else (error "invalid edge " e)))) used-by) (define ssa-graph (graph->ssa-graph g)) (graph-ssa-find-joins ssa-graph) EOF )) (license "Copyright (c) 1993-1999 by Richard Kelsey. Ported to Chicken Scheme by Ivan Raikov. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." ))))) (if (eggdoc->html doc) (void))