Skip to content

Commit

Permalink
chore(avm): avoid including flavor where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
fcarreiro committed Jul 5, 2024
1 parent e37b8ed commit 603037d
Show file tree
Hide file tree
Showing 18 changed files with 588 additions and 456 deletions.
8 changes: 4 additions & 4 deletions barretenberg/cpp/src/barretenberg/vm/avm_trace/avm_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
#include "barretenberg/common/throw_or_abort.hpp"
#include "barretenberg/serialize/msgpack.hpp"
#include "barretenberg/vm/avm_trace/constants.hpp"
#include "barretenberg/vm/avm_trace/stats.hpp"
#include "barretenberg/vm/generated/avm_flavor.hpp"

#include "barretenberg/vm/generated/avm_flavor_settings.hpp"
#include "barretenberg/vm/generated/avm_full_row.hpp"

#include <array>
#include <cstdint>
Expand All @@ -13,8 +14,7 @@

namespace bb::avm_trace {

using Flavor = bb::AvmFlavor;
using FF = Flavor::FF;
using FF = AvmFlavorSettings::FF;

// To toggle all relevant unit tests with proving, set the env variable "AVM_ENABLE_FULL_PROVING".
static const bool ENABLE_PROVING = std::getenv("AVM_ENABLE_FULL_PROVING") != nullptr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "barretenberg/vm/avm_trace/constants.hpp"
#include "barretenberg/vm/generated/avm_circuit_builder.hpp"
#include "barretenberg/vm/generated/avm_composer.hpp"
#include "barretenberg/vm/generated/avm_flavor.hpp"

#include <cassert>
#include <cstddef>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "barretenberg/vm/avm_trace/avm_common.hpp"
#include "barretenberg/vm/avm_trace/avm_instructions.hpp"
#include "barretenberg/vm/avm_trace/avm_trace.hpp"
#include "barretenberg/vm/generated/avm_flavor.hpp"

#include <cstddef>
#include <cstdint>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "barretenberg/vm/avm_trace/gadgets/avm_pedersen.hpp"
#include "barretenberg/vm/avm_trace/gadgets/avm_poseidon2.hpp"
#include "barretenberg/vm/avm_trace/gadgets/avm_sha256.hpp"
#include "barretenberg/vm/generated/avm_circuit_builder.hpp"

namespace bb::avm_trace {

Expand Down
Loading

0 comments on commit 603037d

Please sign in to comment.