@@ -36,7 +36,6 @@ Revision History:
36
36
#include " nlsat/nlsat_simplify.h"
37
37
#include " nlsat/nlsat_simple_checker.h"
38
38
#include " nlsat/nlsat_variable_ordering_strategy.h"
39
- #include " nlsat/nlsat_symmetry_checker.h"
40
39
41
40
#define NLSAT_EXTRA_VERBOSE
42
41
@@ -226,7 +225,6 @@ namespace nlsat {
226
225
// #linxi begin
227
226
bool m_linxi_simple_check;
228
227
unsigned m_linxi_variable_ordering_strategy;
229
- bool m_linxi_symmetry_check;
230
228
bool m_linxi_set_0_more;
231
229
bool m_cell_sample;
232
230
// #linxi end
@@ -302,7 +300,6 @@ namespace nlsat {
302
300
// #linxi begin
303
301
m_linxi_simple_check = p.linxi_simple_check ();
304
302
m_linxi_variable_ordering_strategy = p.linxi_variable_ordering_strategy ();
305
- m_linxi_symmetry_check = p.linxi_symmetry_check ();
306
303
// #linxi end
307
304
308
305
@@ -1836,41 +1833,7 @@ namespace nlsat {
1836
1833
1837
1834
// #linxi end Variable Ordering Strategy
1838
1835
1839
- // #linxi begin symmetry check
1840
- void symmetry_check () {
1841
- unsigned arith_num = m_is_int.size ();
1842
- if (arith_num > 10000 )
1843
- return ;
1844
- Symmetry_Checker checker (m_pm, m_qm, m_clauses, m_atoms, m_is_int, arith_num);
1845
- for (var x = 0 ; x < arith_num; ++x) {
1846
- for (var y = x + 1 ; y < arith_num; ++y) {
1847
- if (checker.check_symmetry (x, y)) {
1848
- TRACE (" linxi_symmetry_checker" ,
1849
- tout << " symmetry: " << x << " , " << y << " \n " ;
1850
- );
1851
-
1852
- rational zero (0 );
1853
- vector<rational> as;
1854
- vector<var> xs;
1855
- as.push_back (rational (1 ));
1856
- xs.push_back (x);
1857
- as.push_back (rational (-1 ));
1858
- xs.push_back (y);
1859
- polynomial_ref pr (m_pm);
1860
- pr = m_pm.mk_linear (2 , as.data (), xs.data (), zero);
1861
- poly* p = pr.get ();
1862
- bool is_even = false ;
1863
- literal lit = ~mk_ineq_literal (atom::GT, 1 , &p, &is_even);
1864
- clause *cla = mk_clause (1 , &lit, true , nullptr );
1865
- }
1866
- }
1867
- }
1868
- TRACE (" linxi_symmetry_checker" ,
1869
- display (tout);
1870
- );
1871
-
1872
- }
1873
- // #linxi end symmetry check
1836
+
1874
1837
void apply_reorder () {
1875
1838
m_reordered = false ;
1876
1839
if (!can_reorder ())
@@ -1887,13 +1850,6 @@ namespace nlsat {
1887
1850
1888
1851
lbool check () {
1889
1852
1890
- // #linxi begin symmetry check
1891
- if (m_linxi_symmetry_check) {
1892
- symmetry_check ();
1893
- }
1894
- // exit(0);
1895
- // #linxi end symmetry check
1896
-
1897
1853
// #linxi begin simple check
1898
1854
if (m_linxi_simple_check) {
1899
1855
if (!simple_check ()) {
0 commit comments