Skip to content

Commit 4d8a9f2

Browse files
committed
ci: based on merge_results-core.json with MergeHashKaniList updated
1 parent b5b4c25 commit 4d8a9f2

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

ui/app/components/Kani.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ type ModName = { name: string, n: number };
4141
const selectedMods = ref<string[]>([]);
4242
const mod_names = computed<ModName[]>(() => {
4343
return Object.entries(
44-
raw.value.reduce((acc, { func }) => {
45-
const prefix = func.split("::")[0] ?? func;
44+
raw.value.reduce((acc, { harness }) => {
45+
const prefix = harness.split("::")[0] ?? harness;
4646
acc[prefix] = (acc[prefix] || 0) + 1;
4747
return acc;
4848
}, {} as { [key: string]: number })
@@ -72,7 +72,7 @@ watch([selectedMods, selectedProofKind], ([mods, proofs]) => {
7272
// consider func mod
7373
push = empty_mod;
7474
for (const name of mods) {
75-
if (val.func.startsWith(`${name}::`)) { push = true; break; }
75+
if (val.harness.startsWith(`${name}::`)) { push = true; break; }
7676
}
7777
if (push) v.push(val);
7878
}

ui/app/shared/utils/kani.ts

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
import type { DataTableSortMeta } from "primevue";
22
import { FilterMatchMode } from '@primevue/core/api';
33

4-
export const URL_MERGE_DIFF = "https://raw.githubusercontent.com/os-checker/verify-rust-std_data/refs/heads/main/merge_diff-proofs-only.json";
4+
export const URL_MERGE_DIFF = "https://raw.githubusercontent.com/os-checker/verify-rust-std_data/refs/heads/main/merge_results-core.json";
55

66
export type VecMergeHashKaniList = MergeHashKaniList[];
77

88
export interface MergeHashKaniList {
9-
file: string;
10-
func: string;
11-
hash?: string;
12-
proof_kind?: ProofKind;
9+
file: string,
10+
harness: string,
11+
proof_kind?: ProofKind,
12+
hash?: string,
13+
time?: number,
14+
props: number,
15+
func: {
16+
name: string,
17+
safe: string,
18+
},
19+
ok?: boolean,
20+
n_fialed_properties?: number,
1321
}
1422

1523
export enum ProofKind {
@@ -42,8 +50,8 @@ export const MergeKaniColumns: MergeKaniColumn[] = [
4250
col: { field: "file", header: "File Path", width: "15%", sortable: true },
4351
},
4452
{
45-
key: "func",
46-
col: { field: "func", header: "Function", width: "25%", sortable: true },
53+
key: "harness",
54+
col: { field: "harness", header: "Harness", width: "25%", sortable: true },
4755
},
4856
{
4957
key: "hash",
@@ -64,7 +72,7 @@ export const FILTERS = {
6472
filters: {
6573
global: { value: null, matchMode: FilterMatchMode.CONTAINS },
6674
},
67-
fields: ["file", "func"]
75+
fields: ["file", "harness"]
6876
};
6977

7078
export const optionsProofKind: string[] = [ProofKind.Standard, ProofKind.Contract];

0 commit comments

Comments
 (0)