Changes between Version 21 and Version 22 of Language
- Timestamp:
- 05/19/23 17:34:12 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Language
v21 v22 537 537 Function `$hide` wraps a pointer object in another object which is opaque to the reachability analyzer, i.e., the analyzer will not look inside this object and therefore will not find the hidden pointer. Nothing can be done with this hidden pointer until it is "revealed", i.e., extracted from the opaque object. The function `$hidden` tells whether its argument is a value returned by `$hide`. 538 538 539 === `$is_derefable` 539 === Checking whether a pointer dereference is safe: `$is_derefable` 540 541 This function has signature 542 {{{ 543 $system $state_f _Bool $is_derefable(void * ptr); 544 }}} 545 and determines if it is safe to evaluate (read) `*ptr`. 546 This means `ptr` points to a memory location that is capable of and is currently holding a value of type T, where T is the type of `*ptr`. 540 547 541 548 === `$is_terminated` 542 549 543 === `$local_end` 544 545 === `$local_start` 550 Signature: 551 {{{ 552 $system _Bool $is_terminated($proc p); 553 }}} 554 Determines whether `p` identifies a process that has terminated. 555 If `p` is undefined or `$proc_null`, returns 0. 556 557 === Modifying the dependence relation: `$local_start` and `$local_end` 558 546 559 547 560 === Heap memory allocation: `$malloc` and `$free`
