File tree Expand file tree Collapse file tree 3 files changed +9
-15
lines changed Expand file tree Collapse file tree 3 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ void predabs_domaint::initialize_value(domaint::valuet &value)
30
30
for (std::size_t row=0 ; row<templ.size (); ++row)
31
31
{
32
32
// start from top (we can only use a gfp solver for this domain)
33
- v[row]=row_valuet (false_exprt () );
33
+ v[row]=row_valuet ();
34
34
}
35
35
}
36
36
Original file line number Diff line number Diff line change @@ -35,11 +35,9 @@ class predabs_domaint:public simple_domaint
35
35
36
36
struct row_valuet :constant_exprt
37
37
{
38
- row_valuet () : constant_exprt(false_exprt())
39
- {}
38
+ row_valuet () : constant_exprt(false_exprt()) {}
40
39
41
- explicit row_valuet (const constant_exprt &value) : constant_exprt(value)
42
- {}
40
+ explicit row_valuet (const constant_exprt &value) : constant_exprt(value) {}
43
41
};
44
42
45
43
struct templ_valuet :simple_domaint::valuet, std::vector<row_valuet>
Original file line number Diff line number Diff line change @@ -51,11 +51,9 @@ exprt address_canonizer(
51
51
unsigned_char_type (),
52
52
config.ansi_c .pointer_width );
53
53
typecast_exprt typecast_expr (rec_result, byte_pointer);
54
- exprt result;
55
- plus_exprt sum (typecast_expr, *maybe_offset);
56
- result=sum;
57
- if (sum.type ()!=address.type ())
58
- result=typecast_exprt (sum, address.type ());
54
+ exprt result=plus_exprt (typecast_expr, *maybe_offset);
55
+ if (result.type ()!=address.type ())
56
+ result=typecast_exprt (result, address.type ());
59
57
60
58
return result;
61
59
}
@@ -68,11 +66,9 @@ exprt address_canonizer(
68
66
69
67
pointer_typet pointer_type (object.type (), config.ansi_c .pointer_width );
70
68
typecast_exprt typecast_expr (rec_result, pointer_type);
71
- exprt result;
72
- plus_exprt sum (typecast_expr, to_index_expr (object).index ());
73
- result=sum;
74
- if (sum.type ()!=address.type ())
75
- result=typecast_exprt (sum, address.type ());
69
+ exprt result=plus_exprt (typecast_expr, to_index_expr (object).index ());
70
+ if (result.type ()!=address.type ())
71
+ result=typecast_exprt (result, address.type ());
76
72
77
73
return result;
78
74
}
You can’t perform that action at this time.
0 commit comments