WIP: autocorres: more incremental translation fixes; update a testcase
This commit is contained in:
parent
1181b9bc1f
commit
b8a1743148
|
@ -629,8 +629,10 @@ let
|
|||
(* Collect final translation results. *)
|
||||
val l1_info = FSeq.list_of l1_results |> map snd |> Utils.symtab_merge false;
|
||||
val l2_info = FSeq.list_of l2_results |> map snd |> Utils.symtab_merge false;
|
||||
val hl_info = FSeq.list_of hl_results |> map snd |> Utils.symtab_merge false;
|
||||
val wa_info = FSeq.list_of wa_results |> map snd |> Utils.symtab_merge false;
|
||||
val hl_info = if skip_heap_abs then Symtab.empty else
|
||||
FSeq.list_of hl_results |> map snd |> Utils.symtab_merge false;
|
||||
val wa_info = if skip_word_abs then Symtab.empty else
|
||||
FSeq.list_of wa_results |> map snd |> Utils.symtab_merge false;
|
||||
val ts_results' = FSeq.list_of ts_results;
|
||||
val ts_info = ts_results' |> map snd |> Utils.symtab_merge false;
|
||||
|
||||
|
|
|
@ -16,9 +16,10 @@ theory skip_heap_abs imports "../../AutoCorres" begin
|
|||
install_C_file "skip_heap_abs.c"
|
||||
autocorres [skip_heap_abs] "skip_heap_abs.c"
|
||||
|
||||
(* There should be no heap lift theorem. *)
|
||||
(* There should be no heap lift phase. *)
|
||||
ML {*
|
||||
assert (is_none (AutoCorresData.get_thm @{theory} "skip_heap_abs.c" "HL" "f")) "skip_heap_abs failed"
|
||||
val fn_infos = the (Symtab.lookup (AutoCorresFunctionInfo2.get @{theory}) "skip_heap_abs.c");
|
||||
assert (is_none (FunctionInfo2.Phasetab.lookup fn_infos FunctionInfo2.HL)) "skip_heap_abs failed";
|
||||
*}
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue