Tree visit(constant)

This commit is contained in:
Johanna Stuber 2021-01-28 11:08:09 +01:00
parent 87304d23f1
commit 5e786746f4
2 changed files with 6 additions and 2 deletions

View File

@ -142,7 +142,11 @@ public class Tree implements TermVisitorTree {
@Override @Override
public InferenceStep visit(ConstTerm constant, Map<VarTerm, TypeAbstraction> typeAssumptions, Type conclusionType) { 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 @Override

View File

@ -9,7 +9,7 @@ import edu.kit.typicalc.model.Constraint;
*/ */
public class AbsStepWithLet extends AbsStep { 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 premise the premise of this step
* @param conclusion the conclusion of this step * @param conclusion the conclusion of this step
* @param constraint constraint that can be derived from this step * @param constraint constraint that can be derived from this step