if (truesFromBases.isEmpty() && legalsFromInputs.isEmpty()) {
return ImmutableList.of();
}
MachineState initialState = sm.getInitialState();
MachineState state = initialState;
long startTime = System.currentTimeMillis();
while (System.currentTimeMillis() < startTime + millisecondsToTest) {
//Check state against bases, inputs
if (!truesFromBases.isEmpty()) {
if (!truesFromBases.containsAll(state.getContents())) {
Set<GdlSentence> missingBases = new HashSet<GdlSentence>();
missingBases.addAll(state.getContents());
missingBases.removeAll(truesFromBases);
throw new ValidatorException("Found missing bases: " + missingBases);
}
}