mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-09 10:50:42 +00:00
Merge branch 'master' of https://git.scc.kit.edu/pse-typinferenz/typicalc
This commit is contained in:
commit
5ea11e66a0
@ -142,7 +142,11 @@ public class Tree implements TermVisitorTree {
|
||||
|
||||
@Override
|
||||
public InferenceStep visit(ConstTerm constant, Map<VarTerm, TypeAbstraction> typeAssumptions, Type conclusionType) {
|
||||
return null; // TODO
|
||||
Constraint newConstraint = new Constraint(conclusionType, constant.getType());
|
||||
constraints.add(newConstraint);
|
||||
|
||||
Conclusion conclusion = new Conclusion(typeAssumptions, constant, conclusionType);
|
||||
return stepFactory.createConstStep(conclusion, newConstraint);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -9,7 +9,7 @@ import edu.kit.typicalc.model.Constraint;
|
||||
*/
|
||||
public class AbsStepWithLet extends AbsStep {
|
||||
/**
|
||||
*Initializes a new AbsStepWithLet with the given values.
|
||||
* Initializes a new AbsStepWithLet with the given values.
|
||||
* @param premise the premise of this step
|
||||
* @param conclusion the conclusion of this step
|
||||
* @param constraint constraint that can be derived from this step
|
||||
|
Loading…
Reference in New Issue
Block a user