porting examples from delite optiml