|
6 | 6 | # |
7 | 7 | # Copyright (c) 2017-2020 Kestrel Technology LLC |
8 | 8 | # Copyright (c) 2020-2022 Henny B. Sipma |
9 | | -# Copyright (c) 2023-2024 Aarno Labs LLC |
| 9 | +# Copyright (c) 2023-2025 Aarno Labs LLC |
10 | 10 | # |
11 | 11 | # Permission is hereby granted, free of charge, to any person obtaining a copy |
12 | 12 | # of this software and associated documentation files (the "Software"), to deal |
@@ -1331,6 +1331,30 @@ def get_spo_xnode( |
1331 | 1331 | filename, "function", "Secondary proof obligations file", show=False) |
1332 | 1332 |
|
1333 | 1333 |
|
| 1334 | +def get_adg_filename( |
| 1335 | + targetpath: str, |
| 1336 | + projectname: str, |
| 1337 | + cfilepath: Optional[str], |
| 1338 | + cfilename: str, |
| 1339 | + fnname: str) -> str: |
| 1340 | + fnpath = get_cfile_fnpath( |
| 1341 | + targetpath, projectname, cfilepath, cfilename, fnname) |
| 1342 | + filename = get_fn_composite(cfilename, fnname, "adg") |
| 1343 | + return os.path.join(fnpath, filename) |
| 1344 | + |
| 1345 | + |
| 1346 | +def get_adg_xnode( |
| 1347 | + targetpath: str, |
| 1348 | + projectname: str, |
| 1349 | + cfilepath: Optional[str], |
| 1350 | + cfilename: str, |
| 1351 | + fnname: str) -> Optional[ET.Element]: |
| 1352 | + filename = get_adg_filename( |
| 1353 | + targetpath, projectname, cfilepath, cfilename, fnname) |
| 1354 | + return get_xnode( |
| 1355 | + filename, "function", "Analysis digests file", show=False) |
| 1356 | + |
| 1357 | + |
1334 | 1358 | def save_spo_file( |
1335 | 1359 | targetpath: str, |
1336 | 1360 | projectname: str, |
|
0 commit comments