Shred logic used by the Sahagin JavaScript language binding(not implemented yet) and Sahagin HTML report.