This commit is contained in:
Moritz Dieing 2021-01-28 12:16:16 +01:00
commit 5ea11e66a0
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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