Generate block_pass/iter after assinging temp variables to avoid variable overlap