Partial decoder generator.