23 for (
auto& elem : arr) {
36TEST(boomerang_stdlib_sha256, test_graph_for_sha256_block_single)
41 constexpr std::array<uint32_t, 8> H_INIT = { 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a,
42 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 };
46 for (
size_t i = 0; i < 8; i++) {
53 for (
size_t i = 0; i < 16; i++) {
65 EXPECT_EQ(connected_components.size(), 1);
67 EXPECT_EQ(variables_in_one_gate.size(), 0);
80TEST(boomerang_stdlib_sha256, test_graph_for_sha256_block_chained)
85 constexpr std::array<uint32_t, 8> H_INIT = { 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a,
86 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 };
90 for (
size_t i = 0; i < 8; i++) {
98 for (
size_t i = 0; i < 16; i++) {
113 EXPECT_EQ(connected_components.size(), 1);
115 EXPECT_EQ(variables_in_one_gate.size(), 0);
static std::array< field_ct, 8 > sha256_block(const std::array< field_ct, 8 > &h_init, const std::array< field_ct, 16 > &input)
Apply the SHA-256 compression function to a single 512-bit message block.
std::vector< ConnectedComponent > find_connected_components()
this methond finds all connected components in the graph described by adjacency lists and marks some ...
std::unordered_set< uint32_t > get_variables_in_one_gate()
this method returns a final set of variables that were in one gate
void fix_field_array(std::array< field_ct, N > &arr)
Fix witness for an array of field elements.
UltraCircuitBuilder Builder
witness_t< Builder > witness_ct
Entry point for Barretenberg command-line interface.
UltraCircuitBuilder_< UltraExecutionTraceBlocks > UltraCircuitBuilder
TEST(BoomerangMegaCircuitBuilder, BasicCircuit)
UltraStaticAnalyzer StaticAnalyzer
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept