Skip to content

Commit

Permalink
Print stack trace on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
makxenov authored and nkaskov committed Oct 9, 2023
1 parent 58730a5 commit df5d6f4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bin/assigner/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
#include <nil/blueprint/utils/satisfiability_check.hpp>

#include <llvm/Support/CommandLine.h>
#include <llvm/Support/Signals.h>

using namespace nil;
using namespace nil::crypto3;
Expand Down Expand Up @@ -195,6 +196,8 @@ int curve_dependent_main(std::string bytecode_file_name,

int main(int argc, char *argv[]) {

llvm::sys::PrintStackTraceOnErrorSignal(argv[0]);

boost::program_options::options_description options_desc("zkLLVM assigner");

// clang-format off
Expand Down Expand Up @@ -323,18 +326,15 @@ int main(int argc, char *argv[]) {
break;
}
case 1: {
std::cerr << "command line argument -e vesta is not supported yet" << std::endl;
assert(1==0 && "vesta curve based circuits are not supported yet");
UNREACHABLE("vesta curve based circuits are not supported yet");
break;
}
case 2: {
std::cerr << "command line argument -e ed25519 is not supported yet" << std::endl;
assert(1==0 && "ed25519 curve based circuits are not supported yet");
UNREACHABLE("ed25519 curve based circuits are not supported yet");
break;
}
case 3: {
std::cerr << "command line argument -e bls12-381 is not supported yet" << std::endl;
assert(1==0 && "bls12-381 curve based circuits are not supported yet");
UNREACHABLE("bls12-381 curve based circuits are not supported yet");
break;
}
};
Expand Down

0 comments on commit df5d6f4

Please sign in to comment.