fix translator by disallowing registers in local variables