• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

LearnLib / learnlib / 6673301747

27 Oct 2023 11:46PM UTC coverage: 91.986% (-1.3%) from 93.327%
6673301747

push

github

mtf90
merge the release and sign-artifacts profiles

10984 of 11941 relevant lines covered (91.99%)

1.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/oracles/property-oracles/src/main/java/de/learnlib/oracle/property/DFALassoPropertyOracle.java
1
/* Copyright (C) 2013-2023 TU Dortmund
2
 * This file is part of LearnLib, http://www.learnlib.de/.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
package de.learnlib.oracle.property;
17

18
import java.util.Collection;
19

20
import de.learnlib.api.oracle.LassoEmptinessOracle.DFALassoEmptinessOracle;
21
import de.learnlib.api.oracle.PropertyOracle.DFAPropertyOracle;
22
import net.automatalib.automaton.fsa.DFA;
23
import net.automatalib.modelchecking.Lasso.DFALasso;
24
import net.automatalib.modelchecking.ModelCheckerLasso.DFAModelCheckerLasso;
25

26
/**
27
 * A property oracle for DFAs that can check lassos from the model checker.
28
 *
29
 * @param <I>
30
 *         the input type
31
 * @param <P>
32
 *         the property type
33
 */
34
public class DFALassoPropertyOracle<I, P> extends AbstractPropertyOracle<I, DFA<?, I>, P, Boolean, DFALasso<I>>
35
        implements DFAPropertyOracle<I, P> {
36

37
    private final DFAModelCheckerLasso<I, P> modelChecker;
38

39
    public DFALassoPropertyOracle(P property,
40
                                  DFAInclusionOracle<I> inclusionOracle,
41
                                  DFALassoEmptinessOracle<I> emptinessOracle,
42
                                  DFAModelCheckerLasso<I, P> modelChecker) {
43
        super(property, inclusionOracle, emptinessOracle);
×
44
        this.modelChecker = modelChecker;
×
45
    }
×
46

47
    @Override
48
    protected DFALasso<I> modelCheck(DFA<?, I> hypothesis, Collection<? extends I> inputs) {
49
        return modelChecker.findCounterExample(hypothesis, inputs, getProperty());
×
50
    }
51
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc