Skip to content

Commit 6600134

Browse files
committed
Fix some RepFor instances
Remove unused parameters, add Rep for empty type.
1 parent ea4bc1e commit 6600134

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

rocq-brick-libstdcpp/proof/mutex/spec/defer_lock_t.v

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ Section with_cpp.
1212
Import rep.RepFor.
1313
Import RepScheme.
1414

15-
(* <<std::defer_lock_t>> is a marker type, but it is empty, so ownership is not really
16-
needed. *)
17-
#[global] Instance repfor `{Σ : cpp_logic} : rep.RepFor.C "std::defer_lock_t" [] emp := {}.
15+
#[global] Instance repfor `{Σ : cpp_logic} {σ : genv} :
16+
rep.RepFor.C "std::defer_lock_t" [ArgType.CFrac] R := {}.
1817
End with_RepFor.
1918

2019
cpp.spec "std::defer_lock_t::defer_lock_t(const std::defer_lock_t&)" as defer_lock_copy_ctor_spec from source with (

rocq-brick-libstdcpp/proof/mutex/spec/unique_lock.v

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ NES.Begin unique_lock.
5252
Import rep.RepFor.
5353
Import RepScheme.
5454

55-
#[global] Instance repfor `{Σ : cpp_logic} {σ : genv} ty {T} mutexR `{!BasicLockable ty (T:=T) mutexR}
56-
(q : cQp.t) (om : option (M T)) :
57-
rep.RepFor.C (Tnamed $ "std::unique_lock" .<< Atype ty >>) [ArgType.CFrac;ArgType.Constant _]
55+
#[global] Instance repfor `{Σ : cpp_logic} {σ : genv} ty {T} mutexR `{!BasicLockable ty (T:=T) mutexR} :
56+
rep.RepFor.C (Tnamed $ "std::unique_lock" .<< Atype ty >>) [ArgType.CFrac; ArgType.Constant _]
5857
(R ty mutexR) := {}.
5958
End with_RepFor.
6059

0 commit comments

Comments
 (0)