Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenConoly committed Jan 9, 2025
1 parent e9c8da9 commit d18b5b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/src/compiler/FlatToRiscvCommon.v
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ Section WithParameters.
clear -BW.
intros. unfold framelength.
pose proof (stackalloc_words_nonneg body).
assert (SeparationLogic.bytes_per_word = 4 \/ bytes_per_word = 8). {
assert (bytes_per_word = 4 \/ bytes_per_word = 8). {
unfold bytes_per_word. destruct width_cases as [E | E]; rewrite E; cbv; auto.
}
Z.div_mod_to_equations.
Expand Down Expand Up @@ -291,13 +291,13 @@ Section WithParameters.
let '(argnames, retnames, fbody) := fun_impl in
exists pos, map.get finfo f = Some pos /\ pos mod 4 = 0.

Local Notation stmt := (stmt Z). Check @exec.
Local Notation stmt := (stmt Z).
Local Notation exec pick_sp e := (@exec _ _ _ _ _ _ _ _ PostSpill isRegZ e pick_sp).

(* note: [e_impl_reduced] and [funnames] will shrink one function at a time each time
we enter a new function body, to make sure functions cannot call themselves, while
[e_impl] and [e_pos] remain the same throughout because that's mandated by
[FlatImp.exec] and [compile_stmt], respectively *) Check stmt_leakage.
[FlatImp.exec] and [compile_stmt], respectively *)
Definition compiles_FlatToRiscv_correctly{BWM: bitwidth_iset width iset}
(f: pos_map -> Z -> Z -> stmt -> list Instruction)
(s: stmt): Prop :=
Expand Down

0 comments on commit d18b5b0

Please sign in to comment.