Fix the stack_range end.
The high end of the stack is always initial_stack_pointer - 1.
Use range methods instead of variables.
Simplify accessing range of ram region
Introduce fn is_superset for two ranges.
I am aware that in our concrete scenario we don't need all four, but
only two conditions (as it was before), since we are checking
subset.contains(superset.end()) before. But I have added them for
completeness.
stack_range
end. The high end of the stack is alwaysinitial_stack_pointer - 1
.fn is_superset
for two ranges. I am aware that in our concrete scenario we don't need all four, but only two conditions (as it was before), since we are checkingsubset.contains(superset.end())
before. But I have added them for completeness.fn extract_stack_info
doesfn extract_stack_info