We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e44b9c commit 3f8d6f6Copy full SHA for 3f8d6f6
src/mcomplex.hpp
@@ -126,18 +126,8 @@ class FComplex : public CMSat::Field {
126
if (!_real.parse_mpq(str, at, line_no)) return false;
127
skip_whitespace(str, at);
128
ArjunNS::FMpq _imag;
129
- if (str[at] == '+') {
130
- at++;
131
- if (!_imag.parse_mpq(str, at, line_no)) return false;
132
- skip_whitespace(str, at);
133
- if (str[at] != 'i') {
134
- std::cerr << "PARSE ERROR! Expected 'i' at end of complex number"
135
- << " At line " << line_no << " Probably looks like 1+2i"
136
- << std::endl;
137
- return false;
138
- }
139
140
+ if (!_imag.parse_mpq(str, at, line_no)) return false;
+ skip_whitespace(str, at);
141
real = _real.get_val();
142
imag = _imag.get_val();
143
return true;
0 commit comments