Skip to content

Commit

Permalink
Ensure that umm_types.txt is saved relative to theory file. (#674)
Browse files Browse the repository at this point in the history
Signed-off-by: Achim D. Brucker <adbrucker@0x5f.org>
  • Loading branch information
adbrucker authored Jan 27, 2024
1 parent c71c31d commit 99c79b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/c-parser/calculate_state.ML
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,12 @@ fun mk_thy_types cse install thy = let

val thy = List.foldl rcddecls_phase0 thy sorted_structs

val abs_outfilnameN = (if Path.is_absolute (Path.explode outfilnameN)
then outfilnameN
else (Path.implode o Path.expand)
(Path.append (Resources.master_directory thy) (Path.explode outfilnameN)))
(* Yuck, sorry *)
val _ = gen_umm_types_file cse outfilnameN
val _ = gen_umm_types_file cse abs_outfilnameN

val arrays = List.filter (fn (_, sz) => sz <> 0)
(Binaryset.listItems (get_array_mentions cse))
Expand Down

0 comments on commit 99c79b5

Please sign in to comment.