Next: , Previous: , Up: Software Evolution Library Index   [Contents][Index]


A.51 SOFTWARE-EVOLUTION-LIBRARY/SOFTWARE/SUPER-MUTANT

Function: collate-ast-variants [sel/sw/super-mutant] ast-roots

Collect and align variants of top-level ASTs.

Returns a list of variants for each key. Keys are merged across mutants, while preserving the original order as much as possible. The position of each variant in the variants list matches the position of the corresponding mutant in ast-roots. In the event of inserted or deleted ASTs, the variant list will contain nils.

We assume that the order of common keys is consistent across all variants. If this is not true, the result may have duplicate keys.

Generic Function: create-super-soft [sel/sw/super-mutant] base mutants

Create a software object which combines multiple variants.

base is typically a member of mutants.