prog/ie.c: rewrite iterd