Skip to content

Commit 2fb2bba

Browse files
NathanJPhillipssmowton
authored andcommitted
Merge pull request diffblue#143 from NathanJPhillips/cleanup/minor-changes
Implemented requested rename
1 parent bb648b8 commit 2fb2bba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/goto-analyzer/taint_set.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ taint_sett taint_sett::map_conditional(
2323
}
2424

2525
template<class maptype, class keytype>
26-
void assert_has_keys(const maptype& m,
27-
const std::vector<keytype>& expected, const char* detail)
26+
void throw_if_keyset_differs(const maptype &m,
27+
const std::vector<keytype> &expected, const char *detail)
2828
{
2929
std::vector<keytype> keys;
30-
for(const auto& keyval : m)
30+
for(const auto &keyval : m)
3131
keys.push_back(keyval.first);
32-
std::sort(keys.begin(),keys.end());
32+
std::sort(keys.begin(), keys.end());
3333
if(keys != expected)
3434
throw detail;
3535
}
@@ -40,7 +40,7 @@ taint_sett taint_sett::from_json(const jsont& js)
4040
assert(js.is_object());
4141
const auto& js_object=static_cast<const json_objectt&>(js);
4242
// Check required keys are provided
43-
assert_has_keys(js.object,
43+
throw_if_keyset_differs(js.object,
4444
std::vector<std::string>({ "is_bottom", "is_top", "taints" }),
4545
"JSON object is not an taint_sett");
4646
// Get the array of taint variables

0 commit comments

Comments
 (0)