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

Add Callgraph #185

Merged
merged 58 commits into from
Nov 6, 2024
Merged
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
5d8727d
fix: Draft Pr for check CallGraph
Esorat Oct 17, 2024
57bc931
chore: spell for pass ci
Esorat Oct 17, 2024
27ffbba
fix: remove unused export from class
Esorat Oct 17, 2024
b2c2cf0
fix: make properties public
Esorat Oct 18, 2024
26d582f
fix: add callGraph to ir CompilationUnit. When building the IR and c…
Esorat Oct 18, 2024
3c07cec
fix: add switch case, add forEachExpression for processExpressions, u…
Esorat Oct 18, 2024
b5b93e3
fix: add case statement_augmentedassign
Esorat Oct 18, 2024
0b8cb2b
fix: del test/good folder
Esorat Oct 18, 2024
a8f31b1
fix: enhance CallGraph with efficient edge tracking and lookup
Esorat Oct 18, 2024
12a0817
chore: remove extra newlines
Esorat Oct 18, 2024
fd02604
fix: back areConnected func
Esorat Oct 18, 2024
2ce8095
fix: add BFS to areConnected function
Esorat Oct 18, 2024
4695954
fix: add dumpCallgraph
Esorat Oct 19, 2024
8e1b8eb
fix: remake CallGraph add type Aliases.
Esorat Oct 19, 2024
c127dc5
fix: Callgraph export type.
Esorat Oct 20, 2024
5ee3309
chore: enabledByDefault: false
Esorat Oct 20, 2024
608a0d2
chore: remove export { TactASTStore };
Esorat Oct 20, 2024
2ff1b58
Merge remote-tracking branch 'upstream/master' into 91-add-callgraph
Esorat Oct 20, 2024
135e42b
fix: add correct export and import
Esorat Oct 20, 2024
2b47fb0
chore: fix spell
Esorat Oct 20, 2024
879708d
chore: update CHANGELOG
Esorat Oct 20, 2024
7ed87d8
chore: add expected files for test
Esorat Oct 20, 2024
277fc3a
Update CHANGELOG.md
jubnzv Oct 20, 2024
d2a8663
Update src/tools/dumpCallgraph.ts
jubnzv Oct 20, 2024
b7a7c6c
Update src/tools/dumpCallgraph.ts
jubnzv Oct 20, 2024
8c23973
fix: refactor
Esorat Oct 20, 2024
a70024d
Merge branch '91-add-callgraph' of https://github.com/Esorat/misti in…
Esorat Oct 20, 2024
b3411fe
fix: pass ci test
Esorat Oct 20, 2024
7a795db
Merge remote-tracking branch 'upstream' into 91-add-callgraph
Esorat Oct 25, 2024
eea2ec4
fix: remove dublicate and add needed expected output
Esorat Oct 25, 2024
ddba926
Merge remote-tracking branch 'upstream' into 91-add-callgraph
Esorat Oct 27, 2024
997056d
WIP: Refactoring
Esorat Oct 28, 2024
f2db6b9
fix: refactor dumpCallgraph
Esorat Oct 31, 2024
364460e
fix: dumpCallgraph
Esorat Oct 31, 2024
30ff0ec
fix: Update Callgraph and dumpCallgraph
Esorat Nov 2, 2024
7a7c5d3
fix: Refactor logic. Add branded types. Docstrings.
Esorat Nov 3, 2024
e393e1e
Merge remote-tracking branch 'upstream' into 91-add-callgraph
Esorat Nov 4, 2024
e18aa54
Fix: Refactor
Esorat Nov 4, 2024
82eb520
Fix: add 'make' for consistency with other builders.
Esorat Nov 6, 2024
f1e7a23
Chore: Add a proper docstring for the areConnected method
Esorat Nov 6, 2024
e4a9fec
Fix: Remove return undefined because unreachable throws.
Esorat Nov 6, 2024
d3d0397
Fix: Documented undefined value. Add logger.debug
Esorat Nov 6, 2024
ec66e96
Chore: Add needed docstring for parts of the public API
Esorat Nov 6, 2024
dc0a489
Chore: Update CHANGELOG
Esorat Nov 6, 2024
818b826
Update CHANGELOG.md
jubnzv Nov 6, 2024
0f59933
Update src/internals/ir/callGraph.ts
jubnzv Nov 6, 2024
76b8753
Update src/internals/ir/callGraph.ts
jubnzv Nov 6, 2024
5932983
Update src/internals/ir/callGraph.ts
Esorat Nov 6, 2024
53ddeb2
Update src/internals/ir/callGraph.ts
Esorat Nov 6, 2024
89294c1
Update src/internals/ir/callGraph.ts
Esorat Nov 6, 2024
8fe7500
Update src/internals/ir/callGraph.ts
Esorat Nov 6, 2024
33cae65
Update src/internals/ir/callGraph.ts
Esorat Nov 6, 2024
94da560
Update src/internals/ir/callGraph.ts
Esorat Nov 6, 2024
3145037
Update src/internals/ir/callGraph.ts
Esorat Nov 6, 2024
08b21c0
Chore: yarn fix-all
Esorat Nov 6, 2024
d780e4a
Update src/internals/ir/callGraph.ts
jubnzv Nov 6, 2024
e65a098
Update src/internals/ir/callGraph.ts
jubnzv Nov 6, 2024
95359b8
Update src/internals/ir/callGraph.ts
jubnzv Nov 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/internals/ir/callGraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
AstStructFieldInitializer,
} from "@tact-lang/compiler/dist/grammar/ast";

export class CGEdge {
class CGEdge {
Esorat marked this conversation as resolved.
Show resolved Hide resolved
public idx: number;
constructor(
public src: number,
Expand All @@ -21,7 +21,7 @@ export class CGEdge {
}
}

export class CGNode {
class CGNode {
public idx: number;
Esorat marked this conversation as resolved.
Show resolved Hide resolved
constructor(
public astId: number,
Esorat marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
Loading