Skip to content

Commit

Permalink
Add mock theorems to avoid long runtimes for experiments with top fun…
Browse files Browse the repository at this point in the history
…ctions, Split top script
  • Loading branch information
andreaslindner committed Nov 12, 2024
1 parent ef64ac7 commit ab32fab
Show file tree
Hide file tree
Showing 6 changed files with 9,271 additions and 29 deletions.
2,577 changes: 2,577 additions & 0 deletions examples/arm_cm0/balrob/balrob_fadd_fakeScript.sml

Large diffs are not rendered by default.

1,853 changes: 1,853 additions & 0 deletions examples/arm_cm0/balrob/balrob_fdiv_fakeScript.sml

Large diffs are not rendered by default.

2,066 changes: 2,066 additions & 0 deletions examples/arm_cm0/balrob/balrob_fmul_fakeScript.sml

Large diffs are not rendered by default.

2,729 changes: 2,729 additions & 0 deletions examples/arm_cm0/balrob/balrob_fsub_fakeScript.sml

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions examples/arm_cm0/balrob/balrob_ftopScript.sml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
open HolKernel Parse boolLib bossLib;

open balrob_supportLib;

open balrob_endsTheory;
open balrob_miscTheory;
open balrob_fadd_fakeTheory;
open balrob_fsub_fakeTheory;
open balrob_fmul_fakeTheory;
open balrob_fdiv_fakeTheory;

val _ = new_theory "balrob_ftop";

(* ------------------------------------ *)


val entry_name = "atan2f_own";
val reqs = get_fun_usage entry_name;
val locs =
( 0x10001438,
[0x100014FA]);

val symb_exec_thm = birs_summary birs_prog_config
[balrob_summary___lesf2_thm,
balrob_summary_abs_own_thm,
balrob_summary___aeabi_fadd_thm,
balrob_summary___aeabi_fsub_thm,
balrob_summary___aeabi_fmul_thm,
balrob_summary___aeabi_fdiv_thm]
reqs
locs;
val balrob_summary_atan2f_own_thm = save_thm("balrob_summary_" ^ entry_name ^ "_thm", symb_exec_thm);


(* ------------------------------------ *)

val _ = print "\n";
val _ = Profile.print_profile_results (Profile.results ());


val _ = export_theory ();
34 changes: 5 additions & 29 deletions examples/arm_cm0/balrob/balrob_topScript.sml
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,17 @@ open balrob_supportLib;

open balrob_endsTheory;
open balrob_miscTheory;
open balrob_faddTheory;
open balrob_fsubTheory;
open balrob_fmulTheory;
open balrob_fdivTheory;
open balrob_fadd_fakeTheory;
open balrob_fsub_fakeTheory;
open balrob_fmul_fakeTheory;
open balrob_fdiv_fakeTheory;
open balrob_ftopTheory;

val _ = new_theory "balrob_top";

(* ------------------------------------ *)


(*
val entry_name = "atan2f_own";
val reqs = get_fun_usage entry_name;
val locs =
( 0x10001438,
[0x100014FA]);
val symb_exec_thm = birs_summary birs_prog_config
[balrob_summary___lesf2_thm,
balrob_summary_abs_own_thm,
balrob_summary___aeabi_fadd_thm,
balrob_summary___aeabi_fsub_thm,
balrob_summary___aeabi_fmul_thm,
balrob_summary___aeabi_fdiv_thm]
reqs
locs;
val balrob_summary_atan2f_own_thm = save_thm("balrob_summary_" ^ entry_name ^ "_thm", symb_exec_thm);
*)


(* ------------------------------------ *)


(*
val entry_name = "imu_handler_pid_entry";
val reqs = get_fun_usage entry_name;
val locs =
Expand All @@ -55,7 +32,6 @@ val symb_exec_thm = birs_summary birs_prog_config
reqs
locs;
val _ = save_thm("balrob_summary_" ^ entry_name ^ "_thm", symb_exec_thm);
*)


(* ------------------------------------ *)
Expand Down

0 comments on commit ab32fab

Please sign in to comment.