CBMC: /home/runner/work/cbmc/cbmc/src/analyses/variable-sensitivity/widened_range.cpp Source File

CBMC
Loading...
Searching...
No Matches
widened_range.cpp
Go to the documentation of this file.
1/*******************************************************************\
2
3 Module: helper for extending intervals during widening merges
4
5 Author: Jez Higgins
6
7\*******************************************************************/
8
9#include "widened_range.h"
10#include <util/simplify_expr.h>
11
12 static bool has_underflowed(const exprt &value)
13{
15 value, from_integer(0, value.type()));
16}
17 static bool has_overflowed(const exprt &value, const exprt &initial_value)
18{
19 return constant_interval_exprt::less_than(value, initial_value);
20}
21
36
constant_exprt from_integer(const mp_integer &int_value, const typet &type)
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
Definition ai.h:566
tvt greater_than(const constant_interval_exprt &o) const
Definition interval.cpp:397
static bool contains_extreme(const exprt expr)
Definition interval.cpp:1830
tvt less_than(const constant_interval_exprt &o) const
Definition interval.cpp:376
Base class for all expressions.
Definition expr.h:57
typet & type()
Return the type of the expression.
Definition expr.h:85
+∞ upper bound for intervals
Definition interval.h:18
-∞ upper bound for intervals
Definition interval.h:33
Binary minus.
Definition std_expr.h:1065
The plus expression Associativity is not specified.
Definition std_expr.h:1006
const exprt upper_bound
Definition widened_range.h:43
exprt widen_lower_bound() const
const bool is_upper_widened
Definition widened_range.h:41
namespacet ns_
Definition widened_range.h:46
const exprt lower_bound
Definition widened_range.h:42
exprt widen_upper_bound() const
const bool is_lower_widened
Definition widened_range.h:40
exprt simplify_expr(exprt src, const namespacet &ns)
static bool has_overflowed(const exprt &value, const exprt &initial_value)
static bool has_underflowed(const exprt &value)

AltStyle によって変換されたページ (->オリジナル) /