Skip to content

Commit fe4a572

Browse files
committed
wip
Signed-off-by: Hanno Becker <beckphan@amazon.co.uk>
1 parent b0d176e commit fe4a572

4 files changed

Lines changed: 17 additions & 15 deletions

File tree

.github/actions/cbmc/report.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,14 @@ def classify_proof(r, baseline_runtimes, cfg):
104104
# Solver could not decide -- not a real failure, not a regression.
105105
if r.get("status") == "inconclusive":
106106
prev = (
107-
f"{base_val}s" if base_val
108-
else "failed" if base_failed
109-
else "inconclusive" if base_inconclusive
110-
else "omitted" if base_omitted
107+
f"{base_val}s"
108+
if base_val
109+
else "failed"
110+
if base_failed
111+
else "inconclusive"
112+
if base_inconclusive
113+
else "omitted"
114+
if base_omitted
111115
else "-"
112116
)
113117
# Was passing in the baseline, now inconclusive: surface as a warning.
@@ -165,8 +169,7 @@ def compute_total_runtime(data):
165169
return sum(
166170
r["value"]
167171
for r in data.get("runtimes", [])
168-
if r.get("status") not in ("failed", "omitted", "inconclusive")
169-
and "value" in r
172+
if r.get("status") not in ("failed", "omitted", "inconclusive") and "value" in r
170173
)
171174

172175

flake.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
let
2424
pkgs-unstable = inputs.nixpkgs-unstable.legacyPackages.${system};
2525
util = pkgs.callPackage ./nix/util.nix {
26-
inherit (pkgs) bitwuzla cvc5 z3;
27-
inherit (pkgs-unstable) cbmc;
26+
inherit (pkgs) bitwuzla z3;
27+
inherit (pkgs-unstable) cbmc cvc5;
2828
# TODO: switch back to stable python3 for slothy once ortools is fixed in 25.11
2929
python3-for-slothy = pkgs-unstable.python3;
3030
};
@@ -232,8 +232,8 @@
232232
pkgs-unstable = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux;
233233
util = pkgs.callPackage ./nix/util.nix {
234234
inherit pkgs;
235-
inherit (pkgs) bitwuzla cvc5 z3;
236-
inherit (pkgs-unstable) cbmc;
235+
inherit (pkgs) bitwuzla z3;
236+
inherit (pkgs-unstable) cbmc cvc5;
237237
# TODO: switch back to stable python3 for slothy once ortools is fixed in 25.11
238238
python3-for-slothy = pkgs-unstable.python3;
239239
};

nix/cbmc/default.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ buildEnv {
3535
hash = "sha256-Lw037Z0t0ySxkgMXkbjNW5CB4QQLRrrSEBsLJqiomZ4=";
3636
};
3737
});
38-
3938
inherit
4039
bitwuzla# 0.8.2
41-
cvc5# 1.3.2
40+
cvc5# 1.3.3 (taken from nixpkgs-unstable -- see flake.nix)
4241
ninja; # 1.13.2
4342
};
4443
}

proofs/cbmc/lib/summarize.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ def _parse_proof_pipeline(proof_pipeline):
122122
# wrapper_arguments (the args passed to `litani add-job`).
123123
wa = job.get("wrapper_arguments") or {}
124124
desc = wa.get("description") or ""
125-
if desc.endswith(": checking safety properties") and _is_solver_inconclusive(
126-
wa.get("stdout_file")
127-
):
125+
if desc.endswith(
126+
": checking safety properties"
127+
) and _is_solver_inconclusive(wa.get("stdout_file")):
128128
inconclusive = True
129129

130130
if has_timeout:

0 commit comments

Comments
 (0)