Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
FredrikTaquist committed Apr 29, 2024
1 parent acf5feb commit fb9d076
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
7 changes: 0 additions & 7 deletions src/main/java/de/learnlib/ralib/tools/ClassAnalyzer.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ public void setup(Configuration config) throws ConfigurationException {
actList.add(SpecialSymbols.DEPTH);
ParameterizedSymbol[] actions = actList.toArray(new ParameterizedSymbol[]{});

// final Constants consts = new Constants();

String cstString = OPTION_CONSTANTS.parse(config);
if (cstString != null) {
final SymbolicDataValueGenerator.ConstantGenerator cgen = new SymbolicDataValueGenerator.ConstantGenerator();
Expand Down Expand Up @@ -246,8 +244,6 @@ public TreeOracle createTreeOracle(RegisterAutomaton hyp) {
}
};

//this.rastar = new RaStar(mto, hypFactory, mlo, consts, true, actions);

switch (this.learner) {
case AbstractToolWithRandomWalk.LEARNER_SLSTAR:
this.rastar = new RaStar(mto, hypFactory, mlo, consts, true, actions);
Expand Down Expand Up @@ -376,9 +372,6 @@ public void run() throws RaLibToolException {
}

System.out.println("=============================== STOP ===============================");
System.out.println("FINAL HYP:------------------------------------------");
System.out.println(hyp);
System.out.println("----------------------------------------------------");
SimpleProfiler.logResults();

System.out.println("ce lengths (original): "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,13 @@ private Object resolve(DataValue d) {
}

private boolean isFresh(DataType t, Object id) {
Map<DataValue, Object> map = this.buckets.get(t);
if (consts.values().stream().filter(d -> d.getType().equals(t) && d.getId().equals(id)).findAny().isPresent())
if (consts.values()
.stream()
.filter(d -> d.getType().equals(t) && d.getId().equals(id))
.findAny()
.isPresent())
return false;
Map<DataValue, Object> map = this.buckets.get(t);
return map == null || !map.containsValue(id);
}

Expand Down

0 comments on commit fb9d076

Please sign in to comment.