svf-lib 1.0.765 → 1.0.769

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -487,28 +487,28 @@ protected:
487
487
  {
488
488
  AddrVFGNode* sNode = new AddrVFGNode(totalVFGNode++,addr);
489
489
  addStmtVFGNode(sNode, addr);
490
- setDef(addr->getDstNode(),sNode);
490
+ setDef(addr->getLHSVar(),sNode);
491
491
  }
492
492
  /// Add a Copy VFG node
493
493
  inline void addCopyVFGNode(const CopyStmt* copy)
494
494
  {
495
495
  CopyVFGNode* sNode = new CopyVFGNode(totalVFGNode++,copy);
496
496
  addStmtVFGNode(sNode, copy);
497
- setDef(copy->getDstNode(),sNode);
497
+ setDef(copy->getLHSVar(),sNode);
498
498
  }
499
499
  /// Add a Gep VFG node
500
500
  inline void addGepVFGNode(const GepStmt* gep)
501
501
  {
502
502
  GepVFGNode* sNode = new GepVFGNode(totalVFGNode++,gep);
503
503
  addStmtVFGNode(sNode, gep);
504
- setDef(gep->getDstNode(),sNode);
504
+ setDef(gep->getLHSVar(),sNode);
505
505
  }
506
506
  /// Add a Load VFG node
507
507
  void addLoadVFGNode(const LoadStmt* load)
508
508
  {
509
509
  LoadVFGNode* sNode = new LoadVFGNode(totalVFGNode++,load);
510
510
  addStmtVFGNode(sNode, load);
511
- setDef(load->getDstNode(),sNode);
511
+ setDef(load->getLHSVar(),sNode);
512
512
  }
513
513
  /// Add a Store VFG node,
514
514
  /// To be noted store does not create a new pointer, we do not set def for any SVFIR node