Spaces:
Sleeping
Sleeping
Deploy FoxDec research artifacts
Browse filesFiles changed (10)
- .dockerignoreAdded+9
- CCS_artifact.zipAdded+3
- DockerfileAdded+135
- README.md+28-6
- app.pyAdded+81
- catalog.mdAdded+13
- ccs.pyAdded+75
- fetchAdded+4
- requirements.txtAdded+1
- runner.pyAdded+94
123456789**!Dockerfile!fetch!requirements.txt!app.py!runner.py!catalog.md!ccs.py!CCS_artifact.zip123version https://git-lfs.github.com/spec/v1oid sha256:7b27886e28f05c30cc8932acb0f32e07184627f51a2da4b12801ea29f6f7547dsize 376180123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135# syntax=docker/dockerfile:1FROM debian:bookworm-slim AS haskell-buildRUN apt-get update && apt-get install -y --no-install-recommends \ build-essential ca-certificates curl git libgmp-dev libtinfo5 \ unzip xz-utils zlib1g-dev && rm -rf /var/lib/apt/lists/*WORKDIR /buildCOPY --chmod=755 fetch /usr/local/bin/fetchRUN fetch https://github.com/commercialhaskell/stack/releases/download/v3.11.1/stack-3.11.1-linux-x86_64.tar.gz \ 1fda71e657cd8d355625cc66b61b352699279dfee2664c014a392163bd19a952 stack.tar.gz \ && tar -xzf stack.tar.gz --strip-components=1 -C /usr/local/bin stack-3.11.1-linux-x86_64/stack \ && rm stack.tar.gz
FROM haskell-build AS hackage-indexRUN stack update
FROM haskell-build AS foxdec-buildRUN --mount=type=cache,id=foxdec-apt-lists,target=/var/lib/apt/lists,sharing=locked \ --mount=type=cache,id=foxdec-apt-archives,target=/var/cache/apt,sharing=locked \ rm -f /etc/apt/apt.conf.d/docker-clean \ && apt-get update && apt-get install -y --no-install-recommends libncurses-dev
FROM foxdec-build AS quickstartRUN fetch https://raw.githubusercontent.com/ssrg-vt/FoxDec/0abd8c85cda0ccf3da9ef6683acb77a99c04b8b6/foxdec/release/FoxDec.zip \ 783ab34ac419fb00646994db520ab1c943382773002f0797bdbf80592b7ed262 FoxDec.zip \ && unzip -q FoxDec.zip 'FoxDec/foxdec_v0.7.zip' 'FoxDec/binary/wc*' \ && unzip -q FoxDec/foxdec_v0.7.zip 'foxdec_v0.7/*'WORKDIR /build/foxdec_v0.7RUN --mount=type=cache,id=foxdec-ghc-9.6.4,target=/root/.stack/programs,sharing=locked \ --mount=type=cache,id=foxdec-pantry,from=hackage-index,source=/root/.stack/pantry,target=/root/.stack/pantry \ --mount=type=cache,id=foxdec-stack-snapshots,target=/root/.stack/snapshots \ stack --install-ghc --jobs 4 --local-bin-path /opt/quickstart/bin install \ && cp -r config /build/FoxDec/binary /opt/quickstart/
FROM haskell-build AS pldiRUN apt-get update && apt-get install -y --no-install-recommends \ autoconf libtool libcapstone-dev libz3-dev pkg-config \ && rm -rf /var/lib/apt/lists/*RUN fetch https://codeload.github.com/jabocken/SSM-Construction/tar.gz/refs/tags/v2.0.0.2 \ d40756244764495cb08833dfeae55b1044e8e99a9a9888d5eec795053b736d7d ssm.tar.gz \ && tar -xzf ssm.tar.gz --strip-components=1WORKDIR /build/construct-ssmRUN sed -i '/^extra-deps:/a\- c2hs-0.28.8@sha256:c399132e2273e70770be403fba4795d7d8c60d7bd147f0ef174342bebbd44392,9397\n- language-c-0.9.3@sha256:3f3857a3fde8702cd1c268e9b754f889128b591b218dd23995dde96dfdad9e47,3787' stack.yamlRUN --mount=type=cache,id=foxdec-ghc-8.10.4,target=/root/.stack/programs,sharing=locked \ --mount=type=cache,id=foxdec-pantry,from=hackage-index,source=/root/.stack/pantry,target=/root/.stack/pantry \ --mount=type=cache,id=foxdec-stack-snapshots,target=/root/.stack/snapshots \ stack --install-ghc --jobs 4 --local-bin-path /opt/pldi/bin install \ && mkdir /opt/pldi/example \ && cp /build/examples/contrived/simple_local_array/Makefile /build/examples/contrived/simple_local_array/simple_local_array /opt/pldi/example/
FROM haskell-build AS ccs-sourceWORKDIR /build/ccsCOPY CCS_artifact.zip .RUN echo '7b27886e28f05c30cc8932acb0f32e07184627f51a2da4b12801ea29f6f7547d CCS_artifact.zip' | sha256sum -c - \ && unzip -q CCS_artifact.zip 'NASM_generation/foxdec_v0.5.zip' 'NASM_generation/binary/wc*' \ 'NASM_generation/artifacts/nasm/__gmon_start__.c' 'certificate_generation/*.zip' 'isabelle/PCode.thy' \ && unzip -q NASM_generation/foxdec_v0.5.zip -d lift \ && unzip -q certificate_generation/app.zip 'app/*' -d cert \ && unzip -q certificate_generation/scripts.zip 'scripts/*' -d cert
FROM foxdec-build AS ccs-buildWORKDIR /build/ccsRUN fetch https://codeload.github.com/capstone-engine/capstone/tar.gz/refs/tags/4.0.1 \ 79bbea8dbe466bd7d051e037db5961fdb34f67c9fac5c3471dd105cfb1e05dc7 capstone.tar.gz \ && tar -xzf capstone.tar.gz \ && make -C capstone-4.0.1 -j4 CAPSTONE_ARCHS=x86 \ && make -C capstone-4.0.1 CAPSTONE_ARCHS=x86 install \ && ldconfigCOPY --from=ccs-source /build/ccs /build/ccsWORKDIR /build/ccs/liftRUN --mount=type=cache,id=foxdec-ghc-9.6.4,target=/root/.stack/programs,sharing=locked \ --mount=type=cache,id=foxdec-pantry,from=hackage-index,source=/root/.stack/pantry,target=/root/.stack/pantry \ --mount=type=cache,id=foxdec-stack-snapshots,target=/root/.stack/snapshots \ stack --install-ghc --jobs 4 --local-bin-path /opt/foxdec/ccs/bin install \ && cp -r config ../NASM_generation/binary /opt/foxdec/ccs/ \ && cp ../NASM_generation/artifacts/nasm/__gmon_start__.c ../isabelle/PCode.thy /opt/foxdec/ccs/ \ && cp /usr/lib/libcapstone.so.4 /opt/foxdec/ccs/ \ && sed -i -e 's@"/artifacts"@"."@g' -e 's@/Ghidra/@/opt/ghidra/@g' ../cert/app/Main.hs \ && sed -i -e 's@"/Users/nna/GitHub/binary-certificate-generator/app/entry.txt"@"entry.txt"@' \ -e 's@ addr = @ if not arg.strip():\n continue\n addr = @' \ -e 's@arg\[:-1\]@arg.strip()@' ../cert/scripts/DisassembleAddrs.py \ && stack exec -- ghc -package ghc -package extra -package split -i../cert/app \ -outputdir /tmp/cert-build ../cert/app/Main.hs -o /opt/foxdec/ccs/bin/certgen \ && mkdir -p /opt/ghidra && cp -r ../cert/scripts /opt/ghidra/
FROM haskell-build AS ghidraRUN fetch https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_10.3.1_build/ghidra_10.3.1_PUBLIC_20230614.zip \ 0413b679436039cc136b950a6d8c24e80ce79da0a0a48993dfacee671b1c7974 ghidra.zip \ && unzip -q ghidra.zip -d /opt/ghidra
FROM haskell-build AS isabelleRUN fetch https://isabelle.in.tum.de/website-Isabelle2023/dist/Isabelle2023_linux.tar.gz \ 1a8e190ac0f3e6027bb961b954bacd24e75d30f5f5f06f7d14069da57e7746a8 Isabelle2023_linux.tar.gz \ && tar -xzf Isabelle2023_linux.tar.gz -C /optRUN fetch https://isa-afp.org/release/afp-Word_Lib-2023-09-13.tar.gz \ e3c4580e1d1607e2257a837280750480306d9429454bbab6bac159a6732d24c9 word-lib.tar.gz \ && tar -xzf word-lib.tar.gz -C /opt
FROM python:3.11-slim-bookworm AS ccs-runtimeRUN apt-get update && apt-get install -y --no-install-recommends \ binutils gcc graphviz libgmp10 libitm1 libtinfo5 libc6-dev nasm openjdk-17-jdk-headless tini \ && rm -rf /var/lib/apt/lists/* \ && useradd --create-home --uid 1000 userFROM ccs-runtime AS ccs-validationCOPY --from=ccs-build /opt/foxdec/ccs /opt/foxdec/ccsCOPY --from=ccs-build --chmod=644 /build/ccs/lift/LICENSE /opt/foxdec/ccs/LICENSECOPY --from=ccs-build /opt/ghidra/scripts /opt/ghidra/scriptsCOPY --from=ghidra /opt/ghidra /opt/ghidraCOPY --from=isabelle /opt/Isabelle2023 /opt/Isabelle2023COPY --from=isabelle /opt/Word_Lib /opt/Word_LibENV LD_LIBRARY_PATH=/opt/foxdec/ccsWORKDIR /home/user/appCOPY runner.py ccs.py ./USER userENTRYPOINT ["/usr/bin/tini", "--", "python", "ccs.py"]
FROM python:3.11-slim-bookworm AS spaceRUN --mount=type=cache,id=foxdec-apt-lists,target=/var/lib/apt/lists,sharing=locked \ --mount=type=cache,id=foxdec-apt-archives,target=/var/cache/apt,sharing=locked \ rm -f /etc/apt/apt.conf.d/docker-clean \ && apt-get update && apt-get install -y --no-install-recommends \ binutils graphviz libcapstone4 libgmp10 libgomp1 libtinfo5 libz3-4 make time tini \ && useradd --create-home --uid 1000 userCOPY requirements.txt /tmp/requirements.txtRUN --mount=type=cache,id=foxdec-pip,target=/root/.cache/pip \ pip install -r /tmp/requirements.txtCOPY --from=quickstart /opt/quickstart /opt/foxdec/quickstartCOPY --from=pldi /opt/pldi /opt/foxdec/pldiCOPY --from=quickstart --chmod=644 /build/foxdec_v0.7/LICENSE /opt/foxdec/quickstart/LICENSECOPY --from=pldi --chmod=644 /build/construct-ssm/LICENSE /opt/foxdec/pldi/LICENSEWORKDIR /home/user/appCOPY app.py runner.py catalog.md ./USER userEXPOSE 7860ENTRYPOINT ["/usr/bin/tini", "--"]CMD ["python", "app.py"]12345678910---title: Foxdecemoji: 🦀colorFrom: bluecolorTo: greensdk: dockerpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference1234567891011121314151617181920212223242526272829303132---title: FoxDec research artifactsemoji: 🦊colorFrom: yellowcolorTo: graysdk: dockerapp_port: 7860---# FoxDec research artifactsRun the FoxDec v0.7 `wc` quickstart or the PLDI 2022 `simple_local_array` example. The app runs one job at a time, gives each run up to five minutes, and displays generated results in the page. The [artifact catalog](catalog.md) links to the original papers and reproduction packages.## Run locally```shdocker build --platform linux/amd64 -t foxdec-space .docker run --rm --cpus 2 --memory 16g -p 127.0.0.1:7860:7860 foxdec-space```Open [the local Space](http://127.0.0.1:7860), select an example, and choose **Run**. The PLDI example uses the binary supplied with the tagged release and generates its analysis and diagnostics using the upstream Makefile. The tagged release records an unresolved return address and a nonzero exit for this example. The app displays the analysis and diagnostics when it reproduces that outcome.## CCS 2024 certificate validationThe build uses the separately archived paper artifact, distributed under CC BY 4.0. The archive credits Freek Verbeek for the embedded FoxDec release under CC BY-SA 4.0. The build copies only the original input, the generator and the common P-Code theory into the validation image. It generates the certificate inside a fresh job directory. [CCS 2024 artifact](https://zenodo.org/records/12721325)```shdocker build --platform linux/amd64 --target ccs-validation -t foxdec-ccs .docker run --rm --cpus 2 --memory 16g foxdec-ccs 900```The command accepts a time limit in seconds and prints stage timings and Isabelle’s verification log.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081import loggingfrom html import escapefrom pathlib import Pathfrom tempfile import TemporaryDirectoryfrom time import monotonic
import gradio as gr
from runner import DEADLINE, pldi, quickstart, read_preview
EXAMPLES = { "FoxDec v0.7 · wc": quickstart, "PLDI 2022 · simple_local_array": pldi,}logger = logging.getLogger(__name__)
def prepare(): return "Queued", "", gr.update(interactive=False)
def display_results(work, files): sections = [] for index, path in enumerate(files): name = escape(path.relative_to(work).as_posix()) content = escape(path.read_text(errors="replace")) or "No output." expanded = " open" if index == 0 else "" sections.append(f"<details{expanded}><summary>{name}</summary><pre>{content}</pre></details>") return '<div class="foxdec-results">' + "".join(sections) + "</div>"
def run_example(example): yield "Running", "", gr.update(interactive=False) if example not in EXAMPLES: yield "Choose an available example.", "", gr.update(interactive=True) return
started = monotonic() deadline = started + DEADLINE with TemporaryDirectory(prefix="foxdec-job-") as directory: work = Path(directory) log = work / "run.log" try: note, files = EXAMPLES[example](work, log, deadline) results = display_results(work, files) status = f"Completed in {monotonic() - started:.1f}s{note}" except (OSError, RuntimeError) as error: if isinstance(error, TimeoutError): status = str(error) else: logger.exception("FoxDec job failed") status = f"Failed. {error}" diagnostics = (log, work / "simple_local_array.err") message = "\n".join(filter(None, (read_preview(path, tail=True) for path in diagnostics))) results = f'<div class="foxdec-results"><pre>{escape(message)}</pre></div>' if message else "" yield status, results, gr.update(interactive=True)
with gr.Blocks( title="FoxDec research artifacts", css=".foxdec-results pre { max-height: 32rem; overflow: auto; } " ".foxdec-results details { margin-bottom: .75rem; }", analytics_enabled=False,) as demo: gr.Markdown("# FoxDec research artifacts") with gr.Row(): example = gr.Dropdown(list(EXAMPLES), value=next(iter(EXAMPLES)), label="Example") run = gr.Button("Run", variant="primary", scale=0) status = gr.Textbox(label="Status", interactive=False) results = gr.HTML() with gr.Accordion("Artifact catalog", open=False): gr.Markdown(Path(__file__).with_name("catalog.md").read_text())
outputs = [status, results, run] run.click(prepare, outputs=outputs, queue=False, api_name=False).then( run_example, example, outputs, concurrency_limit=1, api_name="run", )
if __name__ == "__main__": demo.queue().launch(server_name="0.0.0.0", server_port=7860)12345678910111213Runnable examples generate fresh results. Catalog entries link to the papers and their reproduction materials.
| Example or paper | What it covers | Availability || --- | --- | --- || FoxDec v0.7 quickstart | Lifts the bundled `wc` to NASM and generates metrics, a call graph and per-function results. [Quickstart](https://ssrg-vt.github.io/FoxDec/#how-to-use) · [Pinned release ZIP](https://github.com/ssrg-vt/FoxDec/blob/0abd8c85cda0ccf3da9ef6683acb77a99c04b8b6/foxdec/release/FoxDec.zip) | Runnable || PLDI 2022 · Formally Verified Lifting of C-compiled x86-64 Binaries | Runs the symbolic state analysis on the bundled `simple_local_array` example. [Paper](https://doi.org/10.1145/3519939.3523702) · [Tagged artifact](https://github.com/jabocken/SSM-Construction/releases/tag/v2.0.0.2) · [Benchmark instructions](https://github.com/jabocken/SSM-Construction/tree/v2.0.0.2#running-test-cases) · [Isabelle instructions](https://github.com/jabocken/SSM-Construction/blob/v2.0.0.2/isabelle/README) | Example runnable. Full benchmark and proofs available upstream. || CCS 2024 · Verifiably Correct Lifting of Position-Independent x86-64 Binaries to Symbolized Assembly | Lifts the paper’s `wc` with FoxDec v0.5, recompiles it, generates an equivalence certificate with Ghidra and checks it in Isabelle2023. [Paper](https://doi.org/10.1145/3658644.3690244) · [Archived artifact and instructions](https://zenodo.org/records/12721325) | Catalog only pending end-to-end certificate verification. || ICSE 2025 · Formally Verified Binary-level Pointer Analysis | Binary-level pointer analysis, benchmark cases and Isabelle/HOL proofs. [Paper](https://arxiv.org/abs/2501.17766) · [Artifact](https://doi.org/10.5281/zenodo.14223108) | Catalog only || DIMVA 2024 · Exceptional Interprocedural Control Flow Graphs for x86-64 Binaries | Recovers control flow for C++ exceptions in x86-64 binaries. [Paper](https://ssrg.ece.vt.edu/papers/dimva24.pdf) · [Artifact](https://doi.org/10.5281/zenodo.11081942) | Catalog only || CCS 2024 poster · Formally Verified Binary Lifting to P-Code | Uses Isabelle to study whether lifting x86-64 assembly to Ghidra P-Code preserves instruction behavior. [Poster paper](https://doi.org/10.1145/3658644.3691386) | Catalog only || TAP 2023 · BIRD | Coq formalization of an intermediate representation for x86-64 decompilation. [Paper](https://ssrg.ece.vt.edu/papers/tap23-bird.pdf) · [Coq artifact](https://zenodo.org/records/7928216) | Catalog only || VSTTE 2022 · A Formal Semantics for P-Code | Defines an executable semantics for extended Ghidra P-Code. [Paper](https://doi.org/10.1007/978-3-031-25803-9_7) · [Haskell interpreter](https://github.com/niconaus/pcode-interpreter) · [Ghidra export script](https://github.com/niconaus/PCode-Dump) | Catalog only || SEFM 2020 · Sound C Code Decompilation for a Subset of x86-64 Binaries | Formalizes three phases of x86-64 decompilation to C. [Paper](https://www.ssrg.ece.vt.edu/papers/sefm20.pdf) · [Project materials](https://ssrg-vt.github.io/FoxDec/#foxdec-10-decompilation-to-c) | Catalog only |123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475import shutilimport sysfrom pathlib import Pathfrom tempfile import TemporaryDirectoryfrom time import monotonic
from runner import ROOT, lift, read_preview, require_outputs, run_command
TOOL = ROOT / "ccs"
def stages(work, deadline): log = work / "run.log" lift(TOOL, work, log, deadline, ["--GNASM"]) nasm = work / "nasm" assembly = nasm / "wc.asm" mapping = nasm / "wc.map" require_outputs(assembly, mapping) yield "Lifted wc to NASM"
shutil.copyfile(TOOL / "__gmon_start__.c", nasm / "__gmon_start__.c") run_command(["nasm", "-felf64", "-g", "-F", "dwarf", "-o", "wc.o", "wc.asm"], nasm, log, deadline) run_command(["gcc", "-c", "__gmon_start__.c", "-o", "__gmon_start__.o"], nasm, log, deadline) run_command(["gcc", "-g", "-m64", "-nostartfiles", "-fgnu-tm", "-o", "a.out", "wc.o", "__gmon_start__.o"], nasm, log, deadline) require_outputs(nasm / "a.out") yield "Recompiled the NASM"
certificate = work / "certificate" certificate.mkdir() run_command([TOOL / "bin/certgen", "../wc", "../nasm/a.out", "../nasm/wc.map"], certificate, log, deadline) blocks = sorted(certificate.glob("PCode_wc_*_*.thy")) if not blocks: raise RuntimeError("The generator produced no block theories.") require_outputs(certificate / "PCode_wc.thy", certificate / "PCode_wc_mapping.thy", *blocks) yield "Generated the certificate with Ghidra"
shutil.copyfile(TOOL / "PCode.thy", certificate / "PCode.thy") (certificate / "ROOT").write_text( 'session FoxDec_Certificate = HOL +\n' ' options [document = false, quick_and_dirty = false]\n' ' sessions "HOL-Library" "HOL-Eisbach" Word_Lib\n' ' theories PCode_wc\n' ) verification = work / "verification.log" run_command( ["/opt/Isabelle2023/bin/isabelle", "build", "-c", "-v", "-o", "threads=2", "-d", "/opt/Word_Lib", "-D", ".", "FoxDec_Certificate"], certificate, verification, deadline, ) yield "Isabelle2023 verified PCode_wc.thy" return [verification, assembly, mapping, *sorted(certificate.glob("*.thy")), certificate / "ROOT", log, ]
def main(timeout): start = monotonic() with TemporaryDirectory(prefix="foxdec-ccs-") as directory: work = Path(directory) steps = stages(work, start + float(timeout)) try: while True: print(f"{monotonic() - start:.1f}s · {next(steps)}", flush=True) except StopIteration: print(read_preview(work / "verification.log", tail=True)) except (RuntimeError, TimeoutError, OSError): for log in ("run.log", "verification.log"): print(read_preview(work / log, tail=True), file=sys.stderr) raise
if __name__ == "__main__": main(*sys.argv[1:])1234#!/bin/shset -eucurl --fail --location --silent --show-error --http1.1 --retry 3 --retry-all-errors "$1" -o "$3"printf '%s %s\n' "$2" "$3" | sha256sum --check -1gradio==5.49.112345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394import osimport shutilimport signalimport subprocessfrom pathlib import Pathfrom time import monotonic
ROOT = Path("/opt/foxdec")DEADLINE = 300
def read_preview(path, *, tail=False): if not path.is_file(): return "" with path.open("rb") as stream: size = stream.seek(0, os.SEEK_END) stream.seek(max(0, size - 12_000) if tail else 0) preview = stream.read(12_000).decode(errors="replace").strip() if size <= 12_000: return preview return "…\n" + preview if tail else preview + "\n…"
class CommandError(RuntimeError): def __init__(self, command, code): super().__init__(f"{Path(command).name} exited with status {code}.") self.code = code
def run_command(args, work, log, deadline, *, env=None): if monotonic() >= deadline: raise TimeoutError("The job reached its time limit.") with log.open("ab") as output: with subprocess.Popen( args, cwd=work, env=env, stdout=output, stderr=subprocess.STDOUT, stdin=subprocess.DEVNULL, start_new_session=True, ) as process: try: code = process.wait(timeout=max(0, deadline - monotonic())) except subprocess.TimeoutExpired: raise TimeoutError("The job reached its time limit.") from None finally: try: os.killpg(process.pid, signal.SIGKILL) except ProcessLookupError: pass if code: raise CommandError(args[0], code)
def require_outputs(*paths): for path in paths: if not path.is_file() or not path.stat().st_size: raise RuntimeError(f"Expected output was missing or empty: {path.name}.")
def lift(tool, work, log, deadline, options): for name in ("wc", "wc.entry"): shutil.copyfile(tool / "binary" / name, work / name) run_command( [tool / "bin/foxdec-exe", "-c", tool / "config/config.dhall", "-d", "./", "-n", "wc", "-i", "BINARY", *options], work, log, deadline, )
def quickstart(work, log, deadline): lift(ROOT / "quickstart", work, log, deadline, ["--Gmetrics", "--Gcallgraph", "--Gfuncs", "--GNASM"]) files = [work / name for name in ("wc.metrics.txt", "wc.callgraph.dot", "nasm/wc.asm")] functions = sorted((work / "functions").glob("*/*")) if not functions: raise RuntimeError("FoxDec produced no per-function results.") require_outputs(*files, *functions) return "", [*files, *functions, log]
def pldi(work, log, deadline): tool = ROOT / "pldi" shutil.copytree(tool / "example", work, dirs_exist_ok=True) env = dict(os.environ, PATH=f"{tool / 'bin'}:{os.environ['PATH']}") analysis, diagnostics = (work / f"simple_local_array.{ext}" for ext in ("out", "err")) note = "" try: run_command(["make"], work, log, deadline, env=env) except CommandError as error: expected = "construct-ssm: Don't know where to return: val == 64varRSP00, pred ==" if error.code != 2 or not read_preview(diagnostics).startswith(expected): raise note = " · Reproduced the release’s unresolved return diagnostic." require_outputs(analysis) if not diagnostics.is_file(): raise RuntimeError("The PLDI example produced no diagnostics file.") return note, [analysis, diagnostics, log].dockerignoreAdded+9
CCS_artifact.zipAdded+3
DockerfileAdded+135
README.md+28-6
app.pyAdded+81
catalog.mdAdded+13
ccs.pyAdded+75
fetchAdded+4
requirements.txtAdded+1
runner.pyAdded+94