- bset = libisl.isl_set_add_constraint(bset, ceq)
- bset = libisl.isl_basic_set_project_out(bset, libisl.isl_set_dim, 1, 1);
- elif self.inequalities:
- for _constant in dict_ex:
- value = dict_ex.get('_constant')
- cin = libisl.isl_constraint_set_constant_val(cin, value)
- for _coefficients in dict_ex:
- value_co = dict_ex.get('_coefficients')
- if value_co:
+ bset = libisl.isl_set_add_constraint(bset, ceq)
+
+ if self._inequalities:
+ if '_constant' in d:
+ value = d.get('_constant')
+ cin = libisl.isl_constraint_set_constant_si(cin, value)
+ if '_coefficients' in d:
+ value_co = d.get('_coefficients')
+ if value_co: #if dictionary not empty add coefficient as to constraint