Package ai.domain.boxes

Examples of ai.domain.boxes.IntegerBoxesSemantics


    commentData.matchIntervals(cfg, makeMap2(result, intvBottom));
  }
 
  protected void testBooleansAndBoxes(MethodControlFlowGraph cfg) {
    TestCommentData commentData = TestCommentData.parseComments(cfg);
    IntegerBoxesSemantics as = new IntegerBoxesSemantics("");

    NonRelationalDomain<Bool> initialBools = commentData.getInitialBools();
    IntegerBoxes initialBoxes = commentData.getInitialBoxes();

    ProductDomain<NonRelationalDomain<Bool>, IntegerBoxes> initialValue = as.getInitialValue();

    if (initialBools != null)
      initialValue = initialValue.setLeft(initialBools);
    if (initialBoxes != null)
      initialValue = initialValue.setRight(initialBoxes);
View Full Code Here


 
  private AbstractSemanticsIntf<?> getSemantics(String repr) {
    if (repr.equals("intv"))
      return new BoolIntvSemantics();
    if (repr.equals("boxes"))
      return new IntegerBoxesSemantics("");
    if (repr.startsWith("boxes:"))
      return new IntegerBoxesSemantics(repr.substring("boxes:".length()));
    throw new RuntimeException("Unknown domain description");
  }
View Full Code Here

    ComparisonResults comparisonResults = new ComparisonResults();
    //read configuration
    String boxesWideningDescription = JavaAIPlugin.getDefault().getPreferenceStore().getString(PreferenceConstants.P_BOXES_THRESHOLDS);
    int timeoutSeconds = JavaAIPlugin.getDefault().getPreferenceStore().getInt(PreferenceConstants.P_TIMEOUT);
   
    IntegerBoxesSemantics semantics = new IntegerBoxesSemantics(boxesWideningDescription);
    BoolIntvSemantics intv = new BoolIntvSemantics();
    AnalysisErrorHandler aeh = new AnalysisErrorHandler();
    try {
      List<ICompilationUnit> allTasks = Utils.getSelectedIcu(selection);
      for (ICompilationUnit icu : allTasks) {
View Full Code Here

TOP

Related Classes of ai.domain.boxes.IntegerBoxesSemantics

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.