Skip to content

Commit

Permalink
add uninitialized plonk variable type
Browse files Browse the repository at this point in the history
  • Loading branch information
CblPOK-git authored and akokoshn committed May 3, 2024
1 parent 292b70f commit 70c07e1
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ namespace nil {
using assignment_type = AssignmentType;

enum column_type : std::uint8_t {
witness, public_input, constant, selector
witness, public_input, constant, selector, uninitialized
};

/**
Expand All @@ -80,7 +80,7 @@ namespace nil {
bool relative;
column_type type;

constexpr plonk_variable() : index(0), rotation(0), relative(false), type(column_type::witness) {};
constexpr plonk_variable() : index(0), rotation(0), relative(false), type(column_type::uninitialized) {};

constexpr plonk_variable(const std::size_t index,
std::int32_t rotation,
Expand Down Expand Up @@ -176,7 +176,8 @@ namespace nil {
{plonk_variable<AssignmentType>::column_type::witness, "w"},
{plonk_variable<AssignmentType>::column_type::public_input, "pub"},
{plonk_variable<AssignmentType>::column_type::constant, "c"},
{plonk_variable<AssignmentType>::column_type::selector, "sel"}
{plonk_variable<AssignmentType>::column_type::selector, "sel"},
{plonk_variable<AssignmentType>::column_type::uninitialized,"NaN"}
};
os << type_map[var.type] << "_" << var.index;
if (!var.relative) {
Expand Down

0 comments on commit 70c07e1

Please sign in to comment.