6adb63b915
date: 2026-06-04T09:49:56 master commit: c0ab3550eca2e9daf197c46b7e4b24aa9637cf2e
14 lines
377 B
Python
Executable File
14 lines
377 B
Python
Executable File
#!/usr/bin/env python3
|
|
# extract asts from process replay artifacts
|
|
import os
|
|
from test.external.process_replay.process_replay import _pmap
|
|
|
|
LOGOPS = os.getenv("LOGOPS", "/tmp/sops")
|
|
|
|
def extract_ast(*args) -> None:
|
|
open(LOGOPS, "a").write(str(args[1]).replace("\n", "").replace(" ", "")+"\n")
|
|
return None
|
|
|
|
if __name__ == "__main__":
|
|
_pmap({"do_to_program":extract_ast})
|