Preprocessing for hlda-c