Skip to content

Commit f884fc4

Browse files
Remove workarounds
1 parent 0766ec3 commit f884fc4

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

barretenberg/cpp/src/barretenberg/dsl/acir_format/hypernova_recursion_constraint.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ using namespace bb;
3131
*/
3232
std::shared_ptr<Chonk> create_mock_chonk_from_constraints(const std::vector<RecursionConstraint>& constraints)
3333
{
34-
auto ivc = std::make_shared<Chonk>(std::max(constraints.size(), static_cast<size_t>(4)));
34+
auto ivc = std::make_shared<Chonk>(std::max(constraints.size(), static_cast<size_t>(MAX_APPS_PER_KERNEL + 1)));
3535
// Check constraint proof type. Throws if proof_type is not a valid HyperNova type
3636
auto constraint_has_type = [](const RecursionConstraint& c, Chonk::QUEUE_TYPE expected) {
3737
return proof_type_to_chonk_queue_type(c.proof_type) == expected;
@@ -43,9 +43,8 @@ std::shared_ptr<Chonk> create_mock_chonk_from_constraints(const std::vector<Recu
4343
const bool is_tail = (constraints.size() == 1 && constraint_has_type(constraints[0], Chonk::QUEUE_TYPE::HN_TAIL));
4444
const bool is_hiding =
4545
(constraints.size() == 1 && constraint_has_type(constraints[0], Chonk::QUEUE_TYPE::HN_FINAL));
46-
// const size_t upper_bound = is_init ? MAX_APPS_PER_KERNEL : MAX_APPS_PER_KERNEL + 1;
47-
// BB_ASSERT_LTE(constraints.size(), upper_bound, "Too many recursion constraints encountered when mocking IVC
48-
// state");
46+
const size_t upper_bound = is_init ? MAX_APPS_PER_KERNEL : MAX_APPS_PER_KERNEL + 1;
47+
BB_ASSERT_LTE(constraints.size(), upper_bound, "Too many recursion constraints encountered when mocking IVC state");
4948

5049
// Match constraint patterns to kernel types and populate appropriate mock data:
5150

barretenberg/cpp/src/barretenberg/stdlib/primitives/databus/databus.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ template <class Builder> class DataBusDepot {
147147
return;
148148
}
149149
}
150-
// BB_ASSERT(false, "DataBusDepot has no free app return-data slot");
150+
BB_ASSERT(false, "DataBusDepot has no free app return-data slot");
151151
}
152152

153153
/**

0 commit comments

Comments
 (0)