Skip to content

Commit c7c5872

Browse files
committed
Skip yul flag
1 parent d703696 commit c7c5872

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

bin/transpiler/src/main.cpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ bool read_buffer_from_file(std::ifstream &ifile, std::vector<std::uint8_t> &v) {
6868
template<typename ProfilingType, typename ConstraintSystemType, typename ColumnsRotationsType,
6969
typename ArithmetizationParams>
7070
void print_sol_files(ConstraintSystemType &constraint_system, ColumnsRotationsType &columns_rotations,
71-
std::string out_folder_path = ".", bool optimize_gates = false) {
71+
std::string out_folder_path = ".", bool optimize_gates = false, bool generate_yul = true) {
7272
ProfilingType::process_split(
7373
nil::blueprint::main_sol_file_template,
7474
nil::blueprint::gate_sol_file_template,
@@ -229,6 +229,7 @@ int main(int argc, char *argv[]) {
229229
("output-folder-path,o", boost::program_options::value<std::string>(), "Output folder absolute path.\
230230
It'll be better to create an empty folder for output")
231231
("optimize-gates", "Put multiple sequental small gates into one .sol file")
232+
("no-yul", "Skip optimised yul code generation")
232233
;
233234
// clang-format on
234235

@@ -247,6 +248,7 @@ int main(int argc, char *argv[]) {
247248
std::string circuit_file_name;
248249
std::string output_folder_path;
249250
std::string public_input;
251+
bool generate_yul = true;
250252

251253
if (vm.count("mode")) {
252254
mode = vm["mode"].as<std::string>();
@@ -291,6 +293,8 @@ int main(int argc, char *argv[]) {
291293
return 1;
292294
}
293295

296+
297+
294298
std::ifstream ifile;
295299
ifile.open(circuit_file_name);
296300
if (!ifile.is_open()) {
@@ -381,10 +385,15 @@ int main(int argc, char *argv[]) {
381385
bool optimize_gates = false;
382386
if( vm.count("optimize-gates") )
383387
optimize_gates = true;
388+
if(vm.count("no-yul")){
389+
generate_yul = false ;
390+
}
391+
384392
print_sol_files<ProfilingType, ConstraintSystemType, ColumnsRotationsType, ArithmetizationParams>(
385-
constraint_system, columns_rotations, output_folder_path, optimize_gates);
393+
constraint_system, columns_rotations, output_folder_path, optimize_gates, generate_yul);
386394
}
387395

396+
388397
if (mode == "gen-test-proof") {
389398
typename nil::crypto3::zk::snark::placeholder_public_preprocessor<
390399
BlueprintFieldType, placeholder_params>::preprocessed_data_type public_preprocessed_data =

0 commit comments

Comments
 (0)