use of org.sireum.hamr.ir.BLESSIntConst in project osate-plugin by sireum.
the class BAVisitor method caseBehaviorVariable.
@Override
public Boolean caseBehaviorVariable(BehaviorVariable object) {
Option<BTSVariableCategory.Type> category = toNone();
List<BTSVariableDeclaration> names = new ArrayList<>();
DataClassifier dc = object.getDataClassifier();
this.v.processDataType(dc);
Classifier c = Classifier$.MODULE$.apply(dc.getQualifiedName());
BTSType varType = BTSClassifier$.MODULE$.apply(c);
Name name = toSimpleName(object.getName());
Option<BTSExp> assignExpression = toNone();
assert object.getOwnedValueConstant() == null : "Need to handle ba variable const init " + object;
Option<BLESSIntConst> arraySize = toNone();
// NA for BA
Option<BTSAssertion> variableAssertion = toNone();
BTSVariableDeclaration vd = BTSVariableDeclaration$.MODULE$.apply(name, category, varType, assignExpression, arraySize, variableAssertion);
names.add(vd);
push(names);
return false;
}
Aggregations