def sum_combined_sp_values(self, other):
if self.values is None:<EOL><INDENT>ret = IdValues()<EOL><DEDENT>else:<EOL><INDENT>ret = IdValues({'<STR_LIT:0>': sum(int(x) for x in<EOL>{k: int(v) * int(other.values[k]) for k, v<EOL>in self.values.items()}.values())})<EOL><DEDENT>return ret<EOL>
sum(sp_values * sp_values)