@@ -128,6 +128,14 @@ Module EORMMUOFF.
128128 vm_compute (_ <$> _).
129129 reflexivity.
130130 Qed .
131+
132+ Definition test_results_pf :=
133+ VMPromising_cert_c_pf arm_sem fuel n_threads termCond initState.
134+
135+ Goal reg_extract R0 0%fin <$> test_results_pf = Listset [Ok 0x110%Z].
136+ vm_compute (_ <$> _).
137+ reflexivity.
138+ Qed .
131139End EORMMUOFF.
132140
133141(* Run EOR X0, X1, X2 at PC.
@@ -194,6 +202,14 @@ Module EOR.
194202 vm_compute (_ <$> _).
195203 reflexivity.
196204 Qed .
205+
206+ Definition test_results_pf :=
207+ VMPromising_cert_c_pf arm_sem fuel n_threads termCond initState.
208+
209+ Goal reg_extract R0 0%fin <$> test_results_pf = Listset [Ok 0x110%Z].
210+ vm_compute (_ <$> _).
211+ reflexivity.
212+ Qed .
197213End EOR.
198214
199215(* LDR X0, [X1, X0] at VA 0x8000000500, loading from VA 0x8000001000
@@ -247,6 +263,14 @@ Module LDR.
247263 vm_compute (_ <$> _).
248264 reflexivity.
249265 Qed .
266+
267+ Definition test_results_pf :=
268+ VMPromising_cert_c_pf arm_sem fuel n_threads termCond initState.
269+
270+ Goal reg_extract R0 0%fin <$> test_results_pf = Listset [Ok 0x2a%Z].
271+ vm_compute (_ <$> _).
272+ reflexivity.
273+ Qed .
250274End LDR.
251275
252276(* STR X2, [X1, X0]; LDR X0, [X1, X0] at VA 0x8000000500,
@@ -299,6 +323,14 @@ Module STRLDR.
299323 vm_compute (_ <$> _).
300324 set_solver.
301325 Qed .
326+
327+ Definition test_results_pf :=
328+ VMPromising_cert_c_pf arm_sem fuel n_threads termCond initState.
329+
330+ Goal reg_extract R0 0%fin <$> test_results_pf ≡ Listset [Ok 0x2a%Z].
331+ vm_compute (_ <$> _).
332+ set_solver.
333+ Qed .
302334End STRLDR.
303335
304336(* Sequential page table modification in single thread *)
@@ -362,7 +394,7 @@ Module LDRPT.
362394 Definition fuel := 5%nat.
363395
364396 Definition test_results :=
365- VMPromising_cert_c arm_sem fuel n_threads termCond initState.
397+ VMPromising_cert_c_pf arm_sem fuel n_threads termCond initState.
366398
367399 (* R0 should be 0x2a (from old mapping), R4 should be 0x42 (from new mapping) *)
368400 Goal elements (regs_extract [(0%fin, R0); (0%fin, R4)] <$> test_results) ≡ₚ
@@ -455,7 +487,7 @@ Module MP.
455487 Definition fuel := 8%nat.
456488
457489 Definition test_results :=
458- VMPromising_cert_c arm_sem fuel n_threads termCond initState.
490+ VMPromising_cert_c_pf arm_sem fuel n_threads termCond initState.
459491
460492 Goal elements (regs_extract [(1%fin, R5); (1%fin, R2)] <$> test_results) ≡ₚ
461493 [Ok [0x0%Z;0x2a%Z]; Ok [0x0%Z;0x0%Z]; Ok [0x1%Z; 0x2a%Z]; Ok [0x1%Z; 0x0%Z]].
@@ -547,7 +579,7 @@ Module MPDMBS.
547579 Definition fuel := 8%nat.
548580
549581 Definition test_results :=
550- VMPromising_cert_c arm_sem fuel n_threads termCond initState.
582+ VMPromising_cert_c_pf arm_sem fuel n_threads termCond initState.
551583
552584 (** The test is fenced enough, the 0x1; 0x0 outcome is impossible *)
553585 Goal elements (regs_extract [(1%fin, R5); (1%fin, R2)] <$> test_results) ≡ₚ
0 commit comments