99package org .sosy_lab .java_smt .example ;
1010
1111import com .google .common .base .Preconditions ;
12+ import com .google .common .collect .ImmutableList ;
1213import java .io .IOException ;
1314import java .math .BigInteger ;
1415import java .nio .charset .Charset ;
@@ -95,7 +96,7 @@ public static void main(String... args)
9596 SolverContextFactory .createSolverContext (config , logger , notifier , solver )) {
9697
9798 for (BinoxxoSolver <?> binoxxo :
98- List .of (
99+ ImmutableList .of (
99100 new IntegerBasedBinoxxoSolver (context ), new BooleanBasedBinoxxoSolver (context ))) {
100101 long start = System .currentTimeMillis ();
101102
@@ -300,7 +301,7 @@ List<BooleanFormula> getRules(IntegerFormula[][] symbols) {
300301 for (int row = 0 ; row < size ; row ++) {
301302 for (int col = 0 ; col < size - 2 ; col ++) {
302303 List <IntegerFormula > lst =
303- List .of (symbols [row ][col ], symbols [row ][col + 1 ], symbols [row ][col + 2 ]);
304+ ImmutableList .of (symbols [row ][col ], symbols [row ][col + 1 ], symbols [row ][col + 2 ]);
304305 IntegerFormula sum = imgr .sum (lst );
305306 rules .add (bmgr .or (imgr .equal (one , sum ), imgr .equal (two , sum )));
306307 }
@@ -310,7 +311,7 @@ List<BooleanFormula> getRules(IntegerFormula[][] symbols) {
310311 for (int col = 0 ; col < size ; col ++) {
311312 for (int row = 0 ; row < size - 2 ; row ++) {
312313 List <IntegerFormula > lst =
313- List .of (symbols [row ][col ], symbols [row + 1 ][col ], symbols [row + 2 ][col ]);
314+ ImmutableList .of (symbols [row ][col ], symbols [row + 1 ][col ], symbols [row + 2 ][col ]);
314315 IntegerFormula sum = imgr .sum (lst );
315316 rules .add (bmgr .or (imgr .equal (one , sum ), imgr .equal (two , sum )));
316317 }
@@ -398,7 +399,7 @@ List<BooleanFormula> getRules(BooleanFormula[][] symbols) {
398399 for (int row = 0 ; row < size ; row ++) {
399400 for (int col = 0 ; col < size - 2 ; col ++) {
400401 List <BooleanFormula > lst =
401- List .of (symbols [row ][col ], symbols [row ][col + 1 ], symbols [row ][col + 2 ]);
402+ ImmutableList .of (symbols [row ][col ], symbols [row ][col + 1 ], symbols [row ][col + 2 ]);
402403 rules .add (bmgr .not (bmgr .and (lst )));
403404 rules .add (bmgr .or (lst ));
404405 }
@@ -408,7 +409,7 @@ List<BooleanFormula> getRules(BooleanFormula[][] symbols) {
408409 for (int col = 0 ; col < size ; col ++) {
409410 for (int row = 0 ; row < size - 2 ; row ++) {
410411 List <BooleanFormula > lst =
411- List .of (symbols [row ][col ], symbols [row + 1 ][col ], symbols [row + 2 ][col ]);
412+ ImmutableList .of (symbols [row ][col ], symbols [row + 1 ][col ], symbols [row + 2 ][col ]);
412413 rules .add (bmgr .not (bmgr .and (lst )));
413414 rules .add (bmgr .or (lst ));
414415 }
0 commit comments