Split sources per algorithm and generate them AOT