MCPcopy Create free account
hub / github.com/CheckPointSW/Karta / analyzeFile

Function analyzeFile

src/karta_analyze_src.py:48–56  ·  view source on GitHub ↗

Analyze a single file using analyzer script. Args: full_file_path (str): full path to the specific (*.obj / *.o) file is_windows (bool): True iff a windows compilation (*.obj or *.o)

(full_file_path, is_windows)

Source from the content-addressed store, hash-verified

46 yield os.path.abspath(os.path.join(root, file)), file
47
48def analyzeFile(full_file_path, is_windows):
49 """Analyze a single file using analyzer script.
50
51 Args:
52 full_file_path (str): full path to the specific (*.obj / *.o) file
53 is_windows (bool): True iff a windows compilation (*.obj or *.o)
54 """
55 database_path = disas_cmd.createDatabase(full_file_path, is_windows)
56 disas_cmd.executeScript(database_path, SCRIPT_PATH)
57
58def resolveUnknowns():
59 """Resolve "unknown" references between the different compiled files."""

Callers 1

analyzeLibraryFunction · 0.70

Calls 2

createDatabaseMethod · 0.45
executeScriptMethod · 0.45

Tested by

no test coverage detected