Skip to content

Commit b5666ba

Browse files
author
martin
committed
Update a unit test that makes use of a custom value set to use the new API
1 parent 7509273 commit b5666ba

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

jbmc/unit/pointer-analysis/custom_value_set_analysis.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,17 @@ SCENARIO("test_value_set_analysis",
198198

199199
value_set_analysist normal_analysis(ns);
200200
normal_analysis(goto_model);
201+
const auto normal_function_end_dom =
202+
normal_analysis.abstract_state_before(test_function_end);
201203
const auto &normal_function_end_vs=
202-
normal_analysis[test_function_end].value_set;
204+
std::dynamic_pointer_cast<const value_set_domain_templatet<value_sett>>(normal_function_end_dom)->value_set;
203205

204206
test_value_set_analysist test_analysis(ns);
205207
test_analysis(goto_model);
208+
const auto test_function_end_dom =
209+
test_analysis.abstract_state_before(test_function_end);
206210
const auto &test_function_end_vs=
207-
test_analysis[test_function_end].value_set;
211+
std::dynamic_pointer_cast<const value_set_domain_templatet<test_value_sett>>(test_function_end_dom)->value_set;
208212

209213
reference_typet jlo_ref_type=java_lang_object_type();
210214

0 commit comments

Comments
 (0)