Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Extended call graph #5288

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

fabiomadge
Copy link
Collaborator

@fabiomadge fabiomadge commented Apr 3, 2024

This PR extends the call graph with calls to other modules, thus removing the need for InterModularCallGraph. It also add a new print mode targeting the dot format for call graphs accessed with /dotCallGraph.

module Client { 
  import Util
  import Math // below Util

  function X(x: int): int { 0 }

  function Z(x: int): int { Math.Sqrt(X(x)) }

  class C extends Util.T {
    function Process(x: int): int {
      Z(x)
    }

    function Y(i: int): int {
      this.Process(i)
    }
  }
}
module Util {
  trait {:termination false} T {
    function Process(x: int): int 
  }
}
module Math {
  function Sqrt(x: int): int
}

graphviz-2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant