Пример #1
0
 public PairInstrumentation(AnalysisContext ac, EntryPointPair pair)
 {
     Contract.Requires(ac != null && pair != null);
     this.AC  = ac;
     this.EP1 = pair.EntryPoint1;
     this.EP2 = pair.EntryPoint2;
 }
Пример #2
0
 public PairParameterAliasAnalysis(AnalysisContext ac, EntryPointPair pair)
 {
     Contract.Requires(ac != null && pair != null);
     this.AC  = ac;
     this.EP1 = pair.EntryPoint1;
     this.EP2 = pair.EntryPoint2;
 }
Пример #3
0
 public YieldInstrumentation(AnalysisContext ac, AnalysisContext raceCheckedAc,
                             EntryPointPair pair, ErrorReporter errorReporter)
 {
     Contract.Requires(ac != null && raceCheckedAc != null && pair != null && errorReporter != null);
     this.AC            = ac;
     this.RaceCheckedAC = raceCheckedAc;
     this.Pair          = pair;
     this.ErrorReporter = errorReporter;
 }
Пример #4
0
        public AsyncCheckingInstrumentation(AnalysisContext ac, EntryPointPair pair)
        {
            Contract.Requires(ac != null && pair != null);
            this.AC  = ac;
            this.EP1 = pair.EntryPoint1;
            this.EP2 = pair.EntryPoint2;

            this.AlreadyCalledFuncs = new List <Implementation>();
            this.InParams           = new Dictionary <string, Tuple <int, IdentifierExpr, Variable> >();
        }
Пример #5
0
 public StaticLocksetAnalyser(AnalysisContext ac, EntryPointPair pair, ErrorReporter errorReporter,
                              PipelineStatistics stats)
 {
     Contract.Requires(ac != null && pair != null && errorReporter != null && stats != null);
     this.AC            = ac;
     this.EP1           = pair.EntryPoint1;
     this.EP2           = pair.EntryPoint2;
     this.ErrorReporter = errorReporter;
     this.Stats         = stats;
 }
Пример #6
0
 public PairWiseCheckingInstrumentationEngine(AnalysisContext ac, EntryPointPair pair)
 {
     Contract.Requires(ac != null && pair != null);
     this.AC   = ac;
     this.Pair = pair;
 }
Пример #7
0
 public static IPass CreatePairParameterAliasAnalysis(AnalysisContext ac, EntryPointPair pair)
 {
     return(new PairParameterAliasAnalysis(ac, pair));
 }
Пример #8
0
 public static IPass CreateYieldInstrumentation(AnalysisContext ac, AnalysisContext raceCheckedAc,
                                                EntryPointPair pair, ErrorReporter errorReporter)
 {
     return(new YieldInstrumentation(ac, raceCheckedAc, pair, errorReporter));
 }
Пример #9
0
 public static IPass CreateAsyncCheckingInstrumentation(AnalysisContext ac, EntryPointPair pair)
 {
     return(new AsyncCheckingInstrumentation(ac, pair));
 }
Пример #10
0
 public static IPass CreatePairInstrumentation(AnalysisContext ac, EntryPointPair pair)
 {
     return(new PairInstrumentation(ac, pair));
 }
Пример #11
0
 public ErrorReporter(EntryPointPair pair)
 {
     this.Pair = pair;
     this.UnprotectedResources = new HashSet <string>();
     this.FoundErrors          = false;
 }