diff options
| author | Theofilos Augoustis <theofilos.augoustis@tum.de> | 2025-08-28 13:31:51 +0000 |
|---|---|---|
| committer | Theofilos Augoustis <theofilos.augoustis@tum.de> | 2025-08-28 13:31:51 +0000 |
| commit | 1ed51b9a902d7669c4dd26edf1a75d79c888bef4 (patch) | |
| tree | 30ecfa2ce98474fd4447d2dcf1814d4c16661602 /tools/capture_transforms.py | |
| parent | ff3c9a0136b1b308a06d01108157146cc315274b (diff) | |
| download | focaccia-1ed51b9a902d7669c4dd26edf1a75d79c888bef4.tar.gz focaccia-1ed51b9a902d7669c4dd26edf1a75d79c888bef4.zip | |
Refactor tool handling to match flake system
Diffstat (limited to 'tools/capture_transforms.py')
| -rwxr-xr-x | tools/capture_transforms.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tools/capture_transforms.py b/tools/capture_transforms.py deleted file mode 100755 index 552b855..0000000 --- a/tools/capture_transforms.py +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env python3 - -import argparse - -from focaccia import parser, utils -from focaccia.symbolic import collect_symbolic_trace -from focaccia.trace import TraceEnvironment - -def main(): - prog = argparse.ArgumentParser() - prog.description = 'Trace an executable concolically to capture symbolic' \ - ' transformations among instructions.' - prog.add_argument('binary', help='The program to analyse.') - prog.add_argument('args', action='store', nargs=argparse.REMAINDER, - help='Arguments to the program.') - prog.add_argument('-o', '--output', - default='trace.out', - help='Name of output file. (default: trace.out)') - args = prog.parse_args() - - env = TraceEnvironment(args.binary, args.args, utils.get_envp()) - trace = collect_symbolic_trace(env, None) - with open(args.output, 'w') as file: - parser.serialize_transformations(trace, file) - -if __name__ == "__main__": - main() |