Skip to content
Snippets Groups Projects
Commit 456d98a8 authored by Jan Rochel's avatar Jan Rochel
Browse files

[e-acsl] statically determine some predicates for special pointers

For the special pointers stdin, stdout, stderr, and &errno the results
of \pvalid, \pinitialized, \freeable are statically known, so we return
the result directly instead of generating calls to the runtime functions.

This complements the implementation of the same semantics in the runtime
libraries in the previous commit. As the runtime implementation is
sufficient, this commit is an optimisation.

We currently do not optimise logic functions such as \block_length,
\offset, \base_addr, but we do not expect too many occurrences of terms
such as \base_addr(*(&stdin + 9)).
parent c36712fd
No related branches found
No related tags found
No related merge requests found
Showing with 143 additions and 281 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment