Skip to content

Commit 2b2cf4a

Browse files
committed
Update comment
1 parent f60d084 commit 2b2cf4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

genmc-sys/cpp/src/MiriInterface/Mutex.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ auto MiriGenmcShim::handle_mutex_lock(ThreadId thread_id, uint64_t address, uint
2121
Annotation::ExprVP(
2222
NeExpr<ModuleID::ID>::create(
2323
// `RegisterExpr` marks the value of the current expression, i.e., the loaded value.
24-
// The id is zero, since this annotation only uses one input variable.
24+
// The `id` is ignored by GenMC; it is only used by the LLI frontend to substitute
25+
// other variables from previous expressions that may be used here.
2526
RegisterExpr<ModuleID::ID>::create(size_bits, /* id */ 0),
2627
ConcreteExpr<ModuleID::ID>::create(size_bits, MUTEX_LOCKED)
2728
)

0 commit comments

Comments
 (0)