1212package boomerang ;
1313
1414import boomerang .scene .CallGraph ;
15+ import boomerang .scene .ControlFlowGraph .Edge ;
1516import boomerang .scene .DataFlowScope ;
1617import boomerang .scene .Field ;
17- import boomerang .scene .Statement ;
1818import boomerang .scene .Val ;
1919import sync .pds .solver .OneWeightFunctions ;
2020import sync .pds .solver .WeightFunctions ;
2121import wpds .impl .Weight ;
2222
2323public class Boomerang extends WeightedBoomerang <Weight .NoWeight > {
2424
25- private OneWeightFunctions <Statement , Val , Field , Weight .NoWeight > fieldWeights ;
26- private OneWeightFunctions <Statement , Val , Statement , Weight .NoWeight > callWeights ;
25+ private OneWeightFunctions <Edge , Val , Field , Weight .NoWeight > fieldWeights ;
26+ private OneWeightFunctions <Edge , Val , Edge , Weight .NoWeight > callWeights ;
2727
2828 public Boomerang (CallGraph callGraph , DataFlowScope scope ) {
2929 super (callGraph , scope );
@@ -34,34 +34,34 @@ public Boomerang(CallGraph callGraph, DataFlowScope scope, BoomerangOptions opt)
3434 }
3535
3636 @ Override
37- protected WeightFunctions <Statement , Val , Field , Weight .NoWeight > getForwardFieldWeights () {
37+ protected WeightFunctions <Edge , Val , Field , Weight .NoWeight > getForwardFieldWeights () {
3838 return getOrCreateFieldWeights ();
3939 }
4040
4141 @ Override
42- protected WeightFunctions <Statement , Val , Field , Weight .NoWeight > getBackwardFieldWeights () {
42+ protected WeightFunctions <Edge , Val , Field , Weight .NoWeight > getBackwardFieldWeights () {
4343 return getOrCreateFieldWeights ();
4444 }
4545
4646 @ Override
47- protected WeightFunctions <Statement , Val , Statement , Weight .NoWeight > getBackwardCallWeights () {
47+ protected WeightFunctions <Edge , Val , Edge , Weight .NoWeight > getBackwardCallWeights () {
4848 return getOrCreateCallWeights ();
4949 }
5050
5151 @ Override
52- protected WeightFunctions <Statement , Val , Statement , Weight .NoWeight > getForwardCallWeights (
52+ protected WeightFunctions <Edge , Val , Edge , Weight .NoWeight > getForwardCallWeights (
5353 ForwardQuery sourceQuery ) {
5454 return getOrCreateCallWeights ();
5555 }
5656
57- private WeightFunctions <Statement , Val , Field , Weight .NoWeight > getOrCreateFieldWeights () {
57+ private WeightFunctions <Edge , Val , Field , Weight .NoWeight > getOrCreateFieldWeights () {
5858 if (fieldWeights == null ) {
5959 fieldWeights = new OneWeightFunctions <>(Weight .NO_WEIGHT_ONE );
6060 }
6161 return fieldWeights ;
6262 }
6363
64- private WeightFunctions <Statement , Val , Statement , Weight .NoWeight > getOrCreateCallWeights () {
64+ private WeightFunctions <Edge , Val , Edge , Weight .NoWeight > getOrCreateCallWeights () {
6565 if (callWeights == null ) {
6666 callWeights = new OneWeightFunctions <>(Weight .NO_WEIGHT_ONE );
6767 }
0 commit comments