├── Dockerfile ├── FHE-MP-CNN ├── 0001-capture-keymem-support-resnet32_cifar10.patch └── build_cnn.py ├── README.md ├── air-infra ├── .gitignore ├── CMakeLists.txt ├── LEGAL.md ├── README.md ├── base │ ├── CMakeLists.txt │ ├── doc │ │ └── README.md │ ├── example │ │ ├── eg_airbase_01.cxx │ │ └── eg_meta_info.cxx │ ├── src │ │ ├── arena.cxx │ │ ├── container.cxx │ │ ├── meta_info.cxx │ │ ├── node.cxx │ │ ├── node_data.cxx │ │ ├── st.cxx │ │ ├── st_attr.cxx │ │ ├── st_const.cxx │ │ ├── st_data.cxx │ │ ├── st_iter.cxx │ │ ├── st_misc.cxx │ │ ├── st_sym.cxx │ │ ├── st_type.cxx │ │ └── targ_info.cxx │ ├── test │ │ └── test_airbase_01.cxx │ └── unittest │ │ ├── test_airbase.cxx │ │ ├── ut_const.cxx │ │ ├── ut_container.cxx │ │ ├── ut_meta_info.cxx │ │ └── ut_st.cxx ├── benchmark │ ├── CMakeLists.txt │ └── src │ │ └── bm_air_01.cxx ├── cg │ ├── CMakeLists.txt │ ├── doc │ │ └── README.md │ ├── example │ │ └── eg_aircg_01.cxx │ ├── src │ │ └── cg.cxx │ ├── test │ │ └── test_aircg_01.cxx │ └── unittest │ │ ├── test_aircg.cxx │ │ └── ut_cg.cxx ├── cloc.sh ├── cmake │ ├── external_doxygen.cmake │ ├── external_errmsg.cmake │ ├── external_jsoncpp.cmake │ ├── external_regex.cmake │ └── external_testdep.cmake ├── config.in ├── core │ ├── CMakeLists.txt │ ├── doc │ │ └── README.md │ ├── example │ │ ├── eg_aircore_01.cxx │ │ └── eg_aircore_ir2c.cxx │ ├── src │ │ └── opcode.cxx │ ├── test │ │ └── test_aircore_01.cxx │ └── unittest │ │ └── test_aircore.cxx ├── devtools │ ├── .clang-format │ ├── .clang-tidy │ ├── README.md │ ├── check_coding_style.py │ ├── err_msg │ │ ├── err_msg.py │ │ ├── err_msg.yml │ │ └── user_define.yml │ ├── pylintrc │ ├── regex.patch │ └── yml_parser │ │ ├── master.inc │ │ ├── option.yml │ │ └── option_generator.py ├── doc │ ├── AIRContainer.md │ ├── AIRType.md │ ├── Attribute.md │ ├── BUILD.md │ ├── CommandLineOption.md │ ├── Doxyfile.in │ ├── IRTraverse.md │ ├── MemoryPool.md │ ├── PassManager.md │ ├── README.md │ ├── basic.h │ └── visitor-handler-context.png ├── driver │ ├── CMakeLists.txt │ ├── doc │ │ └── README.md │ ├── example │ │ ├── eg_airdriver_01.cxx │ │ ├── eg_airdriver_02.cxx │ │ ├── eg_nndriver_nonstandalone.cxx │ │ └── eg_nndriver_standalone.cxx │ ├── include │ │ ├── config_nn2a.inc │ │ └── nn2a_driver.h │ ├── src │ │ ├── common_config.cxx │ │ ├── driver.cxx │ │ ├── driver_ctx.cxx │ │ ├── global_config.cxx │ │ └── nn2a_driver.cxx │ ├── test │ │ └── test_airdriver_01.cxx │ └── unittest │ │ ├── test_airdriver.cxx │ │ └── ut_driver.cxx ├── include │ └── air │ │ ├── base │ │ ├── analyze_ctx.h │ │ ├── arena.h │ │ ├── arena_core.h │ │ ├── container.h │ │ ├── container_decl.h │ │ ├── eval_visitor.h │ │ ├── flatten_ctx.h │ │ ├── handler_retv.h │ │ ├── id_wrapper.h │ │ ├── instrument_ctx.h │ │ ├── ir2c_ctx.h │ │ ├── ir_read.h │ │ ├── ir_write.h │ │ ├── meta_info.h │ │ ├── node.h │ │ ├── node_data.h │ │ ├── opcode.h │ │ ├── opcode_gen.h │ │ ├── ptr_wrapper.h │ │ ├── spos.h │ │ ├── st.h │ │ ├── st_attr.h │ │ ├── st_const.h │ │ ├── st_data.h │ │ ├── st_decl.h │ │ ├── st_enum.h │ │ ├── st_iter.h │ │ ├── st_misc.h │ │ ├── st_sym.h │ │ ├── st_trait.h │ │ ├── st_type.h │ │ ├── targ_info.h │ │ ├── transform_ctx.h │ │ ├── transform_util.h │ │ └── visitor.h │ │ ├── cg │ │ └── cg.h │ │ ├── core │ │ ├── default_handler.h │ │ ├── handler.h │ │ ├── invalid_handler.h │ │ ├── ir2c_ctx.h │ │ ├── ir2c_handler.h │ │ ├── null_handler.h │ │ ├── opcode.h │ │ └── opcode_def.inc │ │ ├── driver │ │ ├── common_config.h │ │ ├── driver.h │ │ ├── driver_ctx.h │ │ ├── global_config.h │ │ ├── pass.h │ │ └── pass_manager.h │ │ ├── opt │ │ ├── opt.h │ │ ├── ssa_build.h │ │ ├── ssa_container.h │ │ ├── ssa_decl.h │ │ ├── ssa_node.h │ │ ├── ssa_node_list.h │ │ ├── ssa_st.h │ │ └── ssa_verify.h │ │ ├── plugin │ │ └── pyrun.h │ │ └── util │ │ ├── air_allocator.h │ │ ├── align.h │ │ ├── arena.h │ │ ├── binary │ │ ├── air2elf.h │ │ ├── elf2air.h │ │ ├── elf_hdr.h │ │ ├── elf_info.h │ │ ├── elf_read.h │ │ └── elf_write.h │ │ ├── debug.h │ │ ├── error.h │ │ ├── file_map.h │ │ ├── io_misc.h │ │ ├── mem_allocator.h │ │ ├── mem_block.h │ │ ├── mem_id_pool.h │ │ ├── mem_pool.h │ │ ├── mem_util.h │ │ ├── messg.h │ │ ├── option.h │ │ ├── perf.h │ │ ├── ptr_util.h │ │ ├── srcdbg.h │ │ ├── strtab.h │ │ ├── timing.h │ │ └── uuid.h ├── opt │ ├── CMakeLists.txt │ ├── doc │ │ └── README.md │ ├── example │ │ └── eg_airopt_01.cxx │ ├── include │ │ ├── ssa_rename_ctx.h │ │ ├── ssa_rename_handler.h │ │ ├── ssa_rename_stack.h │ │ ├── ssa_simple_builder.h │ │ └── ssa_verify_ctx.h │ ├── src │ │ ├── opt.cxx │ │ ├── ssa_build.cxx │ │ ├── ssa_container.cxx │ │ ├── ssa_node.cxx │ │ ├── ssa_node_list.cxx │ │ ├── ssa_st.cxx │ │ └── ssa_verify.cxx │ ├── test │ │ ├── test_airopt_01.cxx │ │ └── test_ssa_build.cxx │ └── unittest │ │ ├── test_airopt.cxx │ │ └── ut_opt.cxx ├── plugin │ ├── CMakeLists.txt │ ├── example │ │ └── eg_airplugin.cxx │ ├── src │ │ └── pyrun.cxx │ ├── test │ │ └── test_airplugin.cxx │ └── unittest │ │ ├── pybase.py │ │ ├── pyrun.cxx │ │ └── test_airutil.cxx ├── test │ ├── CMakeLists.txt │ ├── data_avhc_air.yml │ └── test_air.cxx ├── third-party │ └── jsoncpp │ │ ├── .clang-format │ │ ├── .clang-tidy │ │ ├── .gitattributes │ │ ├── .github │ │ └── ISSUE_TEMPLATE │ │ │ ├── bug_report.md │ │ │ └── feature_request.md │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── .travis_scripts │ │ ├── cmake_builder.sh │ │ ├── meson_builder.sh │ │ ├── run-clang-format.py │ │ ├── run-clang-format.sh │ │ ├── travis.before_install.linux.sh │ │ ├── travis.before_install.osx.sh │ │ ├── travis.install.linux.sh │ │ └── travis.install.osx.sh │ │ ├── AUTHORS │ │ ├── BUILD.bazel │ │ ├── CMakeLists.txt │ │ ├── CONTRIBUTING.md │ │ ├── CTestConfig.cmake │ │ ├── LICENSE │ │ ├── README.md │ │ ├── amalgamate.py │ │ ├── appveyor.yml │ │ ├── cmake │ │ └── JoinPaths.cmake │ │ ├── dev.makefile │ │ ├── devtools │ │ ├── __init__.py │ │ ├── agent_vmw7.json │ │ ├── agent_vmxp.json │ │ ├── antglob.py │ │ ├── batchbuild.py │ │ ├── fixeol.py │ │ ├── licenseupdater.py │ │ └── tarball.py │ │ ├── doc │ │ ├── doxyfile.in │ │ ├── footer.html │ │ ├── header.html │ │ ├── jsoncpp.dox │ │ ├── readme.txt │ │ ├── roadmap.dox │ │ └── web_doxyfile.in │ │ ├── doxybuild.py │ │ ├── example │ │ ├── CMakeLists.txt │ │ ├── README.md │ │ ├── readFromStream │ │ │ ├── errorFormat.json │ │ │ ├── readFromStream.cpp │ │ │ └── withComment.json │ │ ├── readFromString │ │ │ └── readFromString.cpp │ │ ├── streamWrite │ │ │ └── streamWrite.cpp │ │ └── stringWrite │ │ │ └── stringWrite.cpp │ │ ├── get_version.pl │ │ ├── include │ │ ├── CMakeLists.txt │ │ ├── PreventInBuildInstalls.cmake │ │ ├── PreventInSourceBuilds.cmake │ │ └── json │ │ │ ├── allocator.h │ │ │ ├── assertions.h │ │ │ ├── config.h │ │ │ ├── forwards.h │ │ │ ├── json.h │ │ │ ├── json_features.h │ │ │ ├── reader.h │ │ │ ├── value.h │ │ │ ├── version.h │ │ │ └── writer.h │ │ ├── jsoncpp-namespaced-targets.cmake │ │ ├── jsoncppConfig.cmake.in │ │ ├── meson.build │ │ ├── meson_options.txt │ │ ├── pkg-config │ │ └── jsoncpp.pc.in │ │ ├── reformat.sh │ │ ├── src │ │ ├── CMakeLists.txt │ │ ├── jsontestrunner │ │ │ ├── CMakeLists.txt │ │ │ └── main.cpp │ │ ├── lib_json │ │ │ ├── CMakeLists.txt │ │ │ ├── json_reader.cpp │ │ │ ├── json_tool.h │ │ │ ├── json_value.cpp │ │ │ ├── json_valueiterator.inl │ │ │ └── json_writer.cpp │ │ └── test_lib_json │ │ │ ├── CMakeLists.txt │ │ │ ├── fuzz.cpp │ │ │ ├── fuzz.dict │ │ │ ├── fuzz.h │ │ │ ├── jsontest.cpp │ │ │ ├── jsontest.h │ │ │ └── main.cpp │ │ ├── test │ │ ├── cleantests.py │ │ ├── data │ │ │ ├── fail_invalid_quote.json │ │ │ ├── fail_test_array_01.json │ │ │ ├── fail_test_array_02.json │ │ │ ├── fail_test_object_01.json │ │ │ ├── fail_test_stack_limit.json │ │ │ ├── legacy_test_array_01.expected │ │ │ ├── legacy_test_array_01.json │ │ │ ├── legacy_test_array_02.expected │ │ │ ├── legacy_test_array_02.json │ │ │ ├── legacy_test_array_03.expected │ │ │ ├── legacy_test_array_03.json │ │ │ ├── legacy_test_array_04.expected │ │ │ ├── legacy_test_array_04.json │ │ │ ├── legacy_test_array_05.expected │ │ │ ├── legacy_test_array_05.json │ │ │ ├── legacy_test_array_06.expected │ │ │ ├── legacy_test_array_06.json │ │ │ ├── legacy_test_array_07.expected │ │ │ ├── legacy_test_array_07.json │ │ │ ├── legacy_test_basic_01.expected │ │ │ ├── legacy_test_basic_01.json │ │ │ ├── legacy_test_basic_02.expected │ │ │ ├── legacy_test_basic_02.json │ │ │ ├── legacy_test_basic_03.expected │ │ │ ├── legacy_test_basic_03.json │ │ │ ├── legacy_test_basic_04.expected │ │ │ ├── legacy_test_basic_04.json │ │ │ ├── legacy_test_basic_05.expected │ │ │ ├── legacy_test_basic_05.json │ │ │ ├── legacy_test_basic_06.expected │ │ │ ├── legacy_test_basic_06.json │ │ │ ├── legacy_test_basic_07.expected │ │ │ ├── legacy_test_basic_07.json │ │ │ ├── legacy_test_basic_08.expected │ │ │ ├── legacy_test_basic_08.json │ │ │ ├── legacy_test_basic_09.expected │ │ │ ├── legacy_test_basic_09.json │ │ │ ├── legacy_test_comment_00.expected │ │ │ ├── legacy_test_comment_00.json │ │ │ ├── legacy_test_comment_01.expected │ │ │ ├── legacy_test_comment_01.json │ │ │ ├── legacy_test_comment_02.expected │ │ │ ├── legacy_test_comment_02.json │ │ │ ├── legacy_test_complex_01.expected │ │ │ ├── legacy_test_complex_01.json │ │ │ ├── legacy_test_integer_01.expected │ │ │ ├── legacy_test_integer_01.json │ │ │ ├── legacy_test_integer_02.expected │ │ │ ├── legacy_test_integer_02.json │ │ │ ├── legacy_test_integer_03.expected │ │ │ ├── legacy_test_integer_03.json │ │ │ ├── legacy_test_integer_04.expected │ │ │ ├── legacy_test_integer_04.json │ │ │ ├── legacy_test_integer_05.expected │ │ │ ├── legacy_test_integer_05.json │ │ │ ├── legacy_test_integer_06_64bits.expected │ │ │ ├── legacy_test_integer_06_64bits.json │ │ │ ├── legacy_test_integer_07_64bits.expected │ │ │ ├── legacy_test_integer_07_64bits.json │ │ │ ├── legacy_test_integer_08_64bits.expected │ │ │ ├── legacy_test_integer_08_64bits.json │ │ │ ├── legacy_test_large_01.expected │ │ │ ├── legacy_test_large_01.json │ │ │ ├── legacy_test_object_01.expected │ │ │ ├── legacy_test_object_01.json │ │ │ ├── legacy_test_object_02.expected │ │ │ ├── legacy_test_object_02.json │ │ │ ├── legacy_test_object_03.expected │ │ │ ├── legacy_test_object_03.json │ │ │ ├── legacy_test_object_04.expected │ │ │ ├── legacy_test_object_04.json │ │ │ ├── legacy_test_preserve_comment_01.expected │ │ │ ├── legacy_test_preserve_comment_01.json │ │ │ ├── legacy_test_real_01.expected │ │ │ ├── legacy_test_real_01.json │ │ │ ├── legacy_test_real_02.expected │ │ │ ├── legacy_test_real_02.json │ │ │ ├── legacy_test_real_03.expected │ │ │ ├── legacy_test_real_03.json │ │ │ ├── legacy_test_real_04.expected │ │ │ ├── legacy_test_real_04.json │ │ │ ├── legacy_test_real_05.expected │ │ │ ├── legacy_test_real_05.json │ │ │ ├── legacy_test_real_06.expected │ │ │ ├── legacy_test_real_06.json │ │ │ ├── legacy_test_real_07.expected │ │ │ ├── legacy_test_real_07.json │ │ │ ├── legacy_test_real_08.expected │ │ │ ├── legacy_test_real_08.json │ │ │ ├── legacy_test_real_09.expected │ │ │ ├── legacy_test_real_09.json │ │ │ ├── legacy_test_real_10.expected │ │ │ ├── legacy_test_real_10.json │ │ │ ├── legacy_test_real_11.expected │ │ │ ├── legacy_test_real_11.json │ │ │ ├── legacy_test_real_12.expected │ │ │ ├── legacy_test_real_12.json │ │ │ ├── legacy_test_real_13.expected │ │ │ ├── legacy_test_real_13.json │ │ │ ├── legacy_test_string_01.expected │ │ │ ├── legacy_test_string_01.json │ │ │ ├── legacy_test_string_02.expected │ │ │ ├── legacy_test_string_02.json │ │ │ ├── legacy_test_string_03.expected │ │ │ ├── legacy_test_string_03.json │ │ │ ├── legacy_test_string_04.expected │ │ │ ├── legacy_test_string_04.json │ │ │ ├── legacy_test_string_05.expected │ │ │ ├── legacy_test_string_05.json │ │ │ ├── legacy_test_string_unicode_01.expected │ │ │ ├── legacy_test_string_unicode_01.json │ │ │ ├── legacy_test_string_unicode_02.expected │ │ │ ├── legacy_test_string_unicode_02.json │ │ │ ├── legacy_test_string_unicode_03.expected │ │ │ ├── legacy_test_string_unicode_03.json │ │ │ ├── legacy_test_string_unicode_04.expected │ │ │ ├── legacy_test_string_unicode_04.json │ │ │ ├── legacy_test_string_unicode_05.expected │ │ │ ├── legacy_test_string_unicode_05.json │ │ │ ├── test_array_08.expected │ │ │ ├── test_array_08.json │ │ │ ├── test_object_05.expected │ │ │ └── test_object_05.json │ │ ├── generate_expected.py │ │ ├── jsonchecker │ │ │ ├── fail1.json │ │ │ ├── fail10.json │ │ │ ├── fail11.json │ │ │ ├── fail12.json │ │ │ ├── fail13.json │ │ │ ├── fail14.json │ │ │ ├── fail15.json │ │ │ ├── fail16.json │ │ │ ├── fail17.json │ │ │ ├── fail18.json │ │ │ ├── fail19.json │ │ │ ├── fail2.json │ │ │ ├── fail20.json │ │ │ ├── fail21.json │ │ │ ├── fail22.json │ │ │ ├── fail23.json │ │ │ ├── fail24.json │ │ │ ├── fail25.json │ │ │ ├── fail26.json │ │ │ ├── fail27.json │ │ │ ├── fail28.json │ │ │ ├── fail29.json │ │ │ ├── fail3.json │ │ │ ├── fail30.json │ │ │ ├── fail31.json │ │ │ ├── fail32.json │ │ │ ├── fail33.json │ │ │ ├── fail4.json │ │ │ ├── fail5.json │ │ │ ├── fail6.json │ │ │ ├── fail7.json │ │ │ ├── fail8.json │ │ │ ├── fail9.json │ │ │ ├── pass1.json │ │ │ ├── pass2.json │ │ │ ├── pass3.json │ │ │ └── readme.txt │ │ ├── pyjsontestrunner.py │ │ ├── runjsontests.py │ │ └── rununittests.py │ │ └── version.in └── util │ ├── CMakeLists.txt │ ├── doc │ ├── README.md │ ├── messg.md │ └── timing.md │ ├── example │ ├── eg_airutil_debug.cxx │ ├── eg_airutil_msg.cxx │ ├── eg_airutil_perf.cxx │ └── eg_airutil_timing.cxx │ ├── src │ ├── elf_hdr.cxx │ ├── error.cxx │ ├── file_map.cxx │ ├── mem_util.cxx │ ├── option.cxx │ ├── perf.cxx │ └── timing.cxx │ ├── test │ ├── air_assert.cxx │ ├── air_debug.cxx │ ├── air_trace.cxx │ ├── cmplr_assert.cxx │ ├── cmplr_err_msg.cxx │ ├── cmplr_usr_msg.cxx │ └── cmplr_warn_msg.cxx │ └── unittest │ ├── air_allocator.cxx │ ├── align.cxx │ ├── arena.cxx │ ├── mem_allocator.cxx │ ├── mem_block.cxx │ ├── mem_id_pool.cxx │ ├── mem_pool.cxx │ ├── option.cxx │ ├── ptr_util.cxx │ ├── strtab.cxx │ ├── test_airutil.cxx │ ├── ut_log.cxx │ ├── ut_timing.cxx │ └── ut_uuid.cxx ├── fhe-cmplr ├── .gitignore ├── CMakeLists.txt ├── LEGAL.md ├── README.md ├── benchmark │ ├── CMakeLists.txt │ └── src │ │ └── bm_fhe_01.cxx ├── cg │ ├── CMakeLists.txt │ ├── example │ │ └── eg_fhecg_01.cxx │ ├── src │ │ └── cg.cxx │ ├── test │ │ └── test_fhecg_01.cxx │ └── unittest │ │ ├── test_fhecg.cxx │ │ └── ut_cg.cxx ├── ckks │ ├── CMakeLists.txt │ ├── example │ │ └── eg_fheckks_01.cxx │ ├── include │ │ └── scale_manager.h │ ├── src │ │ ├── ckks.cxx │ │ ├── ckks_gen.cxx │ │ ├── ckks_opcode.cxx │ │ ├── config.cxx │ │ ├── pass.cxx │ │ └── scale_manager.cxx │ ├── test │ │ └── test_fheckks_01.cxx │ └── unittest │ │ ├── test_ckks_opcodes.cxx │ │ ├── test_fheckks.cxx │ │ ├── test_vector2ckks.cxx │ │ └── ut_ckks.cxx ├── cmake │ ├── external_doxgen.cmake │ ├── external_extralib.cmake │ ├── external_regex.cmake │ └── external_testdep.cmake ├── core │ ├── CMakeLists.txt │ ├── example │ │ └── eg_fhecore_01.cxx │ ├── src │ │ ├── core.cxx │ │ ├── ctx_param_ana.cxx │ │ ├── lower_ctx.cxx │ │ ├── rt_data_util.cxx │ │ ├── scheme_info.cxx │ │ ├── scheme_info_ana.cxx │ │ └── scheme_info_config.cxx │ ├── test │ │ ├── rt_data_dump.cxx │ │ └── test_fhecore_01.cxx │ └── unittest │ │ ├── test_fhecore.cxx │ │ ├── ut_core.cxx │ │ └── ut_rt_data_writer.cxx ├── devtools │ ├── .clang-format │ ├── .clang-tidy │ └── check_coding_style.py ├── doc │ ├── BUILD.md │ ├── Doxyfile.in │ └── README.md ├── driver │ ├── CMakeLists.txt │ ├── example │ │ └── eg_fhedriver_01.cxx │ ├── src │ │ ├── driver.cxx │ │ ├── fhe_cmplr.cxx │ │ └── onnx_fhe_cmplr.cxx │ ├── test │ │ ├── e2e_driver.h │ │ ├── e2e_driver.inc │ │ ├── test_fhedriver_01.cxx │ │ └── test_fherot_01.cxx │ └── unittest │ │ ├── test_fhedriver.cxx │ │ └── ut_driver.cxx ├── include │ └── fhe │ │ ├── ckks │ │ ├── ckks_gen.h │ │ ├── ckks_handler.h │ │ ├── ckks_opcode.h │ │ ├── config.h │ │ ├── default_handler.h │ │ ├── invalid_handler.h │ │ ├── ir2c_ctx.h │ │ ├── ir2c_handler.h │ │ ├── null_handler.h │ │ ├── opcode_def.inc │ │ ├── pass.h │ │ ├── sihe2ckks_ctx.h │ │ ├── sihe2ckks_impl.h │ │ └── sihe2ckks_lower.h │ │ ├── core │ │ ├── ctx_param_ana.h │ │ ├── handler.h │ │ ├── ir2c_ctx.h │ │ ├── lib_provider.h │ │ ├── lower_ctx.h │ │ ├── opcode.h │ │ ├── rt_data_def.h │ │ ├── rt_data_mgr.h │ │ ├── rt_data_util.h │ │ ├── rt_data_writer.h │ │ ├── rt_encode_api.h │ │ ├── rt_version.h │ │ ├── scheme_info.h │ │ ├── scheme_info_ana.h │ │ ├── scheme_info_config.h │ │ └── scheme_info_pass.h │ │ ├── driver │ │ ├── fhe_cmplr.h │ │ ├── fhe_pipeline.h │ │ └── onnx_fhe_cmplr.h │ │ ├── poly │ │ ├── config.h │ │ ├── handler.h │ │ ├── invalid_handler.h │ │ ├── ir2c_core.h │ │ ├── ir2c_ctx.h │ │ ├── ir2c_handler.h │ │ ├── null_handler.h │ │ ├── opcode.h │ │ ├── opcode_def.inc │ │ ├── pass.h │ │ ├── poly2c_config.h │ │ ├── poly2c_driver.h │ │ ├── poly2c_mfree.h │ │ ├── poly2c_pass.h │ │ └── poly_driver.h │ │ ├── sihe │ │ ├── config.h │ │ ├── core_lower_impl.h │ │ ├── default_handler.h │ │ ├── invalid_handler.h │ │ ├── ir2c_handler.h │ │ ├── opcode_def.inc │ │ ├── pass.h │ │ ├── sihe_gen.h │ │ ├── sihe_handler.h │ │ ├── sihe_opcode.h │ │ ├── tensor2sihe_impl.h │ │ ├── vector2sihe_ctx.h │ │ ├── vector2sihe_impl.h │ │ └── vector2sihe_lower.h │ │ └── util │ │ ├── app_composite_poly.h │ │ └── util.h ├── opt │ ├── CMakeLists.txt │ ├── example │ │ └── eg_fheopt_01.cxx │ ├── src │ │ └── opt.cxx │ ├── test │ │ └── test_fheopt_01.cxx │ └── unittest │ │ ├── test_fheopt.cxx │ │ └── ut_opt.cxx ├── poly │ ├── CMakeLists.txt │ ├── example │ │ └── eg_fhepoly_01.cxx │ ├── include │ │ ├── ckks2poly.h │ │ └── poly_ir_gen.h │ ├── src │ │ ├── ckks2poly.cxx │ │ ├── config.cxx │ │ ├── opcode.cxx │ │ ├── pass.cxx │ │ ├── poly2c_config.cxx │ │ ├── poly2c_driver.cxx │ │ ├── poly2c_mfree.cxx │ │ ├── poly2c_pass.cxx │ │ ├── poly_driver.cxx │ │ └── poly_ir_gen.cxx │ ├── test │ │ ├── gen_ckks_ir.h │ │ ├── gen_expect_data.h │ │ ├── test_fhepoly_add_float.cxx │ │ ├── test_fhepoly_mul_float.cxx │ │ ├── test_fhepoly_relin_01.cxx │ │ ├── test_fhepoly_relin_02.cxx │ │ ├── test_fhepoly_rotate_01.cxx │ │ ├── test_fhepoly_rotate_02.cxx │ │ └── test_fhepoly_rotate_03.cxx │ └── unittest │ │ ├── test_fhepoly.cxx │ │ ├── ut_ckks2poly.cxx │ │ └── ut_opcode.cxx ├── rtlib │ ├── CMakeLists.txt │ ├── ant │ │ ├── CMakeLists.txt │ │ ├── dataset │ │ │ ├── cifar10_norm.cxx │ │ │ ├── resnet110_cifar10.cxx │ │ │ ├── resnet110_cifar10_train.onnx.inc │ │ │ ├── resnet20_cifar10.cxx │ │ │ ├── resnet20_cifar10_pre.onnx.inc │ │ │ ├── resnet32_cifar10.cxx │ │ │ ├── resnet32_cifar100.cxx │ │ │ ├── resnet32_cifar100_pre.onnx.inc │ │ │ ├── resnet32_cifar10_pre.onnx.inc │ │ │ ├── resnet44_cifar10.cxx │ │ │ ├── resnet44_cifar10_pre.onnx.inc │ │ │ ├── resnet56_cifar10.cxx │ │ │ ├── resnet56_cifar10_pre.onnx.inc │ │ │ └── resnet_cifar.main.inc │ │ ├── example │ │ │ ├── eg_fhertlib_add.c │ │ │ ├── eg_fhertlib_add.inc │ │ │ ├── eg_fhertlib_add_const.c │ │ │ ├── eg_fhertlib_add_const.inc │ │ │ ├── eg_fhertlib_avg_pool.c │ │ │ ├── eg_fhertlib_avg_pool.inc │ │ │ ├── eg_fhertlib_bootstrap.c │ │ │ ├── eg_fhertlib_bootstrap.inc │ │ │ ├── eg_fhertlib_bootstrap_02.c │ │ │ ├── eg_fhertlib_bootstrap_02.inc │ │ │ ├── eg_fhertlib_conv2d.c │ │ │ ├── eg_fhertlib_conv2d.inc │ │ │ ├── eg_fhertlib_gemm.c │ │ │ ├── eg_fhertlib_gemm.inc │ │ │ ├── eg_fhertlib_gemm_02.c │ │ │ ├── eg_fhertlib_gemm_02.inc │ │ │ ├── eg_fhertlib_mul_const.c │ │ │ ├── eg_fhertlib_mul_const.inc │ │ │ ├── eg_fhertlib_relin.c │ │ │ ├── eg_fhertlib_relin.inc │ │ │ ├── eg_fhertlib_relin_02.c │ │ │ ├── eg_fhertlib_relin_02.inc │ │ │ ├── eg_fhertlib_relu.c │ │ │ ├── eg_fhertlib_relu.inc │ │ │ ├── eg_fhertlib_rotate.c │ │ │ ├── eg_fhertlib_rotate.inc │ │ │ ├── eg_fhertlib_rotate_02.c │ │ │ └── eg_fhertlib_rotate_02.inc │ │ ├── include │ │ │ ├── ckks │ │ │ │ ├── cipher_eval.h │ │ │ │ ├── cipher_valid.h │ │ │ │ └── plain_eval.h │ │ │ ├── nn │ │ │ │ └── vector_valid.h │ │ │ ├── poly │ │ │ │ ├── poly_arith.h │ │ │ │ └── poly_eval.h │ │ │ ├── rtlib │ │ │ │ ├── context.h │ │ │ │ └── key_gen.h │ │ │ └── util │ │ │ │ ├── bit_operations.h │ │ │ │ ├── ciphertext.h │ │ │ │ ├── ckks_bootstrap_context.h │ │ │ │ ├── ckks_decryptor.h │ │ │ │ ├── ckks_encoder.h │ │ │ │ ├── ckks_encryptor.h │ │ │ │ ├── ckks_evaluator.h │ │ │ │ ├── ckks_key_generator.h │ │ │ │ ├── ckks_parameters.h │ │ │ │ ├── crt.h │ │ │ │ ├── fhe_bignumber.h │ │ │ │ ├── fhe_std_parms.h │ │ │ │ ├── fhe_types.h │ │ │ │ ├── fhe_utils.h │ │ │ │ ├── macro_chooser.h │ │ │ │ ├── matrix_operations.h │ │ │ │ ├── ntt.h │ │ │ │ ├── number_theory.h │ │ │ │ ├── plaintext.h │ │ │ │ ├── polynomial.h │ │ │ │ ├── prng.h │ │ │ │ ├── public_key.h │ │ │ │ ├── random_sample.h │ │ │ │ ├── secret_key.h │ │ │ │ └── switch_key.h │ │ ├── src │ │ │ ├── ckks │ │ │ │ ├── cipher_eval.c │ │ │ │ ├── cipher_valid.c │ │ │ │ └── plain_eval.c │ │ │ ├── encode │ │ │ │ └── encode_context.c │ │ │ ├── poly │ │ │ │ ├── poly_arith.c │ │ │ │ └── poly_eval.c │ │ │ ├── rtlib │ │ │ │ ├── context.c │ │ │ │ └── rtlib.c │ │ │ └── util │ │ │ │ ├── bit_operations.c │ │ │ │ ├── ckks_bootstrap_context.c │ │ │ │ ├── ckks_chebyshev.c │ │ │ │ ├── ckks_decryptor.c │ │ │ │ ├── ckks_encoder.c │ │ │ │ ├── ckks_encryptor.c │ │ │ │ ├── ckks_evaluator.c │ │ │ │ ├── ckks_key_generator.c │ │ │ │ ├── ckks_parameters.c │ │ │ │ ├── crt.c │ │ │ │ ├── fhe_std_parms.c │ │ │ │ ├── fhe_types.c │ │ │ │ ├── matrix_operations.c │ │ │ │ ├── ntt.c │ │ │ │ ├── number_theory.c │ │ │ │ ├── polynomial.c │ │ │ │ ├── prng.c │ │ │ │ └── random_sample.c │ │ ├── test │ │ │ └── test_ant_encode.c │ │ └── unittest │ │ │ ├── helper.h │ │ │ ├── test_fhert_ant.cxx │ │ │ ├── ut_ckks_arithmetic.cxx │ │ │ ├── ut_ckks_bootstrap.cxx │ │ │ ├── ut_ckks_encoder.cxx │ │ │ ├── ut_ckks_encrypt_decrypt.cxx │ │ │ ├── ut_ckks_perf.cxx │ │ │ ├── ut_ckks_rotation.cxx │ │ │ ├── ut_ksw_opt.cxx │ │ │ ├── ut_poly.cxx │ │ │ ├── ut_prng.cxx │ │ │ └── ut_test_number_theory.cxx │ ├── common │ │ ├── src │ │ │ ├── block_io_linux.c │ │ │ ├── io_lib.c │ │ │ ├── pt_mgr.c │ │ │ ├── rt_config.c │ │ │ ├── rt_data_file.c │ │ │ ├── rt_lib.c │ │ │ ├── rt_stat.c │ │ │ ├── rtlib_timing.c │ │ │ ├── tensor.c │ │ │ └── trace.c │ │ └── unittest │ │ │ ├── test_fhert_common.cxx │ │ │ ├── ut_file_io.cxx │ │ │ └── ut_pt_mgr.cxx │ ├── include │ │ ├── common │ │ │ ├── block_io.h │ │ │ ├── common.h │ │ │ ├── error.h │ │ │ ├── io_api.h │ │ │ ├── pt_mgr.h │ │ │ ├── rt_api.h │ │ │ ├── rt_config.h │ │ │ ├── rt_data_file.h │ │ │ ├── rt_env.h │ │ │ ├── rt_stat.h │ │ │ ├── rtlib.h │ │ │ ├── rtlib_timing.h │ │ │ ├── tensor.h │ │ │ └── trace.h │ │ ├── rt_ant │ │ │ ├── ant_api.h │ │ │ ├── rt_ant.h │ │ │ └── rt_api.h │ │ ├── rt_openfhe │ │ │ ├── openfhe_api.h │ │ │ ├── rt_def.h │ │ │ └── rt_openfhe.h │ │ └── rt_seal │ │ │ ├── rt_def.h │ │ │ ├── rt_seal.h │ │ │ └── seal_api.h │ ├── openfhe │ │ ├── CMakeLists.txt │ │ ├── example │ │ │ ├── eg_rtopenfhe_add.cxx │ │ │ ├── eg_rtopenfhe_add.inc │ │ │ ├── eg_rtopenfhe_add_const.cxx │ │ │ ├── eg_rtopenfhe_add_const.inc │ │ │ ├── eg_rtopenfhe_conv2d_keep_shape.cxx │ │ │ ├── eg_rtopenfhe_conv2d_keep_shape.inc │ │ │ ├── eg_rtopenfhe_mult_const.cxx │ │ │ └── eg_rtopenfhe_mult_const.inc │ │ ├── src │ │ │ └── openfhe_lib.cxx │ │ └── unittest │ │ │ └── test_fhert_openfhe.cxx │ └── seal │ │ ├── CMakeLists.txt │ │ ├── example │ │ ├── eg_rtseal_add.cxx │ │ ├── eg_rtseal_add.inc │ │ ├── eg_rtseal_add_const.cxx │ │ ├── eg_rtseal_add_const.inc │ │ ├── eg_rtseal_conv2d_keep_shape.cxx │ │ ├── eg_rtseal_conv2d_keep_shape.inc │ │ ├── eg_rtseal_mult_const.cxx │ │ └── eg_rtseal_mult_const.inc │ │ ├── src │ │ └── seal_lib.cxx │ │ └── unittest │ │ └── test_fhert_seal.cxx ├── sihe │ ├── CMakeLists.txt │ ├── example │ │ └── eg_fhesihe_01.cxx │ ├── src │ │ ├── config.cxx │ │ ├── pass.cxx │ │ ├── sihe.cxx │ │ ├── sihe_gen.cxx │ │ ├── sihe_opcode.cxx │ │ ├── tensor2sihe_impl.cxx │ │ └── vector2sihe_lower.cxx │ ├── test │ │ └── test_fhesihe_01.cxx │ └── unittest │ │ ├── test_fhesihe.cxx │ │ ├── test_sihe_opcodes.cxx │ │ └── test_vector2sihe.cxx ├── test │ ├── CMakeLists.txt │ ├── data_avhc_fhe.yml │ ├── test_fhe_01.cxx │ └── test_fhe_cmplr.sh ├── third-party │ ├── BLAKE2 │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── COPYING │ │ ├── README.md │ │ ├── b2sum │ │ │ ├── README.md │ │ │ ├── b2sum.1 │ │ │ ├── b2sum.c │ │ │ └── makefile │ │ ├── bench │ │ │ ├── bench.c │ │ │ ├── do.gplot │ │ │ ├── makefile │ │ │ └── md5.c │ │ ├── csharp │ │ │ ├── Blake2Sharp.CompressionCodeGen │ │ │ │ ├── Blake2Sharp.CompressionCodeGen.csproj │ │ │ │ ├── Program.cs │ │ │ │ └── Properties │ │ │ │ │ └── AssemblyInfo.cs │ │ │ ├── Blake2Sharp.Tests │ │ │ │ ├── Blake2Sharp.Tests.csproj │ │ │ │ ├── DebugNodeHasher.cs │ │ │ │ ├── Properties │ │ │ │ │ └── AssemblyInfo.cs │ │ │ │ ├── SequentialTests.cs │ │ │ │ └── TestVectors.cs │ │ │ ├── Blake2Sharp.sln │ │ │ └── Blake2Sharp │ │ │ │ ├── Blake2B.cs │ │ │ │ ├── Blake2BConfig.cs │ │ │ │ ├── Blake2BCore-FullyUnrolled.cs │ │ │ │ ├── Blake2BCore-Inline.cs │ │ │ │ ├── Blake2BCore-Simple.cs │ │ │ │ ├── Blake2BCore.cs │ │ │ │ ├── Blake2BHasher.cs │ │ │ │ ├── Blake2BNodeHasher.cs │ │ │ │ ├── Blake2BTreeConfig.cs │ │ │ │ ├── Blake2IvBuilder.cs │ │ │ │ ├── Blake2Sharp.csproj │ │ │ │ ├── Hasher.cs │ │ │ │ ├── NodeHasher.cs │ │ │ │ ├── Properties │ │ │ │ └── AssemblyInfo.cs │ │ │ │ ├── TreeHasher.cs │ │ │ │ └── compression.c │ │ ├── neon │ │ │ ├── blake2-impl.h │ │ │ ├── blake2.h │ │ │ ├── blake2b-load-neon.h │ │ │ ├── blake2b-neon.c │ │ │ ├── blake2b-round.h │ │ │ ├── blake2b.c │ │ │ ├── blake2bp.c │ │ │ ├── blake2s-load-neon.h │ │ │ ├── blake2s-neon.c │ │ │ ├── blake2s-round.h │ │ │ ├── blake2s.c │ │ │ ├── blake2sp.c │ │ │ ├── blake2xb.c │ │ │ ├── blake2xs.c │ │ │ ├── genkat-c.c │ │ │ ├── genkat-json.c │ │ │ ├── makefile │ │ │ └── makefile-aarch64 │ │ ├── power8 │ │ │ ├── blake2-config.h │ │ │ ├── blake2-impl.h │ │ │ ├── blake2.h │ │ │ ├── blake2b-load-pwr8.h │ │ │ ├── blake2b-round.h │ │ │ ├── blake2b.c │ │ │ ├── blake2bp.c │ │ │ ├── blake2s.c │ │ │ ├── blake2sp.c │ │ │ ├── blake2xb.c │ │ │ ├── blake2xs.c │ │ │ ├── genkat-c.c │ │ │ ├── genkat-json.c │ │ │ └── makefile │ │ ├── ref │ │ │ ├── blake2-impl.h │ │ │ ├── blake2.h │ │ │ ├── blake2b-ref.c │ │ │ ├── blake2bp-ref.c │ │ │ ├── blake2s-ref.c │ │ │ ├── blake2sp-ref.c │ │ │ ├── blake2xb-ref.c │ │ │ ├── blake2xs-ref.c │ │ │ ├── genkat-c.c │ │ │ ├── genkat-json.c │ │ │ └── makefile │ │ ├── sse │ │ │ ├── blake2-config.h │ │ │ ├── blake2-impl.h │ │ │ ├── blake2.h │ │ │ ├── blake2b-load-sse2.h │ │ │ ├── blake2b-load-sse41.h │ │ │ ├── blake2b-round.h │ │ │ ├── blake2b.c │ │ │ ├── blake2bp.c │ │ │ ├── blake2s-load-sse2.h │ │ │ ├── blake2s-load-sse41.h │ │ │ ├── blake2s-load-xop.h │ │ │ ├── blake2s-round.h │ │ │ ├── blake2s.c │ │ │ ├── blake2sp.c │ │ │ ├── blake2xb.c │ │ │ ├── blake2xs.c │ │ │ ├── genkat-c.c │ │ │ ├── genkat-json.c │ │ │ └── makefile │ │ └── testvectors │ │ │ ├── blake2-kat.h │ │ │ ├── blake2-kat.json │ │ │ ├── blake2b-kat.txt │ │ │ ├── blake2bp-kat.txt │ │ │ ├── blake2s-kat.txt │ │ │ └── blake2sp-kat.txt │ └── uthash │ │ ├── .github │ │ └── workflows │ │ │ └── build.yml │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── doc │ │ ├── .gitignore │ │ ├── ChangeLog.txt │ │ ├── Makefile │ │ ├── banner.png │ │ ├── banner.svg │ │ ├── google315d692c9c632ed0.html │ │ ├── index.html │ │ ├── license.html │ │ ├── rss.png │ │ ├── styles.css │ │ ├── userguide.txt │ │ ├── utarray.txt │ │ ├── uthash-mini.png │ │ ├── uthash-mini.svg │ │ ├── uthash.png │ │ ├── utlist.txt │ │ ├── utringbuffer.txt │ │ ├── utstack.txt │ │ └── utstring.txt │ │ ├── include │ │ ├── utarray.h │ │ ├── uthash.h │ │ ├── utlist.h │ │ ├── utringbuffer.h │ │ ├── utstack.h │ │ └── utstring.h │ │ ├── package.json │ │ ├── src │ │ ├── utarray.h │ │ ├── uthash.h │ │ ├── utlist.h │ │ ├── utringbuffer.h │ │ ├── utstack.h │ │ └── utstring.h │ │ └── tests │ │ ├── Makefile │ │ ├── README │ │ ├── all_funcs │ │ ├── bloom_perf.c │ │ ├── bloom_perf.sh │ │ ├── do_tests │ │ ├── do_tests.cygwin │ │ ├── do_tests.mingw │ │ ├── do_tests_win32.cmd │ │ ├── emit_keys.c │ │ ├── example.c │ │ ├── hashscan.c │ │ ├── keystats │ │ ├── lru_cache │ │ ├── Makefile │ │ ├── cache.c │ │ ├── cache.h │ │ └── main.c │ │ ├── simkeys.pl │ │ ├── sleep_test.c │ │ ├── tdiff.cpp │ │ ├── test1.ans │ │ ├── test1.c │ │ ├── test10.ans │ │ ├── test10.c │ │ ├── test11.ans │ │ ├── test11.c │ │ ├── test11.dat │ │ ├── test12.ans │ │ ├── test12.c │ │ ├── test13.ans │ │ ├── test13.c │ │ ├── test14.ans │ │ ├── test14.c │ │ ├── test14.dat │ │ ├── test15.ans │ │ ├── test15.c │ │ ├── test16.ans │ │ ├── test16.c │ │ ├── test17.ans │ │ ├── test17.c │ │ ├── test18.ans │ │ ├── test18.c │ │ ├── test19.ans │ │ ├── test19.c │ │ ├── test2.ans │ │ ├── test2.c │ │ ├── test20.ans │ │ ├── test20.c │ │ ├── test21.ans │ │ ├── test21.c │ │ ├── test22.ans │ │ ├── test22.c │ │ ├── test23.ans │ │ ├── test23.c │ │ ├── test24.ans │ │ ├── test24.c │ │ ├── test25.ans │ │ ├── test25.c │ │ ├── test26.ans │ │ ├── test26.c │ │ ├── test27.ans │ │ ├── test27.c │ │ ├── test28.ans │ │ ├── test28.c │ │ ├── test29.ans │ │ ├── test29.c │ │ ├── test3.ans │ │ ├── test3.c │ │ ├── test30.ans │ │ ├── test30.c │ │ ├── test31.ans │ │ ├── test31.c │ │ ├── test32.ans │ │ ├── test32.c │ │ ├── test33.ans │ │ ├── test33.c │ │ ├── test34.ans │ │ ├── test34.c │ │ ├── test35.ans │ │ ├── test35.c │ │ ├── test36.ans │ │ ├── test36.c │ │ ├── test37.ans │ │ ├── test37.c │ │ ├── test38.ans │ │ ├── test38.c │ │ ├── test39.ans │ │ ├── test39.c │ │ ├── test4.ans │ │ ├── test4.c │ │ ├── test40.ans │ │ ├── test40.c │ │ ├── test41.ans │ │ ├── test41.c │ │ ├── test42.ans │ │ ├── test42.c │ │ ├── test43.ans │ │ ├── test43.c │ │ ├── test44.ans │ │ ├── test44.c │ │ ├── test45.ans │ │ ├── test45.c │ │ ├── test46.ans │ │ ├── test46.c │ │ ├── test47.ans │ │ ├── test47.c │ │ ├── test48.ans │ │ ├── test48.c │ │ ├── test49.ans │ │ ├── test49.c │ │ ├── test5.ans │ │ ├── test5.c │ │ ├── test50.ans │ │ ├── test50.c │ │ ├── test51.ans │ │ ├── test51.c │ │ ├── test52.ans │ │ ├── test52.c │ │ ├── test53.ans │ │ ├── test53.c │ │ ├── test54.ans │ │ ├── test54.c │ │ ├── test55.ans │ │ ├── test55.c │ │ ├── test56.ans │ │ ├── test56.c │ │ ├── test57.ans │ │ ├── test57.c │ │ ├── test58.ans │ │ ├── test58.c │ │ ├── test59.ans │ │ ├── test59.c │ │ ├── test6.ans │ │ ├── test6.c │ │ ├── test60.ans │ │ ├── test60.c │ │ ├── test61.ans │ │ ├── test61.c │ │ ├── test62.ans │ │ ├── test62.c │ │ ├── test63.ans │ │ ├── test63.c │ │ ├── test64.ans │ │ ├── test64.c │ │ ├── test65.ans │ │ ├── test65.c │ │ ├── test65.dat │ │ ├── test66.ans │ │ ├── test66.c │ │ ├── test67.ans │ │ ├── test67.c │ │ ├── test68.ans │ │ ├── test68.c │ │ ├── test69.ans │ │ ├── test69.c │ │ ├── test7.ans │ │ ├── test7.c │ │ ├── test70.ans │ │ ├── test70.c │ │ ├── test71.ans │ │ ├── test71.c │ │ ├── test72.ans │ │ ├── test72.c │ │ ├── test73.ans │ │ ├── test73.c │ │ ├── test74.ans │ │ ├── test74.c │ │ ├── test75.ans │ │ ├── test75.c │ │ ├── test76.ans │ │ ├── test76.c │ │ ├── test77.ans │ │ ├── test77.c │ │ ├── test78.ans │ │ ├── test78.c │ │ ├── test79.ans │ │ ├── test79.c │ │ ├── test8.ans │ │ ├── test8.c │ │ ├── test80.ans │ │ ├── test80.c │ │ ├── test81.ans │ │ ├── test81.c │ │ ├── test82.ans │ │ ├── test82.c │ │ ├── test83.ans │ │ ├── test83.c │ │ ├── test84.ans │ │ ├── test84.c │ │ ├── test85.ans │ │ ├── test85.c │ │ ├── test86.ans │ │ ├── test86.c │ │ ├── test87.ans │ │ ├── test87.c │ │ ├── test88.ans │ │ ├── test88.c │ │ ├── test89.ans │ │ ├── test89.c │ │ ├── test9.ans │ │ ├── test9.c │ │ ├── test90.ans │ │ ├── test90.c │ │ ├── test91.ans │ │ ├── test91.c │ │ ├── test92.ans │ │ ├── test92.c │ │ ├── test93.ans │ │ ├── test93.c │ │ ├── test94.ans │ │ ├── test94.c │ │ ├── test95.ans │ │ ├── test95.c │ │ ├── test96.ans │ │ ├── test96.c │ │ ├── test97.ans │ │ ├── test97.c │ │ └── threads │ │ ├── Makefile │ │ ├── README │ │ ├── do_tests │ │ ├── test1.c │ │ └── test2.c └── util │ ├── CMakeLists.txt │ ├── example │ └── eg_fheutil_01.cxx │ ├── src │ ├── app_composite_poly.cxx │ └── util.cxx │ ├── test │ └── test_fheutil_01.cxx │ └── unittest │ ├── test_fheutil.cxx │ └── ut_util.cxx ├── model ├── resnet110_cifar10_train.onnx ├── resnet20_cifar10_pre.onnx ├── resnet32_cifar100_pre.onnx ├── resnet32_cifar10_pre.onnx ├── resnet44_cifar10_pre.onnx └── resnet56_cifar10_pre.onnx ├── nn-addon ├── CMakeLists.txt ├── LEGAL.md ├── README.md ├── benchmark │ ├── CMakeLists.txt │ └── src │ │ └── bm_nn_01.cxx ├── cloc.sh ├── cmake │ ├── external_doxygen.cmake │ ├── external_protogen.cmake │ ├── external_regex.cmake │ └── external_testdep.cmake ├── core │ ├── CMakeLists.txt │ ├── doc │ │ └── README.md │ ├── example │ │ ├── eg_nncore_01.cxx │ │ └── eg_nncore_ir2c.cxx │ ├── src │ │ ├── core.cxx │ │ └── opcode.cxx │ ├── test │ │ └── test_nncore_01.cxx │ └── unittest │ │ ├── test_nncore.cxx │ │ └── ut_core.cxx ├── devtools │ ├── .clang-format │ ├── .clang-tidy │ └── check_coding_style.py ├── doc │ ├── BUILD.md │ ├── Doxyfile.in │ ├── README.md │ ├── protobuf on macOS.md │ └── protobuf.rb ├── driver │ ├── CMakeLists.txt │ ├── doc │ │ └── README.md │ ├── example │ │ └── eg_nndriver_01.cxx │ ├── src │ │ ├── driver.cxx │ │ └── onnx_cmplr.cxx │ ├── test │ │ └── test_nndriver_01.cxx │ └── unittest │ │ ├── test_nndriver.cxx │ │ └── ut_driver.cxx ├── include │ └── nn │ │ ├── core │ │ ├── default_handler.h │ │ ├── handler.h │ │ ├── invalid_handler.h │ │ ├── ir2c_ctx.h │ │ ├── ir2c_handler.h │ │ ├── null_handler.h │ │ ├── opcode.h │ │ └── opcode_def.inc │ │ ├── driver │ │ ├── onnx_cmplr.h │ │ └── onnx_pipeline.h │ │ ├── llama │ │ ├── config.h │ │ ├── llama.h │ │ └── pass.h │ │ ├── onnx2air │ │ ├── air_const.h │ │ ├── air_func.h │ │ ├── air_gen.h │ │ ├── air_result.h │ │ ├── air_stmt.h │ │ ├── air_sym.h │ │ ├── air_type.h │ │ ├── air_utils.h │ │ ├── config.h │ │ ├── name_map.h │ │ ├── onnx2air_decl.h │ │ └── pass.h │ │ ├── util │ │ ├── cifar_reader.h │ │ ├── copy_prop.h │ │ └── util.h │ │ └── vector │ │ ├── config.h │ │ ├── core_handler.h │ │ ├── core_preg_handler.h │ │ ├── default_handler.h │ │ ├── handler.h │ │ ├── invalid_handler.h │ │ ├── ir2c_vector.h │ │ ├── null_handler.h │ │ ├── opcode_def.inc │ │ ├── pass.h │ │ ├── t2vslice_handler.h │ │ ├── tensor2vector_ctx.h │ │ ├── tensor2vector_handler.h │ │ ├── tensor2vector_util.h │ │ ├── tensor_instr.h │ │ ├── vector_ctx.h │ │ ├── vector_enum.h │ │ ├── vector_gen.h │ │ ├── vector_opcode.h │ │ └── vector_utils.h ├── llama │ ├── CMakeLists.txt │ ├── example │ │ └── eg_nnllama_01.cxx │ ├── src │ │ ├── config.cxx │ │ ├── llama.cxx │ │ ├── llama_impl.cxx │ │ └── pass.cxx │ ├── test │ │ └── test_nnllama_01.cxx │ └── unittest │ │ └── test_nnllama.cxx ├── onnx │ ├── CMakeLists.txt │ ├── doc │ │ └── README.md │ ├── example │ │ └── eg_nnonnx_01.cxx │ ├── src │ │ └── onnx.cxx │ ├── test │ │ └── test_nnonnx_01.cxx │ └── unittest │ │ ├── test_nnonnx.cxx │ │ └── ut_onnx.cxx ├── onnx2air │ ├── CMakeLists.txt │ ├── doc │ │ └── README.md │ ├── example │ │ └── eg_onnx2air_01.cxx │ ├── src │ │ ├── air_const.cxx │ │ ├── air_func.cxx │ │ ├── air_gen.cxx │ │ ├── air_stmt.cxx │ │ ├── air_sym.cxx │ │ ├── air_type.cxx │ │ ├── air_utils.cxx │ │ ├── config.cxx │ │ ├── onnx2air.cxx │ │ └── pass.cxx │ ├── test │ │ └── test_onnx2air_01.cxx │ └── unittest │ │ ├── test_nnonnx2air.cxx │ │ └── ut_onnx2air.cxx ├── opt │ ├── CMakeLists.txt │ ├── doc │ │ └── README.md │ ├── example │ │ └── eg_nnopt_01.cxx │ ├── src │ │ ├── copy_prop.cxx │ │ └── opt.cxx │ ├── test │ │ └── test_nnopt_01.cxx │ └── unittest │ │ ├── test_nnopt.cxx │ │ └── ut_opt.cxx ├── test │ ├── CMakeLists.txt │ ├── data_avhc_nn.yml │ ├── test_nn_01.cxx │ └── test_onnx_cmplr.sh ├── third-party │ └── onnx │ │ ├── .azure-pipelines │ │ ├── Linux-CI.yml │ │ ├── MacOS-CI.yml │ │ └── Windows-CI.yml │ │ ├── .clang-format │ │ ├── .github │ │ ├── ISSUE_TEMPLATE │ │ │ ├── bug.md │ │ │ ├── feature_request.md │ │ │ ├── operator.md │ │ │ └── question.md │ │ └── workflows │ │ │ ├── manylinux │ │ │ ├── entrypoint.sh │ │ │ └── test_package_i686.sh │ │ │ ├── release_linux_i686.yml │ │ │ ├── release_linux_x86_64.yml │ │ │ ├── release_mac.yml │ │ │ ├── release_win.yml │ │ │ ├── weekly_mac_ci.yml │ │ │ └── win_no_exception_ci.yml │ │ ├── .gitignore │ │ ├── .gitmodules │ │ ├── CMakeLists.txt │ │ ├── CODEOWNERS │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── MANIFEST.in │ │ ├── README.md │ │ ├── RELEASE-MANAGEMENT.md │ │ ├── SECURITY.md │ │ ├── VERSION_NUMBER │ │ ├── cmake │ │ ├── ONNXConfig.cmake.in │ │ ├── ONNXConfigVersion.cmake.in │ │ ├── Utils.cmake │ │ ├── external │ │ │ └── googletest.cmake │ │ ├── summary.cmake │ │ └── unittest.cmake │ │ ├── community │ │ ├── logo_request.md │ │ ├── readme.md │ │ ├── repo_guidelines.md │ │ ├── sc-election-guidelines.md │ │ ├── sigs.md │ │ └── working-groups.md │ │ ├── docs │ │ ├── AddNewOp.md │ │ ├── Broadcasting.md │ │ ├── CONTRIBUTING.md │ │ ├── Changelog-ml.md │ │ ├── Changelog.md │ │ ├── DefineDifferentiability.md │ │ ├── DimensionDenotation.md │ │ ├── ExternalData.md │ │ ├── IR.md │ │ ├── ImplementingAnOnnxBackend.md │ │ ├── ManagingExperimentalOps.md │ │ ├── MetadataProps.md │ │ ├── ONNXIFI.md │ │ ├── ONNX_logo_main.png │ │ ├── OnnxBackendTest.md │ │ ├── OnnxReleases.md │ │ ├── OpConventions.md │ │ ├── Operators-ml.md │ │ ├── Operators.md │ │ ├── Overview.md │ │ ├── PythonAPIOverview.md │ │ ├── Relicensing.md │ │ ├── ShapeInference.md │ │ ├── Syntax.md │ │ ├── TestCoverage-ml.md │ │ ├── TestCoverage.md │ │ ├── TypeAnnotations.md │ │ ├── TypeDenotation.md │ │ ├── VersionConverter.md │ │ ├── Versioning.md │ │ └── proposals │ │ │ ├── ArchiveFileFormatProposal.md │ │ │ ├── FunctionsProposal.md │ │ │ ├── NLPinONNXproposal.md │ │ │ └── ONNXIFIproposal.md │ │ ├── onnx │ │ ├── __init__.py │ │ ├── backend │ │ │ ├── __init__.py │ │ │ ├── base.py │ │ │ └── sample │ │ │ │ ├── __init__.py │ │ │ │ └── ops │ │ │ │ ├── __init__.py │ │ │ │ └── abs.py │ │ ├── bin │ │ │ ├── __init__.py │ │ │ └── checker.py │ │ ├── checker.cc │ │ ├── checker.h │ │ ├── checker.py │ │ ├── common │ │ │ ├── array_ref.h │ │ │ ├── assertions.cc │ │ │ ├── assertions.h │ │ │ ├── common.h │ │ │ ├── constants.h │ │ │ ├── graph_node_list.h │ │ │ ├── interned_strings.cc │ │ │ ├── interned_strings.h │ │ │ ├── ir.h │ │ │ ├── ir_pb_converter.cc │ │ │ ├── ir_pb_converter.h │ │ │ ├── model_helpers.cc │ │ │ ├── model_helpers.h │ │ │ ├── path.cc │ │ │ ├── path.h │ │ │ ├── platform_helpers.h │ │ │ ├── status.cc │ │ │ ├── status.h │ │ │ ├── stl_backports.h │ │ │ ├── tensor.h │ │ │ └── version.h │ │ ├── cpp2py_export.cc │ │ ├── defs │ │ │ ├── __init__.py │ │ │ ├── attr_proto_util.cc │ │ │ ├── attr_proto_util.h │ │ │ ├── controlflow │ │ │ │ ├── defs.cc │ │ │ │ └── old.cc │ │ │ ├── data_type_utils.cc │ │ │ ├── data_type_utils.h │ │ │ ├── function.cc │ │ │ ├── function.h │ │ │ ├── gen_doc.py │ │ │ ├── gen_shape_inference_information.py │ │ │ ├── generator │ │ │ │ ├── defs.cc │ │ │ │ └── old.cc │ │ │ ├── logical │ │ │ │ ├── defs.cc │ │ │ │ └── old.cc │ │ │ ├── math │ │ │ │ ├── defs.cc │ │ │ │ └── old.cc │ │ │ ├── nn │ │ │ │ ├── defs.cc │ │ │ │ └── old.cc │ │ │ ├── object_detection │ │ │ │ ├── defs.cc │ │ │ │ └── old.cc │ │ │ ├── operator_sets.h │ │ │ ├── operator_sets_ml.h │ │ │ ├── operator_sets_preview.h │ │ │ ├── operator_sets_training.h │ │ │ ├── parser.cc │ │ │ ├── parser.h │ │ │ ├── printer.cc │ │ │ ├── printer.h │ │ │ ├── quantization │ │ │ │ ├── defs.cc │ │ │ │ └── old.cc │ │ │ ├── reduction │ │ │ │ ├── defs.cc │ │ │ │ └── old.cc │ │ │ ├── rnn │ │ │ │ ├── defs.cc │ │ │ │ └── old.cc │ │ │ ├── schema.cc │ │ │ ├── schema.h │ │ │ ├── sequence │ │ │ │ └── defs.cc │ │ │ ├── shape_inference.h │ │ │ ├── tensor │ │ │ │ ├── defs.cc │ │ │ │ ├── old.cc │ │ │ │ ├── utils.cc │ │ │ │ └── utils.h │ │ │ ├── tensor_proto_util.cc │ │ │ ├── tensor_proto_util.h │ │ │ ├── tensor_util.cc │ │ │ ├── tensor_util.h │ │ │ ├── traditionalml │ │ │ │ ├── defs.cc │ │ │ │ └── old.cc │ │ │ └── training │ │ │ │ └── defs.cc │ │ ├── external_data_helper.py │ │ ├── frontend │ │ │ └── __init__.py │ │ ├── gen_proto.py │ │ ├── helper.py │ │ ├── mapping.py │ │ ├── numpy_helper.py │ │ ├── onnx-data.in.proto │ │ ├── onnx-data.proto │ │ ├── onnx-data.proto3 │ │ ├── onnx-data_pb.h │ │ ├── onnx-ml.proto │ │ ├── onnx-ml.proto3 │ │ ├── onnx-operators-ml.proto │ │ ├── onnx-operators-ml.proto3 │ │ ├── onnx-operators.in.proto │ │ ├── onnx-operators.proto │ │ ├── onnx-operators.proto3 │ │ ├── onnx-operators_pb.h │ │ ├── onnx.in.proto │ │ ├── onnx.proto │ │ ├── onnx.proto3 │ │ ├── onnx_cpp2py_export │ │ │ ├── __init__.pyi │ │ │ ├── checker.pyi │ │ │ ├── defs.pyi │ │ │ ├── shape_inference.pyi │ │ │ └── version_converter.pyi │ │ ├── onnx_pb.h │ │ ├── onnxifi.h │ │ ├── onnxifi_dummy.c │ │ ├── onnxifi_ext.h │ │ ├── onnxifi_loader.c │ │ ├── onnxifi_loader.h │ │ ├── onnxifi_utils.cc │ │ ├── onnxifi_utils.h │ │ ├── onnxifi_wrapper.c │ │ ├── proto_utils.h │ │ ├── py_utils.h │ │ ├── shape_inference.py │ │ ├── shape_inference │ │ │ ├── implementation.cc │ │ │ └── implementation.h │ │ ├── string_utils.h │ │ ├── test │ │ │ ├── __init__.pyi │ │ │ ├── basic_test.py │ │ │ ├── checker_test.py │ │ │ ├── cpp │ │ │ │ ├── function_context_test.cc │ │ │ │ ├── function_get_test.cc │ │ │ │ ├── function_verify_test.cc │ │ │ │ ├── onnxifi_backend_test.cc │ │ │ │ ├── op_reg_test.cc │ │ │ │ ├── parser_test.cc │ │ │ │ ├── schema_registration_test.cc │ │ │ │ ├── shape_inference_test.cc │ │ │ │ └── test_main.cc │ │ │ ├── elu_test.py │ │ │ ├── helper_test.py │ │ │ ├── numpy_helper_test.py │ │ │ ├── relu_test.py │ │ │ ├── schema_test.py │ │ │ ├── shape_inference_test.py │ │ │ ├── test_backend_test.py │ │ │ ├── test_external_data.py │ │ │ ├── test_with_ort.py │ │ │ ├── tools_test.py │ │ │ ├── training_tool_test.py │ │ │ ├── utils_test.py │ │ │ └── version_converter_test.py │ │ ├── tools │ │ │ ├── __init__.py │ │ │ ├── net_drawer.py │ │ │ └── update_model_dims.py │ │ ├── utils.py │ │ ├── version_converter.py │ │ └── version_converter │ │ │ ├── BaseConverter.h │ │ │ ├── adapters │ │ │ ├── adapter.h │ │ │ ├── add_layout.h │ │ │ ├── argmax_argmin_12_11.h │ │ │ ├── averagepool_7_6.h │ │ │ ├── axes_attribute_to_input.h │ │ │ ├── axes_input_to_attribute.h │ │ │ ├── batch_normalization_6_5.h │ │ │ ├── batch_normalization_6_7.h │ │ │ ├── batch_normalization_8_9.h │ │ │ ├── broadcast_backward_compatibility.h │ │ │ ├── broadcast_forward_compatibility.h │ │ │ ├── cast_9_8.h │ │ │ ├── clip_10_11.h │ │ │ ├── compatible.h │ │ │ ├── concat_3_4.h │ │ │ ├── dropout_11_12.h │ │ │ ├── dropout_6_7.h │ │ │ ├── extend_supported_types.h │ │ │ ├── gemm_6_7.h │ │ │ ├── gemm_7_6.h │ │ │ ├── maxpool_8_7.h │ │ │ ├── no_previous_version.h │ │ │ ├── pad_10_11.h │ │ │ ├── remove_consumed_inputs.h │ │ │ ├── remove_layout.h │ │ │ ├── reshape_4_5.h │ │ │ ├── reshape_5_4.h │ │ │ ├── resize_10_11.h │ │ │ ├── scan_8_9.h │ │ │ ├── scan_9_8.h │ │ │ ├── set_is_test.h │ │ │ ├── slice_9_10.h │ │ │ ├── softmax_12_13.h │ │ │ ├── split_12_13.h │ │ │ ├── split_13_12.h │ │ │ ├── sum_8_7.h │ │ │ ├── topk_9_10.h │ │ │ ├── type_restriction.h │ │ │ ├── upsample_6_7.h │ │ │ ├── upsample_8_9.h │ │ │ └── upsample_9_8.h │ │ │ ├── convert.cc │ │ │ ├── convert.h │ │ │ ├── helper.cc │ │ │ └── helper.h │ │ ├── pyproject.toml │ │ ├── setup.cfg │ │ ├── setup.py │ │ ├── stubs │ │ ├── .gitkeep │ │ └── google │ │ │ ├── README.md │ │ │ ├── __init__.pyi │ │ │ └── protobuf │ │ │ ├── __init__.pyi │ │ │ ├── any_pb2.pyi │ │ │ ├── any_test_pb2.pyi │ │ │ ├── api_pb2.pyi │ │ │ ├── compiler │ │ │ ├── __init__.pyi │ │ │ └── plugin_pb2.pyi │ │ │ ├── descriptor.pyi │ │ │ ├── descriptor_pb2.pyi │ │ │ ├── descriptor_pool.pyi │ │ │ ├── duration_pb2.pyi │ │ │ ├── empty_pb2.pyi │ │ │ ├── field_mask_pb2.pyi │ │ │ ├── internal │ │ │ ├── __init__.pyi │ │ │ ├── containers.pyi │ │ │ ├── decoder.pyi │ │ │ ├── encoder.pyi │ │ │ ├── enum_type_wrapper.pyi │ │ │ ├── message_listener.pyi │ │ │ └── wire_format.pyi │ │ │ ├── map_proto2_unittest_pb2.pyi │ │ │ ├── map_unittest_pb2.pyi │ │ │ ├── message.pyi │ │ │ ├── message_factory.pyi │ │ │ ├── reflection.pyi │ │ │ ├── source_context_pb2.pyi │ │ │ ├── struct_pb2.pyi │ │ │ ├── symbol_database.pyi │ │ │ ├── test_messages_proto2_pb2.pyi │ │ │ ├── test_messages_proto3_pb2.pyi │ │ │ ├── timestamp_pb2.pyi │ │ │ ├── type_pb2.pyi │ │ │ ├── unittest_arena_pb2.pyi │ │ │ ├── unittest_custom_options_pb2.pyi │ │ │ ├── unittest_import_pb2.pyi │ │ │ ├── unittest_import_public_pb2.pyi │ │ │ ├── unittest_mset_pb2.pyi │ │ │ ├── unittest_mset_wire_format_pb2.pyi │ │ │ ├── unittest_no_arena_import_pb2.pyi │ │ │ ├── unittest_no_arena_pb2.pyi │ │ │ ├── unittest_no_generic_services_pb2.pyi │ │ │ ├── unittest_pb2.pyi │ │ │ ├── unittest_proto3_arena_pb2.pyi │ │ │ ├── util │ │ │ ├── __init__.pyi │ │ │ └── json_format_proto3_pb2.pyi │ │ │ └── wrappers_pb2.pyi │ │ ├── third_party │ │ ├── benchmark │ │ │ ├── .clang-format │ │ │ ├── .gitignore │ │ │ ├── .travis-libcxx-setup.sh │ │ │ ├── .travis.yml │ │ │ ├── AUTHORS │ │ │ ├── BUILD.bazel │ │ │ ├── CMakeLists.txt │ │ │ ├── CONTRIBUTING.md │ │ │ ├── CONTRIBUTORS │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── WORKSPACE │ │ │ ├── appveyor.yml │ │ │ ├── cmake │ │ │ │ ├── AddCXXCompilerFlag.cmake │ │ │ │ ├── CXXFeatureCheck.cmake │ │ │ │ ├── Config.cmake.in │ │ │ │ ├── GetGitVersion.cmake │ │ │ │ ├── HandleGTest.cmake │ │ │ │ ├── benchmark.pc.in │ │ │ │ ├── gnu_posix_regex.cpp │ │ │ │ ├── llvm-toolchain.cmake │ │ │ │ ├── posix_regex.cpp │ │ │ │ ├── split_list.cmake │ │ │ │ ├── std_regex.cpp │ │ │ │ ├── steady_clock.cpp │ │ │ │ └── thread_safety_attributes.cpp │ │ │ ├── docs │ │ │ │ ├── AssemblyTests.md │ │ │ │ └── tools.md │ │ │ ├── include │ │ │ │ └── benchmark │ │ │ │ │ └── benchmark.h │ │ │ ├── mingw.py │ │ │ ├── releasing.md │ │ │ ├── src │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── arraysize.h │ │ │ │ ├── benchmark.cc │ │ │ │ ├── benchmark_api_internal.h │ │ │ │ ├── benchmark_main.cc │ │ │ │ ├── benchmark_register.cc │ │ │ │ ├── benchmark_register.h │ │ │ │ ├── check.h │ │ │ │ ├── colorprint.cc │ │ │ │ ├── colorprint.h │ │ │ │ ├── commandlineflags.cc │ │ │ │ ├── commandlineflags.h │ │ │ │ ├── complexity.cc │ │ │ │ ├── complexity.h │ │ │ │ ├── console_reporter.cc │ │ │ │ ├── counter.cc │ │ │ │ ├── counter.h │ │ │ │ ├── csv_reporter.cc │ │ │ │ ├── cycleclock.h │ │ │ │ ├── internal_macros.h │ │ │ │ ├── json_reporter.cc │ │ │ │ ├── log.h │ │ │ │ ├── mutex.h │ │ │ │ ├── re.h │ │ │ │ ├── reporter.cc │ │ │ │ ├── sleep.cc │ │ │ │ ├── sleep.h │ │ │ │ ├── statistics.cc │ │ │ │ ├── statistics.h │ │ │ │ ├── string_util.cc │ │ │ │ ├── string_util.h │ │ │ │ ├── sysinfo.cc │ │ │ │ ├── thread_manager.h │ │ │ │ ├── thread_timer.h │ │ │ │ ├── timers.cc │ │ │ │ └── timers.h │ │ │ ├── test │ │ │ │ ├── AssemblyTests.cmake │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── basic_test.cc │ │ │ │ ├── benchmark_gtest.cc │ │ │ │ ├── benchmark_test.cc │ │ │ │ ├── clobber_memory_assembly_test.cc │ │ │ │ ├── complexity_test.cc │ │ │ │ ├── cxx03_test.cc │ │ │ │ ├── diagnostics_test.cc │ │ │ │ ├── donotoptimize_assembly_test.cc │ │ │ │ ├── donotoptimize_test.cc │ │ │ │ ├── filter_test.cc │ │ │ │ ├── fixture_test.cc │ │ │ │ ├── link_main_test.cc │ │ │ │ ├── map_test.cc │ │ │ │ ├── multiple_ranges_test.cc │ │ │ │ ├── options_test.cc │ │ │ │ ├── output_test.h │ │ │ │ ├── output_test_helper.cc │ │ │ │ ├── register_benchmark_test.cc │ │ │ │ ├── reporter_output_test.cc │ │ │ │ ├── skip_with_error_test.cc │ │ │ │ ├── state_assembly_test.cc │ │ │ │ ├── statistics_gtest.cc │ │ │ │ ├── templated_fixture_test.cc │ │ │ │ ├── user_counters_tabular_test.cc │ │ │ │ └── user_counters_test.cc │ │ │ └── tools │ │ │ │ ├── compare.py │ │ │ │ ├── compare_bench.py │ │ │ │ ├── gbench │ │ │ │ ├── Inputs │ │ │ │ │ ├── test1_run1.json │ │ │ │ │ ├── test1_run2.json │ │ │ │ │ └── test2_run.json │ │ │ │ ├── __init__.py │ │ │ │ ├── report.py │ │ │ │ └── util.py │ │ │ │ └── strip_asm.py │ │ └── pybind11 │ │ │ ├── .appveyor.yml │ │ │ ├── .clang-tidy │ │ │ ├── .cmake-format.yaml │ │ │ ├── .github │ │ │ ├── CONTRIBUTING.md │ │ │ ├── ISSUE_TEMPLATE │ │ │ │ ├── bug-report.md │ │ │ │ ├── config.yml │ │ │ │ ├── feature-request.md │ │ │ │ └── question.md │ │ │ ├── dependabot.yml │ │ │ ├── labeler.yml │ │ │ ├── labeler_merged.yml │ │ │ ├── pull_request_template.md │ │ │ └── workflows │ │ │ │ ├── ci.yml │ │ │ │ ├── configure.yml │ │ │ │ ├── format.yml │ │ │ │ ├── labeler.yml │ │ │ │ └── pip.yml │ │ │ ├── .gitignore │ │ │ ├── .pre-commit-config.yaml │ │ │ ├── .readthedocs.yml │ │ │ ├── CMakeLists.txt │ │ │ ├── LICENSE │ │ │ ├── MANIFEST.in │ │ │ ├── README.rst │ │ │ ├── docs │ │ │ ├── Doxyfile │ │ │ ├── _static │ │ │ │ └── theme_overrides.css │ │ │ ├── advanced │ │ │ │ ├── cast │ │ │ │ │ ├── chrono.rst │ │ │ │ │ ├── custom.rst │ │ │ │ │ ├── eigen.rst │ │ │ │ │ ├── functional.rst │ │ │ │ │ ├── index.rst │ │ │ │ │ ├── overview.rst │ │ │ │ │ ├── stl.rst │ │ │ │ │ └── strings.rst │ │ │ │ ├── classes.rst │ │ │ │ ├── embedding.rst │ │ │ │ ├── exceptions.rst │ │ │ │ ├── functions.rst │ │ │ │ ├── misc.rst │ │ │ │ ├── pycpp │ │ │ │ │ ├── index.rst │ │ │ │ │ ├── numpy.rst │ │ │ │ │ ├── object.rst │ │ │ │ │ └── utilities.rst │ │ │ │ └── smart_ptrs.rst │ │ │ ├── basics.rst │ │ │ ├── benchmark.py │ │ │ ├── benchmark.rst │ │ │ ├── changelog.rst │ │ │ ├── classes.rst │ │ │ ├── cmake │ │ │ │ └── index.rst │ │ │ ├── compiling.rst │ │ │ ├── conf.py │ │ │ ├── faq.rst │ │ │ ├── index.rst │ │ │ ├── installing.rst │ │ │ ├── limitations.rst │ │ │ ├── pybind11-logo.png │ │ │ ├── pybind11_vs_boost_python1.png │ │ │ ├── pybind11_vs_boost_python1.svg │ │ │ ├── pybind11_vs_boost_python2.png │ │ │ ├── pybind11_vs_boost_python2.svg │ │ │ ├── reference.rst │ │ │ ├── release.rst │ │ │ ├── requirements.txt │ │ │ └── upgrade.rst │ │ │ ├── include │ │ │ └── pybind11 │ │ │ │ ├── attr.h │ │ │ │ ├── buffer_info.h │ │ │ │ ├── cast.h │ │ │ │ ├── chrono.h │ │ │ │ ├── common.h │ │ │ │ ├── complex.h │ │ │ │ ├── detail │ │ │ │ ├── class.h │ │ │ │ ├── common.h │ │ │ │ ├── descr.h │ │ │ │ ├── init.h │ │ │ │ ├── internals.h │ │ │ │ └── typeid.h │ │ │ │ ├── eigen.h │ │ │ │ ├── embed.h │ │ │ │ ├── eval.h │ │ │ │ ├── functional.h │ │ │ │ ├── iostream.h │ │ │ │ ├── numpy.h │ │ │ │ ├── operators.h │ │ │ │ ├── options.h │ │ │ │ ├── pybind11.h │ │ │ │ ├── pytypes.h │ │ │ │ ├── stl.h │ │ │ │ └── stl_bind.h │ │ │ ├── pybind11 │ │ │ ├── __init__.py │ │ │ ├── __main__.py │ │ │ ├── _version.py │ │ │ ├── _version.pyi │ │ │ ├── commands.py │ │ │ ├── py.typed │ │ │ ├── setup_helpers.py │ │ │ └── setup_helpers.pyi │ │ │ ├── pyproject.toml │ │ │ ├── setup.cfg │ │ │ ├── setup.py │ │ │ ├── tests │ │ │ ├── CMakeLists.txt │ │ │ ├── conftest.py │ │ │ ├── constructor_stats.h │ │ │ ├── cross_module_gil_utils.cpp │ │ │ ├── env.py │ │ │ ├── extra_python_package │ │ │ │ ├── pytest.ini │ │ │ │ └── test_files.py │ │ │ ├── extra_setuptools │ │ │ │ ├── pytest.ini │ │ │ │ └── test_setuphelper.py │ │ │ ├── local_bindings.h │ │ │ ├── object.h │ │ │ ├── pybind11_cross_module_tests.cpp │ │ │ ├── pybind11_tests.cpp │ │ │ ├── pybind11_tests.h │ │ │ ├── pytest.ini │ │ │ ├── requirements.txt │ │ │ ├── test_async.cpp │ │ │ ├── test_async.py │ │ │ ├── test_buffers.cpp │ │ │ ├── test_buffers.py │ │ │ ├── test_builtin_casters.cpp │ │ │ ├── test_builtin_casters.py │ │ │ ├── test_call_policies.cpp │ │ │ ├── test_call_policies.py │ │ │ ├── test_callbacks.cpp │ │ │ ├── test_callbacks.py │ │ │ ├── test_chrono.cpp │ │ │ ├── test_chrono.py │ │ │ ├── test_class.cpp │ │ │ ├── test_class.py │ │ │ ├── test_cmake_build │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── embed.cpp │ │ │ │ ├── installed_embed │ │ │ │ │ └── CMakeLists.txt │ │ │ │ ├── installed_function │ │ │ │ │ └── CMakeLists.txt │ │ │ │ ├── installed_target │ │ │ │ │ └── CMakeLists.txt │ │ │ │ ├── main.cpp │ │ │ │ ├── subdirectory_embed │ │ │ │ │ └── CMakeLists.txt │ │ │ │ ├── subdirectory_function │ │ │ │ │ └── CMakeLists.txt │ │ │ │ ├── subdirectory_target │ │ │ │ │ └── CMakeLists.txt │ │ │ │ └── test.py │ │ │ ├── test_constants_and_functions.cpp │ │ │ ├── test_constants_and_functions.py │ │ │ ├── test_copy_move.cpp │ │ │ ├── test_copy_move.py │ │ │ ├── test_custom_type_casters.cpp │ │ │ ├── test_custom_type_casters.py │ │ │ ├── test_docstring_options.cpp │ │ │ ├── test_docstring_options.py │ │ │ ├── test_eigen.cpp │ │ │ ├── test_eigen.py │ │ │ ├── test_embed │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── catch.cpp │ │ │ │ ├── external_module.cpp │ │ │ │ ├── test_interpreter.cpp │ │ │ │ └── test_interpreter.py │ │ │ ├── test_enum.cpp │ │ │ ├── test_enum.py │ │ │ ├── test_eval.cpp │ │ │ ├── test_eval.py │ │ │ ├── test_eval_call.py │ │ │ ├── test_exceptions.cpp │ │ │ ├── test_exceptions.py │ │ │ ├── test_factory_constructors.cpp │ │ │ ├── test_factory_constructors.py │ │ │ ├── test_gil_scoped.cpp │ │ │ ├── test_gil_scoped.py │ │ │ ├── test_iostream.cpp │ │ │ ├── test_iostream.py │ │ │ ├── test_kwargs_and_defaults.cpp │ │ │ ├── test_kwargs_and_defaults.py │ │ │ ├── test_local_bindings.cpp │ │ │ ├── test_local_bindings.py │ │ │ ├── test_methods_and_attributes.cpp │ │ │ ├── test_methods_and_attributes.py │ │ │ ├── test_modules.cpp │ │ │ ├── test_modules.py │ │ │ ├── test_multiple_inheritance.cpp │ │ │ ├── test_multiple_inheritance.py │ │ │ ├── test_numpy_array.cpp │ │ │ ├── test_numpy_array.py │ │ │ ├── test_numpy_dtypes.cpp │ │ │ ├── test_numpy_dtypes.py │ │ │ ├── test_numpy_vectorize.cpp │ │ │ ├── test_numpy_vectorize.py │ │ │ ├── test_opaque_types.cpp │ │ │ ├── test_opaque_types.py │ │ │ ├── test_operator_overloading.cpp │ │ │ ├── test_operator_overloading.py │ │ │ ├── test_pickling.cpp │ │ │ ├── test_pickling.py │ │ │ ├── test_pytypes.cpp │ │ │ ├── test_pytypes.py │ │ │ ├── test_sequences_and_iterators.cpp │ │ │ ├── test_sequences_and_iterators.py │ │ │ ├── test_smart_ptr.cpp │ │ │ ├── test_smart_ptr.py │ │ │ ├── test_stl.cpp │ │ │ ├── test_stl.py │ │ │ ├── test_stl_binders.cpp │ │ │ ├── test_stl_binders.py │ │ │ ├── test_tagbased_polymorphic.cpp │ │ │ ├── test_tagbased_polymorphic.py │ │ │ ├── test_union.cpp │ │ │ ├── test_union.py │ │ │ ├── test_virtual_functions.cpp │ │ │ └── test_virtual_functions.py │ │ │ └── tools │ │ │ ├── FindCatch.cmake │ │ │ ├── FindEigen3.cmake │ │ │ ├── FindPythonLibsNew.cmake │ │ │ ├── check-style.sh │ │ │ ├── cmake_uninstall.cmake.in │ │ │ ├── libsize.py │ │ │ ├── pybind11Common.cmake │ │ │ ├── pybind11Config.cmake.in │ │ │ ├── pybind11NewTools.cmake │ │ │ ├── pybind11Tools.cmake │ │ │ ├── pyproject.toml │ │ │ ├── setup_global.py.in │ │ │ └── setup_main.py.in │ │ ├── tools │ │ ├── __init__.pyi │ │ ├── gen_coverage_report.py │ │ ├── mypy-onnx.py │ │ ├── protobuf-bench.cc │ │ ├── protoc-gen-mypy.bat │ │ ├── protoc-gen-mypy.py │ │ ├── protoc-gen-mypy.sh.in │ │ ├── update_doc.bat │ │ └── update_doc.sh │ │ └── workflow_scripts │ │ ├── config.py │ │ ├── test_generated_backend.py │ │ └── test_model_zoo.py ├── util │ ├── CMakeLists.txt │ ├── doc │ │ └── README.md │ ├── example │ │ └── eg_nnutil_01.cxx │ ├── src │ │ └── util.cxx │ ├── test │ │ └── test_nnutil_01.cxx │ └── unittest │ │ ├── test_nnutil.cxx │ │ └── ut_util.cxx └── vector │ ├── CMakeLists.txt │ ├── example │ ├── eg_nnvector_01.cxx │ ├── eg_nnvector_02.cxx │ ├── eg_nnvector_03.cxx │ └── eg_nnvector_04.cxx │ ├── src │ ├── config.cxx │ ├── pass.cxx │ ├── tensor2vector_util.cxx │ ├── vector.cxx │ ├── vector_gen.cxx │ ├── vector_opcode.cxx │ └── vector_utils.cxx │ ├── test │ └── test_nnvector_01.cxx │ └── unittest │ ├── test_nnvector.cxx │ └── test_vector_opcodes.cxx ├── requirements.txt └── scripts ├── Figure5.png ├── Figure6.png ├── Figure7.png ├── Table10-10-ImagesOnly.png ├── Table10.png ├── Table9.png ├── accuracy.sh ├── accuracy_all.py ├── ace-arch.png ├── ace-ml-integ.png ├── ace-ppml.png ├── ace_pre.log ├── build_cmplr.sh ├── build_cmplr_omp.sh ├── build_resnet110_cifar10.sh ├── build_resnet20_cifar10.sh ├── build_resnet32_cifar10.sh ├── build_resnet32_cifar100.sh ├── build_resnet44_cifar10.sh ├── build_resnet56_cifar10.sh ├── entrypoint.sh ├── expert_pre.log ├── generate_figures.py ├── infer_model.py ├── infer_model_cifar100.py ├── install.py ├── onnx2c.py └── perf.py /air-infra/LEGAL.md: -------------------------------------------------------------------------------- 1 | Legal Disclaimer 2 | 3 | Within this source code, the comments in Chinese shall be the original, governing version. Any comment in other languages are for reference only. In the event of any conflict between the Chinese language version comments and other language version comments, the Chinese language version shall prevail. 4 | 5 | 法律免责声明 6 | 7 | 关于代码注释部分,中文注释为官方版本,其它语言注释仅做参考。中文注释可能与其它语言注释存在不一致,当中文注释与其它语言注释存在不一致时,请以中文注释为准。 -------------------------------------------------------------------------------- /air-infra/base/doc/README.md: -------------------------------------------------------------------------------- 1 | # design documents 2 | 3 | ## TODO -------------------------------------------------------------------------------- /air-infra/base/example/eg_airbase_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /air-infra/base/test/test_airbase_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /air-infra/base/unittest/test_airbase.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /air-infra/benchmark/src/bm_air_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #define PROFILE 10 | 11 | #include "benchmark/benchmark.h" 12 | 13 | // TODO: replace later 14 | void Bm_string_copy(benchmark::State& state) { 15 | std::string x = "hello"; 16 | for (auto _ : state) std::string copy(x); 17 | } 18 | 19 | BENCHMARK(Bm_string_copy); 20 | 21 | BENCHMARK_MAIN(); -------------------------------------------------------------------------------- /air-infra/cg/doc/README.md: -------------------------------------------------------------------------------- 1 | # design documents 2 | 3 | ## TODO -------------------------------------------------------------------------------- /air-infra/cg/example/eg_aircg_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "air/util/debug.h" 10 | 11 | int main() { AIR_DEBUG("test example...\n"); } -------------------------------------------------------------------------------- /air-infra/cg/src/cg.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "air/cg/cg.h" 10 | 11 | #include "air/util/debug.h" 12 | 13 | namespace air { 14 | 15 | namespace cg { 16 | 17 | // TODO: replace later 18 | int AIR_CG::Cg_test() { 19 | AIR_DEBUG("air-infra::CG ...\n"); 20 | 21 | return 0; 22 | } 23 | 24 | } // namespace cg 25 | 26 | } // namespace air -------------------------------------------------------------------------------- /air-infra/cg/test/test_aircg_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "air/cg/cg.h" 10 | 11 | using namespace air::cg; 12 | 13 | // TODO: replace later 14 | int main() { 15 | AIR_CG cg; 16 | cg.Cg_test(); 17 | 18 | return 0; 19 | } 20 | -------------------------------------------------------------------------------- /air-infra/cg/unittest/test_aircg.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /air-infra/cg/unittest/ut_cg.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "air/cg/cg.h" 10 | #include "gtest/gtest.h" 11 | 12 | using namespace air::cg; 13 | 14 | namespace { 15 | 16 | TEST(CG, MESSAGE) { 17 | AIR_CG cg; 18 | cg.Cg_test(); 19 | 20 | EXPECT_EQ(0, 0); 21 | } 22 | 23 | } // namespace -------------------------------------------------------------------------------- /air-infra/cloc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | for i in base core driver opt util; do 4 | echo "$i HEADER" 5 | echo "=====================================" 6 | cloc include/air/$i 7 | echo "$i SOURCE" 8 | echo "=====================================" 9 | cloc $i/src 10 | echo "$i UNITTEST" 11 | echo "=====================================" 12 | cloc $i/unittest $i/test $i/example 13 | echo "$i TOTAL" 14 | echo "=====================================" 15 | cloc include/air/$i $i/src $i/unittest $i/test $i/example 16 | done 17 | 18 | -------------------------------------------------------------------------------- /air-infra/cmake/external_jsoncpp.cmake: -------------------------------------------------------------------------------- 1 | set (JSONCPP_WITH_TESTS OFF CACHE BOOL "Disable tests of the jsoncpp library." FORCE) 2 | set (JSONCPP_WITH_POST_BUILD_UNITTEST OFF CACHE BOOL "Disable unittest of the jsoncpp library." FORCE) 3 | add_subdirectory (${PROJECT_SOURCE_DIR}/third-party/jsoncpp EXCLUDE_FROM_ALL) 4 | include_directories (${PROJECT_SOURCE_DIR}/third-party/jsoncpp/include) -------------------------------------------------------------------------------- /air-infra/config.in: -------------------------------------------------------------------------------- 1 | #ifndef AIR_UTIL_CONFIG_H 2 | #define AIR_UTIL_CONFIG_H 3 | 4 | #define LIBRARY_BUILD_TYPE "@CMAKE_BUILD_TYPE@" 5 | #define LIBRARY_BUILD_VERSION "@AIR_VERSION@" 6 | #define LIBRARY_BUILD_TIMESTAMP "@BUILD_TIMESTAMP@" 7 | 8 | #endif // AIR_UTIL_CONFIG_H -------------------------------------------------------------------------------- /air-infra/core/doc/README.md: -------------------------------------------------------------------------------- 1 | # design documents 2 | 3 | ## TODO -------------------------------------------------------------------------------- /air-infra/core/example/eg_aircore_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /air-infra/core/test/test_aircore_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /air-infra/core/unittest/test_aircore.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /air-infra/devtools/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: Google 2 | IndentWidth: 2 3 | AccessModifierOffset: -2 4 | AlignArrayOfStructures: Left 5 | AlignConsecutiveAssignments: true 6 | AlignConsecutiveDeclarations: true 7 | AlignConsecutiveMacros: true 8 | DerivePointerAlignment: false 9 | -------------------------------------------------------------------------------- /air-infra/devtools/README.md: -------------------------------------------------------------------------------- 1 | The devtools directory contains files used to format and check naming convention of codes, check naming convention documents for details. 2 | 3 | In naming convention check, we reuse clang-tidy's Camel_Snake_Case as our Capitalized_snake_case. 4 | And we replace llvm::Regex with std::regex because the former has bugs in matching, check regex.patch for details. And the patch is based on llvm 16.0.0. 5 | 6 | IMPORTANT: 7 | The script will not walk through files not in repository. Add your files to repository first so that format and naming convention check are performed automatically in make command. 8 | -------------------------------------------------------------------------------- /air-infra/doc/README.md: -------------------------------------------------------------------------------- 1 | # design documents 2 | 3 | ## TODO -------------------------------------------------------------------------------- /air-infra/doc/visitor-handler-context.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/air-infra/doc/visitor-handler-context.png -------------------------------------------------------------------------------- /air-infra/driver/doc/README.md: -------------------------------------------------------------------------------- 1 | # design documents 2 | 3 | ## TODO -------------------------------------------------------------------------------- /air-infra/driver/src/driver.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int Driver_test() { return 0; } -------------------------------------------------------------------------------- /air-infra/driver/test/test_airdriver_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "air/util/debug.h" 10 | 11 | // TODO: replace later 12 | int main() { 13 | AIR_DEBUG("air-infra ...\n"); 14 | 15 | return 0; 16 | } -------------------------------------------------------------------------------- /air-infra/driver/unittest/test_airdriver.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /air-infra/include/air/cg/cg.h: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #ifndef AIR_CG_H 10 | #define AIR_CG_H 11 | 12 | namespace air { 13 | 14 | namespace cg { 15 | 16 | class AIR_CG { 17 | public: 18 | int Cg_test(); 19 | }; 20 | 21 | } // namespace cg 22 | 23 | } // namespace air 24 | 25 | #endif // AIR_CG_H -------------------------------------------------------------------------------- /air-infra/include/air/opt/opt.h: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #ifndef AIR_OPT_H 10 | #define AIR_OPT_H 11 | 12 | namespace air { 13 | 14 | namespace opt { 15 | 16 | class AIR_OPT { 17 | public: 18 | int Opt_test(); 19 | }; 20 | 21 | } // namespace opt 22 | 23 | } // namespace air 24 | 25 | #endif // AIR_OPT_H -------------------------------------------------------------------------------- /air-infra/opt/doc/README.md: -------------------------------------------------------------------------------- 1 | # design documents 2 | 3 | ## TODO -------------------------------------------------------------------------------- /air-infra/opt/example/eg_airopt_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "air/opt/opt.h" 10 | 11 | using namespace air::opt; 12 | 13 | // TODO: replace later 14 | int main() { 15 | AIR_OPT opt; 16 | opt.Opt_test(); 17 | 18 | return 0; 19 | } -------------------------------------------------------------------------------- /air-infra/opt/src/opt.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "air/opt/opt.h" 10 | 11 | #include "air/util/debug.h" 12 | 13 | namespace air { 14 | 15 | namespace opt { 16 | 17 | // TODO: replace later 18 | int AIR_OPT::Opt_test() { 19 | AIR_DEBUG("air-infra::OPT ...\n"); 20 | 21 | return 0; 22 | } 23 | 24 | } // namespace opt 25 | 26 | } // namespace air -------------------------------------------------------------------------------- /air-infra/opt/test/test_airopt_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "air/opt/opt.h" 10 | 11 | using namespace air::opt; 12 | 13 | // TODO: replace later 14 | int main() { 15 | AIR_OPT opt; 16 | opt.Opt_test(); 17 | 18 | return 0; 19 | } -------------------------------------------------------------------------------- /air-infra/opt/unittest/test_airopt.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /air-infra/opt/unittest/ut_opt.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "air/opt/opt.h" 10 | #include "gtest/gtest.h" 11 | 12 | using namespace air::opt; 13 | 14 | namespace { 15 | 16 | TEST(OPT, MESSAGE) { 17 | AIR_OPT opt; 18 | opt.Opt_test(); 19 | 20 | EXPECT_EQ(0, 0); 21 | } 22 | 23 | } // namespace -------------------------------------------------------------------------------- /air-infra/plugin/example/eg_airplugin.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | int main() {} -------------------------------------------------------------------------------- /air-infra/plugin/test/test_airplugin.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | int main() {} -------------------------------------------------------------------------------- /air-infra/plugin/unittest/pybase.py: -------------------------------------------------------------------------------- 1 | print("Hello from Python File!") -------------------------------------------------------------------------------- /air-infra/plugin/unittest/test_airutil.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /air-infra/test/test_air.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "air/util/debug.h" 10 | 11 | using namespace air::util; 12 | 13 | // TODO: replace later 14 | int main() { 15 | TFILE trace("test_air.t"); 16 | AIR_TRACE(trace, "Test AIR_TRACE to file .... \n"); 17 | 18 | return 0; 19 | } -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: LLVM 2 | DerivePointerAlignment: false 3 | PointerAlignment: Left 4 | 5 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/.clang-tidy: -------------------------------------------------------------------------------- 1 | --- 2 | Checks: 'google-readability-casting,modernize-deprecated-headers,modernize-loop-convert,modernize-use-auto,modernize-use-default-member-init,modernize-use-using,readability-else-after-return,readability-redundant-member-init,readability-redundant-string-cstr' 3 | WarningsAsErrors: '' 4 | HeaderFilterRegex: '' 5 | AnalyzeTemporaryDtors: false 6 | FormatStyle: none 7 | CheckOptions: 8 | - key: modernize-use-using.IgnoreMacros 9 | value: '0' 10 | ... 11 | 12 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.h text 3 | *.cpp text 4 | *.json text 5 | *.in text 6 | *.sh eol=lf 7 | *.bat eol=crlf 8 | *.vcproj eol=crlf 9 | *.vcxproj eol=crlf 10 | *.sln eol=crlf 11 | devtools/agent_vm* eol=crlf 12 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/.travis_scripts/run-clang-format.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" 4 | python $DIR/run-clang-format.py -r $DIR/../src/**/ $DIR/../include/**/ 5 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/.travis_scripts/travis.before_install.linux.sh: -------------------------------------------------------------------------------- 1 | set -vex 2 | 3 | # Preinstalled versions of python are dependent on which Ubuntu distribution 4 | # you are running. The below version needs to be updated whenever we roll 5 | # the Ubuntu version used in Travis. 6 | # https://docs.travis-ci.com/user/languages/python/ 7 | 8 | pyenv global 3.7.1 9 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/.travis_scripts/travis.before_install.osx.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/air-infra/third-party/jsoncpp/.travis_scripts/travis.before_install.osx.sh -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/.travis_scripts/travis.install.linux.sh: -------------------------------------------------------------------------------- 1 | set -vex 2 | 3 | pip3 install --user meson ninja 4 | which meson 5 | which ninja 6 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/.travis_scripts/travis.install.osx.sh: -------------------------------------------------------------------------------- 1 | # NOTHING TO DO HERE 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/CTestConfig.cmake: -------------------------------------------------------------------------------- 1 | ## This file should be placed in the root directory of your project. 2 | ## Then modify the CMakeLists.txt file in the root directory of your 3 | ## project to incorporate the testing dashboard. 4 | ## 5 | ## # The following are required to submit to the CDash dashboard: 6 | ## ENABLE_TESTING() 7 | ## INCLUDE(CTest) 8 | 9 | set(CTEST_PROJECT_NAME "jsoncpp") 10 | set(CTEST_NIGHTLY_START_TIME "01:23:45 UTC") 11 | 12 | set(CTEST_DROP_METHOD "https") 13 | set(CTEST_DROP_SITE "my.cdash.org") 14 | set(CTEST_DROP_LOCATION "/submit.php?project=jsoncpp") 15 | set(CTEST_DROP_SITE_CDASH TRUE) 16 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/devtools/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2010 Baptiste Lepilleur and The JsonCpp Authors 2 | # Distributed under MIT license, or public domain if desired and 3 | # recognized in your jurisdiction. 4 | # See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE 5 | 6 | # module 7 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/doc/readme.txt: -------------------------------------------------------------------------------- 1 | The documentation is generated using doxygen (http://www.doxygen.org). 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/doc/roadmap.dox: -------------------------------------------------------------------------------- 1 | /*! \page roadmap JsonCpp roadmap 2 | Moved to: https://github.com/open-source-parsers/jsoncpp/wiki/Roadmap 3 | */ 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/example/readFromStream/errorFormat.json: -------------------------------------------------------------------------------- 1 | { 2 | 1: "value" 3 | } -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/example/readFromStream/withComment.json: -------------------------------------------------------------------------------- 1 | // comment head 2 | { 3 | // comment before 4 | "key" : "value" 5 | // comment after 6 | }// comment tail 7 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/get_version.pl: -------------------------------------------------------------------------------- 1 | while (<>) { 2 | if (/version : '(.+)',/) { 3 | print "$1"; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/include/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | file(GLOB INCLUDE_FILES "json/*.h") 2 | install(FILES 3 | ${INCLUDE_FILES} 4 | DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/json) 5 | 6 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/include/PreventInBuildInstalls.cmake: -------------------------------------------------------------------------------- 1 | string(TOLOWER "${CMAKE_INSTALL_PREFIX}" _PREFIX) 2 | string(TOLOWER "${ITK_BINARY_DIR}" _BUILD) 3 | if("${_PREFIX}" STREQUAL "${_BUILD}") 4 | message(FATAL_ERROR 5 | "The current CMAKE_INSTALL_PREFIX points at the build tree:\n" 6 | " ${CMAKE_INSTALL_PREFIX}\n" 7 | "This is not supported." 8 | ) 9 | endif() 10 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/include/json/json.h: -------------------------------------------------------------------------------- 1 | // Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors 2 | // Distributed under MIT license, or public domain if desired and 3 | // recognized in your jurisdiction. 4 | // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE 5 | 6 | #ifndef JSON_JSON_H_INCLUDED 7 | #define JSON_JSON_H_INCLUDED 8 | 9 | #include "config.h" 10 | #include "json_features.h" 11 | #include "reader.h" 12 | #include "value.h" 13 | #include "writer.h" 14 | 15 | #endif // JSON_JSON_H_INCLUDED 16 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/jsoncpp-namespaced-targets.cmake: -------------------------------------------------------------------------------- 1 | if (TARGET jsoncpp_static) 2 | add_library(JsonCpp::JsonCpp INTERFACE IMPORTED) 3 | set_target_properties(JsonCpp::JsonCpp PROPERTIES INTERFACE_LINK_LIBRARIES "jsoncpp_static") 4 | elseif (TARGET jsoncpp_lib) 5 | add_library(JsonCpp::JsonCpp INTERFACE IMPORTED) 6 | set_target_properties(JsonCpp::JsonCpp PROPERTIES INTERFACE_LINK_LIBRARIES "jsoncpp_lib") 7 | endif () -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/jsoncppConfig.cmake.in: -------------------------------------------------------------------------------- 1 | cmake_policy(PUSH) 2 | cmake_policy(VERSION 3.0) 3 | 4 | @PACKAGE_INIT@ 5 | 6 | include ( "${CMAKE_CURRENT_LIST_DIR}/jsoncpp-targets.cmake" ) 7 | include ( "${CMAKE_CURRENT_LIST_DIR}/jsoncpp-namespaced-targets.cmake" ) 8 | 9 | check_required_components(JsonCpp) 10 | 11 | cmake_policy(POP) 12 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/meson_options.txt: -------------------------------------------------------------------------------- 1 | option( 2 | 'tests', 3 | type : 'boolean', 4 | value : true, 5 | description : 'Enable building tests') 6 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/pkg-config/jsoncpp.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=@libdir_for_pc_file@ 4 | includedir=@includedir_for_pc_file@ 5 | 6 | Name: jsoncpp 7 | Description: A C++ library for interacting with JSON 8 | Version: @PROJECT_VERSION@ 9 | URL: https://github.com/open-source-parsers/jsoncpp 10 | Libs: -L${libdir} -ljsoncpp 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/reformat.sh: -------------------------------------------------------------------------------- 1 | find src -name '*.cpp' -or -name '*.h' | xargs clang-format -i 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(lib_json) 2 | if(JSONCPP_WITH_TESTS) 3 | add_subdirectory(jsontestrunner) 4 | add_subdirectory(test_lib_json) 5 | endif() 6 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/src/test_lib_json/fuzz.h: -------------------------------------------------------------------------------- 1 | // Copyright 2007-2010 The JsonCpp Authors 2 | // Distributed under MIT license, or public domain if desired and 3 | // recognized in your jurisdiction. 4 | // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE 5 | 6 | #ifndef FUZZ_H_INCLUDED 7 | #define FUZZ_H_INCLUDED 8 | 9 | #include 10 | #include 11 | 12 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size); 13 | 14 | #endif // ifndef FUZZ_H_INCLUDED 15 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/cleantests.py: -------------------------------------------------------------------------------- 1 | # Copyright 2007 Baptiste Lepilleur and The JsonCpp Authors 2 | # Distributed under MIT license, or public domain if desired and 3 | # recognized in your jurisdiction. 4 | # See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE 5 | 6 | """Removes all files created during testing.""" 7 | 8 | import glob 9 | import os 10 | 11 | paths = [] 12 | for pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]: 13 | paths += glob.glob('data/' + pattern) 14 | 15 | for path in paths: 16 | os.unlink(path) 17 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/fail_invalid_quote.json: -------------------------------------------------------------------------------- 1 | {'//this is bad JSON.'} -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/fail_test_array_01.json: -------------------------------------------------------------------------------- 1 | [ 1 2 3] 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/fail_test_array_02.json: -------------------------------------------------------------------------------- 1 | [1,,] 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/fail_test_object_01.json: -------------------------------------------------------------------------------- 1 | { "count" : 1234,, } 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_array_01.expected: -------------------------------------------------------------------------------- 1 | .=[] 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_array_01.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_array_02.expected: -------------------------------------------------------------------------------- 1 | .=[] 2 | .[0]=1 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_array_02.json: -------------------------------------------------------------------------------- 1 | [1] 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_array_03.expected: -------------------------------------------------------------------------------- 1 | .=[] 2 | .[0]=1 3 | .[1]=2 4 | .[2]=3 5 | .[3]=4 6 | .[4]=5 7 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_array_03.json: -------------------------------------------------------------------------------- 1 | [ 1, 2 , 3,4,5] 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_array_04.expected: -------------------------------------------------------------------------------- 1 | .=[] 2 | .[0]=1 3 | .[1]="abc" 4 | .[2]=12.3 5 | .[3]=-4 6 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_array_04.json: -------------------------------------------------------------------------------- 1 | [1, "abc" , 12.3, -4] 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_array_05.json: -------------------------------------------------------------------------------- 1 | [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_array_06.expected: -------------------------------------------------------------------------------- 1 | .=[] 2 | .[0]="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" 3 | .[1]="bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" 4 | .[2]="ccccccccccccccccccccccc" 5 | .[3]="dddddddddddddddddddddddddddddddddddddddddddddddddddd" 6 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_array_06.json: -------------------------------------------------------------------------------- 1 | [ "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", 2 | "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", 3 | "ccccccccccccccccccccccc", 4 | "dddddddddddddddddddddddddddddddddddddddddddddddddddd" ] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_basic_01.expected: -------------------------------------------------------------------------------- 1 | .=123456789 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_basic_01.json: -------------------------------------------------------------------------------- 1 | 0123456789 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_basic_02.expected: -------------------------------------------------------------------------------- 1 | .=-123456789 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_basic_02.json: -------------------------------------------------------------------------------- 1 | -0123456789 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_basic_03.expected: -------------------------------------------------------------------------------- 1 | .=1.2345678 2 | 3 | 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_basic_03.json: -------------------------------------------------------------------------------- 1 | 1.2345678 2 | 3 | 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_basic_04.expected: -------------------------------------------------------------------------------- 1 | .="abcdef" 2 | 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_basic_04.json: -------------------------------------------------------------------------------- 1 | "abcdef" 2 | 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_basic_05.expected: -------------------------------------------------------------------------------- 1 | .=null 2 | 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_basic_05.json: -------------------------------------------------------------------------------- 1 | null 2 | 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_basic_06.expected: -------------------------------------------------------------------------------- 1 | .=true 2 | 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_basic_06.json: -------------------------------------------------------------------------------- 1 | true 2 | 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_basic_07.expected: -------------------------------------------------------------------------------- 1 | .=false 2 | 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_basic_07.json: -------------------------------------------------------------------------------- 1 | false 2 | 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_basic_08.expected: -------------------------------------------------------------------------------- 1 | // C++ style comment 2 | .=null 3 | 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_basic_08.json: -------------------------------------------------------------------------------- 1 | // C++ style comment 2 | null 3 | 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_basic_09.expected: -------------------------------------------------------------------------------- 1 | /* C style comment 2 | */ 3 | .=null 4 | 5 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_basic_09.json: -------------------------------------------------------------------------------- 1 | /* C style comment 2 | */ 3 | null 4 | 5 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_comment_00.expected: -------------------------------------------------------------------------------- 1 | // Comment for array 2 | .=[] 3 | // Comment within array 4 | .[0]="one-element" 5 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_comment_00.json: -------------------------------------------------------------------------------- 1 | // Comment for array 2 | [ 3 | // Comment within array 4 | "one-element" 5 | ] 6 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_comment_01.expected: -------------------------------------------------------------------------------- 1 | .={} 2 | // Comment for array 3 | .test=[] 4 | // Comment within array 5 | .test[0]={} 6 | .test[0].a="aaa" 7 | .test[1]={} 8 | .test[1].b="bbb" 9 | .test[2]={} 10 | .test[2].c="ccc" 11 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_comment_01.json: -------------------------------------------------------------------------------- 1 | { 2 | "test": 3 | // Comment for array 4 | [ 5 | // Comment within array 6 | { "a" : "aaa" }, // Comment for a 7 | { "b" : "bbb" }, // Comment for b 8 | { "c" : "ccc" } // Comment for c 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_comment_02.expected: -------------------------------------------------------------------------------- 1 | .={} 2 | /* C-style comment 3 | 4 | C-style-2 comment */ 5 | .c-test={} 6 | .c-test.a=1 7 | /* Internal comment c-style */ 8 | .c-test.b=2 9 | // C++-style comment 10 | .cpp-test={} 11 | // Multiline comment cpp-style 12 | // Second line 13 | .cpp-test.c=3 14 | // Comment before double 15 | .cpp-test.d=4.1 16 | // Comment before string 17 | .cpp-test.e="e-string" 18 | // Comment before true 19 | .cpp-test.f=true 20 | // Comment before false 21 | .cpp-test.g=false 22 | // Comment before null 23 | .cpp-test.h=null 24 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_complex_01.expected: -------------------------------------------------------------------------------- 1 | .={} 2 | .attribute=[] 3 | .attribute[0]="random" 4 | .attribute[1]="short" 5 | .attribute[2]="bold" 6 | .attribute[3]=12 7 | .attribute[4]={} 8 | .attribute[4].height=7 9 | .attribute[4].width=64 10 | .count=1234 11 | .name={} 12 | .name.aka="T.E.S.T." 13 | .name.id=123987 14 | .test={} 15 | .test.1={} 16 | .test.1.2={} 17 | .test.1.2.3={} 18 | .test.1.2.3.coord=[] 19 | .test.1.2.3.coord[0]=1 20 | .test.1.2.3.coord[1]=2 21 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_complex_01.json: -------------------------------------------------------------------------------- 1 | { 2 | "count" : 1234, 3 | "name" : { "aka" : "T.E.S.T.", "id" : 123987 }, 4 | "attribute" : [ 5 | "random", 6 | "short", 7 | "bold", 8 | 12, 9 | { "height" : 7, "width" : 64 } 10 | ], 11 | "test": { "1" : 12 | { "2" : 13 | { "3" : { "coord" : [ 1,2] } 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_integer_01.expected: -------------------------------------------------------------------------------- 1 | // Max signed integer 2 | .=2147483647 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_integer_01.json: -------------------------------------------------------------------------------- 1 | // Max signed integer 2 | 2147483647 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_integer_02.expected: -------------------------------------------------------------------------------- 1 | // Min signed integer 2 | .=-2147483648 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_integer_02.json: -------------------------------------------------------------------------------- 1 | // Min signed integer 2 | -2147483648 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_integer_03.expected: -------------------------------------------------------------------------------- 1 | // Max unsigned integer 2 | .=4294967295 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_integer_03.json: -------------------------------------------------------------------------------- 1 | // Max unsigned integer 2 | 4294967295 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_integer_04.expected: -------------------------------------------------------------------------------- 1 | // Min unsigned integer 2 | .=0 3 | 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_integer_04.json: -------------------------------------------------------------------------------- 1 | // Min unsigned integer 2 | 0 3 | 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_integer_05.expected: -------------------------------------------------------------------------------- 1 | .=1 2 | 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_integer_05.json: -------------------------------------------------------------------------------- 1 | 1 2 | 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_integer_06_64bits.expected: -------------------------------------------------------------------------------- 1 | .=9223372036854775808 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_integer_06_64bits.json: -------------------------------------------------------------------------------- 1 | 9223372036854775808 2 | 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_integer_07_64bits.expected: -------------------------------------------------------------------------------- 1 | .=-9223372036854775808 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_integer_07_64bits.json: -------------------------------------------------------------------------------- 1 | -9223372036854775808 2 | 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_integer_08_64bits.expected: -------------------------------------------------------------------------------- 1 | .=18446744073709551615 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_integer_08_64bits.json: -------------------------------------------------------------------------------- 1 | 18446744073709551615 2 | 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_object_01.expected: -------------------------------------------------------------------------------- 1 | .={} 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_object_01.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_object_02.expected: -------------------------------------------------------------------------------- 1 | .={} 2 | .count=1234 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_object_02.json: -------------------------------------------------------------------------------- 1 | { "count" : 1234 } 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_object_03.expected: -------------------------------------------------------------------------------- 1 | .={} 2 | .attribute="random" 3 | .count=1234 4 | .name="test" 5 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_object_03.json: -------------------------------------------------------------------------------- 1 | { 2 | "count" : 1234, 3 | "name" : "test", 4 | "attribute" : "random" 5 | } 6 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_object_04.expected: -------------------------------------------------------------------------------- 1 | .={} 2 | .=1234 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_object_04.json: -------------------------------------------------------------------------------- 1 | { 2 | "" : 1234 3 | } 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_preserve_comment_01.expected: -------------------------------------------------------------------------------- 1 | /* A comment 2 | at the beginning of the file. 3 | */ 4 | .={} 5 | .first=1 6 | /* Comment before 'second' 7 | */ 8 | .second=2 9 | /* A comment at 10 | the end of the file. 11 | */ 12 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_preserve_comment_01.json: -------------------------------------------------------------------------------- 1 | /* A comment 2 | at the beginning of the file. 3 | */ 4 | { 5 | "first" : 1, // comment after 'first' on the same line 6 | 7 | /* Comment before 'second' 8 | */ 9 | "second" : 2 10 | } 11 | 12 | /* A comment at 13 | the end of the file. 14 | */ 15 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_01.expected: -------------------------------------------------------------------------------- 1 | // 2^33 => out of integer range, switch to double 2 | .=8589934592 3 | 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_01.json: -------------------------------------------------------------------------------- 1 | // 2^33 => out of integer range, switch to double 2 | 8589934592 3 | 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_02.expected: -------------------------------------------------------------------------------- 1 | // -2^32 => out of signed integer range, switch to double 2 | .=-4294967295 3 | 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_02.json: -------------------------------------------------------------------------------- 1 | // -2^32 => out of signed integer range, switch to double 2 | -4294967295 3 | 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_03.expected: -------------------------------------------------------------------------------- 1 | // -2^32 => out of signed integer range, switch to double 2 | .=-4294967295 3 | 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_03.json: -------------------------------------------------------------------------------- 1 | // -2^32 => out of signed integer range, switch to double 2 | -4294967295 3 | 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_04.expected: -------------------------------------------------------------------------------- 1 | // 1.2345678 2 | .=1.2345678 3 | 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_04.json: -------------------------------------------------------------------------------- 1 | // 1.2345678 2 | 12345678e-7 3 | 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_05.expected: -------------------------------------------------------------------------------- 1 | // 1234567.8 2 | .=1234567.8 3 | 4 | 5 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_05.json: -------------------------------------------------------------------------------- 1 | // 1234567.8 2 | 0.12345678e7 3 | 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_06.expected: -------------------------------------------------------------------------------- 1 | // -1.2345678 2 | .=-1.2345678 3 | 4 | 5 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_06.json: -------------------------------------------------------------------------------- 1 | // -1.2345678 2 | -12345678e-7 3 | 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_07.expected: -------------------------------------------------------------------------------- 1 | // -1234567.8 2 | .=-1234567.8 3 | 4 | 5 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_07.json: -------------------------------------------------------------------------------- 1 | // -1234567.8 2 | -0.12345678e7 3 | 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_08.expected: -------------------------------------------------------------------------------- 1 | // Out of 32-bit integer range, switch to double in 32-bit mode. Length the 2 | // same as UINT_MAX in base 10 and digit less than UINT_MAX's last digit in 3 | // order to catch a bug in the parsing code. 4 | .=4300000001 5 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_08.json: -------------------------------------------------------------------------------- 1 | // Out of 32-bit integer range, switch to double in 32-bit mode. Length the 2 | // same as UINT_MAX in base 10 and digit less than UINT_MAX's last digit in 3 | // order to catch a bug in the parsing code. 4 | 4300000001 5 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_09.expected: -------------------------------------------------------------------------------- 1 | // Out of 64-bit integer range, switch to double in all modes. Length the same 2 | // as ULONG_MAX in base 10 and digit less than ULONG_MAX's last digit in order 3 | // to catch a bug in the parsing code. 4 | .=1.9e+19 5 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_09.json: -------------------------------------------------------------------------------- 1 | // Out of 64-bit integer range, switch to double in all modes. Length the same 2 | // as ULONG_MAX in base 10 and digit less than ULONG_MAX's last digit in order 3 | // to catch a bug in the parsing code. 4 | 19000000000000000001 5 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_10.expected: -------------------------------------------------------------------------------- 1 | // Out of 32-bit signed integer range, switch to double in all modes. Length 2 | // the same as INT_MIN in base 10 and digit less than INT_MIN's last digit in 3 | // order to catch a bug in the parsing code. 4 | .=-2200000001 5 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_10.json: -------------------------------------------------------------------------------- 1 | // Out of 32-bit signed integer range, switch to double in all modes. Length 2 | // the same as INT_MIN in base 10 and digit less than INT_MIN's last digit in 3 | // order to catch a bug in the parsing code. 4 | -2200000001 5 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_11.expected: -------------------------------------------------------------------------------- 1 | // Out of 64-bit signed integer range, switch to double in all modes. Length 2 | // the same as LONG_MIN in base 10 and digit less than LONG_MIN's last digit in 3 | // order to catch a bug in the parsing code. 4 | .=-9.3e+18 5 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_11.json: -------------------------------------------------------------------------------- 1 | // Out of 64-bit signed integer range, switch to double in all modes. Length 2 | // the same as LONG_MIN in base 10 and digit less than LONG_MIN's last digit in 3 | // order to catch a bug in the parsing code. 4 | -9300000000000000001 5 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_12.expected: -------------------------------------------------------------------------------- 1 | // 2^64 -> switch to double. 2 | .=1.844674407370955e+19 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_12.json: -------------------------------------------------------------------------------- 1 | // 2^64 -> switch to double. 2 | 18446744073709551616 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_13.expected: -------------------------------------------------------------------------------- 1 | .=[] 2 | .[0]=-inf 3 | .[1]=inf 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_real_13.json: -------------------------------------------------------------------------------- 1 | [-1e+9999, 1e+9999] 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_string_01.expected: -------------------------------------------------------------------------------- 1 | .="!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~" -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_string_01.json: -------------------------------------------------------------------------------- 1 | "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_string_03.expected: -------------------------------------------------------------------------------- 1 | .="http://jsoncpp.sourceforge.net/" -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_string_03.json: -------------------------------------------------------------------------------- 1 | "http:\/\/jsoncpp.sourceforge.net\/" 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_string_04.expected: -------------------------------------------------------------------------------- 1 | .=""abc\def"" 2 | 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_string_04.json: -------------------------------------------------------------------------------- 1 | "\"abc\\def\"" 2 | 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_string_05.expected: -------------------------------------------------------------------------------- 1 | .="\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" 2 | 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_string_05.json: -------------------------------------------------------------------------------- 1 | "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" 2 | 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_string_unicode_01.expected: -------------------------------------------------------------------------------- 1 | .="a" 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_string_unicode_01.json: -------------------------------------------------------------------------------- 1 | "\u0061" -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_string_unicode_02.expected: -------------------------------------------------------------------------------- 1 | .="¢" 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_string_unicode_02.json: -------------------------------------------------------------------------------- 1 | "\u00A2" -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_string_unicode_03.expected: -------------------------------------------------------------------------------- 1 | .="€" 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_string_unicode_03.json: -------------------------------------------------------------------------------- 1 | "\u20AC" -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_string_unicode_04.expected: -------------------------------------------------------------------------------- 1 | .="𝄞" 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_string_unicode_04.json: -------------------------------------------------------------------------------- 1 | "\uD834\uDD1E" -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_string_unicode_05.expected: -------------------------------------------------------------------------------- 1 | .="Zażółć gęślą jaźń" 2 | 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/legacy_test_string_unicode_05.json: -------------------------------------------------------------------------------- 1 | "Zażółć gęślą jaźń" -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/test_array_08.expected: -------------------------------------------------------------------------------- 1 | .=[] 2 | .[0]=1 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/test_array_08.json: -------------------------------------------------------------------------------- 1 | [1,] 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/test_object_05.expected: -------------------------------------------------------------------------------- 1 | .={} 2 | .count=1234 3 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/data/test_object_05.json: -------------------------------------------------------------------------------- 1 | { "count" : 1234, } 2 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail1.json: -------------------------------------------------------------------------------- 1 | "A JSON payload should be an object or array, not a string." -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail10.json: -------------------------------------------------------------------------------- 1 | {"Extra value after close": true} "misplaced quoted value" -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail11.json: -------------------------------------------------------------------------------- 1 | {"Illegal expression": 1 + 2} -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail12.json: -------------------------------------------------------------------------------- 1 | {"Illegal invocation": alert()} -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail13.json: -------------------------------------------------------------------------------- 1 | {"Numbers cannot have leading zeroes": 013} -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail14.json: -------------------------------------------------------------------------------- 1 | {"Numbers cannot be hex": 0x14} -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail15.json: -------------------------------------------------------------------------------- 1 | ["Illegal backslash escape: \x15"] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail16.json: -------------------------------------------------------------------------------- 1 | [\naked] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail17.json: -------------------------------------------------------------------------------- 1 | ["Illegal backslash escape: \017"] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail18.json: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail19.json: -------------------------------------------------------------------------------- 1 | {"Missing colon" null} -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail2.json: -------------------------------------------------------------------------------- 1 | ["Unclosed array" -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail20.json: -------------------------------------------------------------------------------- 1 | {"Double colon":: null} -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail21.json: -------------------------------------------------------------------------------- 1 | {"Comma instead of colon", null} -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail22.json: -------------------------------------------------------------------------------- 1 | ["Colon instead of comma": false] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail23.json: -------------------------------------------------------------------------------- 1 | ["Bad value", truth] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail24.json: -------------------------------------------------------------------------------- 1 | ['single quote'] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail25.json: -------------------------------------------------------------------------------- 1 | [" tab character in string "] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail26.json: -------------------------------------------------------------------------------- 1 | ["tab\ character\ in\ string\ "] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail27.json: -------------------------------------------------------------------------------- 1 | ["line 2 | break"] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail28.json: -------------------------------------------------------------------------------- 1 | ["line\ 2 | break"] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail29.json: -------------------------------------------------------------------------------- 1 | [0e] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail3.json: -------------------------------------------------------------------------------- 1 | {unquoted_key: "keys must be quoted"} -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail30.json: -------------------------------------------------------------------------------- 1 | [0e+] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail31.json: -------------------------------------------------------------------------------- 1 | [0e+-1] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail32.json: -------------------------------------------------------------------------------- 1 | {"Comma instead if closing brace": true, -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail33.json: -------------------------------------------------------------------------------- 1 | ["mismatch"} -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail4.json: -------------------------------------------------------------------------------- 1 | ["extra comma",] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail5.json: -------------------------------------------------------------------------------- 1 | ["double extra comma",,] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail6.json: -------------------------------------------------------------------------------- 1 | [ , "<-- missing value"] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail7.json: -------------------------------------------------------------------------------- 1 | ["Comma after the close"], -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail8.json: -------------------------------------------------------------------------------- 1 | ["Extra close"]] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/fail9.json: -------------------------------------------------------------------------------- 1 | {"Extra comma": true,} -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/pass2.json: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]] -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/pass3.json: -------------------------------------------------------------------------------- 1 | { 2 | "JSON Test Pattern pass3": { 3 | "The outermost value": "must be an object or array.", 4 | "In this test": "It is an object." 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/test/jsonchecker/readme.txt: -------------------------------------------------------------------------------- 1 | Test suite from http://json.org/JSON_checker/. 2 | 3 | If the JSON_checker is working correctly, it must accept all of the pass*.json files and reject all of the fail*.json files. 4 | -------------------------------------------------------------------------------- /air-infra/third-party/jsoncpp/version.in: -------------------------------------------------------------------------------- 1 | @JSONCPP_VERSION@ 2 | -------------------------------------------------------------------------------- /air-infra/util/doc/README.md: -------------------------------------------------------------------------------- 1 | # design documents 2 | 3 | ## TODO -------------------------------------------------------------------------------- /air-infra/util/src/timing.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "air/util/timing.h" 10 | 11 | air::util::TIMING Tim; -------------------------------------------------------------------------------- /air-infra/util/test/air_debug.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "air/util/debug.h" 10 | 11 | using namespace air::util; 12 | 13 | /** 14 | * @brief test macro AIR_DEBUG 15 | * 16 | */ 17 | static void Test_air_debug(void) { 18 | AIR_DEBUG("API: AIR_DEBUG testing .... \n"); 19 | } 20 | 21 | int main() { 22 | Test_air_debug(); 23 | 24 | return 0; 25 | } 26 | -------------------------------------------------------------------------------- /air-infra/util/unittest/test_airutil.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /air-infra/util/unittest/ut_log.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | // #include "air/util/debug.h" 12 | 13 | namespace { 14 | 15 | TEST(util, MESSAGE) { 16 | // AIR_ASSERT(( (-1 == 0)), "%s should be %d", "assert part", 999); 17 | // EXPECT_EQ(0, AIR_ASSERT((-1 != 0))); 18 | EXPECT_EQ(0, 0); 19 | } 20 | 21 | } // namespace -------------------------------------------------------------------------------- /fhe-cmplr/.gitignore: -------------------------------------------------------------------------------- 1 | # WPILib 2 | bin/ 3 | build/ 4 | dist/ 5 | sysProps.xml 6 | workbench.xmi 7 | 8 | # IDE 9 | *.ipr 10 | *.iml 11 | *.iws 12 | out/ 13 | tmp/ 14 | .settings/ 15 | .loadpath 16 | .project 17 | /.idea 18 | .classpath 19 | .vscode/ 20 | 21 | # Toast/GradleRIO 22 | run/ 23 | .gradle/ 24 | gradle/.launch/ 25 | 26 | # OS Files 27 | .DS_Store 28 | .DS_Store? 29 | ._* 30 | .Spotlight-V100 31 | .AppleDouble 32 | .LSOverride 33 | .Trashes 34 | ehthumbs.db 35 | Thumbs.db 36 | 37 | # backup files 38 | *~ 39 | 40 | # directory for XML generated after running junit tests through ant 41 | junit/ -------------------------------------------------------------------------------- /fhe-cmplr/LEGAL.md: -------------------------------------------------------------------------------- 1 | Legal Disclaimer 2 | 3 | Within this source code, the comments in Chinese shall be the original, governing version. Any comment in other languages are for reference only. In the event of any conflict between the Chinese language version comments and other language version comments, the Chinese language version shall prevail. 4 | 5 | 法律免责声明 6 | 7 | 关于代码注释部分,中文注释为官方版本,其它语言注释仅做参考。中文注释可能与其它语言注释存在不一致,当中文注释与其它语言注释存在不一致时,请以中文注释为准。 -------------------------------------------------------------------------------- /fhe-cmplr/benchmark/src/bm_fhe_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #define PROFILE 10 | 11 | #include "benchmark/benchmark.h" 12 | 13 | // TODO: replace later 14 | void Bm_string_copy(benchmark::State& state) { 15 | std::string x = "hello"; 16 | for (auto _ : state) std::string copy(x); 17 | } 18 | 19 | BENCHMARK(Bm_string_copy); 20 | 21 | BENCHMARK_MAIN(); -------------------------------------------------------------------------------- /fhe-cmplr/cg/example/eg_fhecg_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/cg/src/cg.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int Cg_test() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/cg/test/test_fhecg_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/cg/unittest/test_fhecg.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /fhe-cmplr/cg/unittest/ut_cg.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | namespace { 12 | 13 | // TODO: replace later 14 | TEST(CG, MESSAGE) { EXPECT_EQ(0, 0); } 15 | 16 | } // namespace -------------------------------------------------------------------------------- /fhe-cmplr/ckks/example/eg_fheckks_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/ckks/test/test_fheckks_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/ckks/unittest/test_fheckks.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /fhe-cmplr/ckks/unittest/ut_ckks.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | namespace { 12 | 13 | // TODO: replace later 14 | TEST(CKKS, MESSAGE) { EXPECT_EQ(0, 0); } 15 | 16 | } // namespace -------------------------------------------------------------------------------- /fhe-cmplr/core/example/eg_fhecore_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/core/src/core.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int Core_test() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/core/test/test_fhecore_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/core/unittest/test_fhecore.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /fhe-cmplr/core/unittest/ut_core.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | namespace { 12 | 13 | // TODO: replace later 14 | TEST(CORE, MESSAGE) { EXPECT_EQ(0, 0); } 15 | 16 | } // namespace -------------------------------------------------------------------------------- /fhe-cmplr/devtools/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: Google 2 | IndentWidth: 2 3 | AccessModifierOffset: -2 4 | AlignArrayOfStructures: Left 5 | AlignConsecutiveAssignments: true 6 | AlignConsecutiveDeclarations: true 7 | AlignConsecutiveMacros: true 8 | DerivePointerAlignment: false 9 | -------------------------------------------------------------------------------- /fhe-cmplr/doc/README.md: -------------------------------------------------------------------------------- 1 | # design documents 2 | 3 | ## TODO -------------------------------------------------------------------------------- /fhe-cmplr/driver/example/eg_fhedriver_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int Onnx_test() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/driver/test/test_fhedriver_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #// TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/driver/unittest/test_fhedriver.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /fhe-cmplr/driver/unittest/ut_driver.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | namespace { 12 | 13 | // TODO: replace later 14 | TEST(DRIVER, MESSAGE) { EXPECT_EQ(0, 0); } 15 | 16 | } // namespace -------------------------------------------------------------------------------- /fhe-cmplr/include/fhe/util/util.h: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #ifndef FHE_UTIL_H 10 | #define FHE_UTIL_H 11 | 12 | #include 13 | 14 | #endif // FHE_UTIL_H -------------------------------------------------------------------------------- /fhe-cmplr/opt/example/eg_fheopt_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/opt/src/opt.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int Opt_test() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/opt/test/test_fheopt_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/opt/unittest/test_fheopt.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /fhe-cmplr/opt/unittest/ut_opt.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | namespace { 12 | 13 | // TODO: replace later 14 | TEST(OPT, MESSAGE) { EXPECT_EQ(0, 0); } 15 | 16 | } // namespace -------------------------------------------------------------------------------- /fhe-cmplr/poly/example/eg_fhepoly_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/poly/unittest/test_fhepoly.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /fhe-cmplr/rtlib/ant/include/nn/vector_valid.h: -------------------------------------------------------------------------------- 1 | //-*-c-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | #ifndef RTLIB_INCLUDE_VECTOR_VALID_H 9 | #define RTLIB_INCLUDE_VECTOR_VALID_H 10 | 11 | #endif // RTLIB_INCLUDE_VECTOR_VALID_H -------------------------------------------------------------------------------- /fhe-cmplr/rtlib/common/unittest/test_fhert_common.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | //! Main entry point for Google Test unit tests. 12 | int main(int argc, char** argv) { 13 | testing::InitGoogleTest(&argc, argv); 14 | return RUN_ALL_TESTS(); 15 | } 16 | -------------------------------------------------------------------------------- /fhe-cmplr/rtlib/include/common/rtlib.h: -------------------------------------------------------------------------------- 1 | //-*-c-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #ifndef RTLIB_COMMON_RTLIB_H 10 | #define RTLIB_COMMON_RTLIB_H 11 | 12 | //! @brief rtlib.h 13 | //! included by user application 14 | 15 | #include 16 | 17 | #include "rt_api.h" 18 | #include "rt_stat.h" 19 | #include "tensor.h" 20 | 21 | #endif // RTLIB_COMMON_RTLIB_H 22 | -------------------------------------------------------------------------------- /fhe-cmplr/rtlib/openfhe/unittest/test_fhert_openfhe.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /fhe-cmplr/rtlib/seal/unittest/test_fhert_seal.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /fhe-cmplr/sihe/example/eg_fhesihe_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/sihe/test/test_fhesihe_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/sihe/unittest/test_fhesihe.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /fhe-cmplr/test/test_fhe_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/third-party/BLAKE2/.gitignore: -------------------------------------------------------------------------------- 1 | b2sum/b2sum 2 | bench/blake2b 3 | bench/blake2b.data 4 | bench/blake2s 5 | bench/blake2s.data 6 | bench/md5 7 | bench/md5.data 8 | bench/plotcycles.pdf 9 | ref/blake2b 10 | ref/blake2bp 11 | ref/blake2s 12 | ref/blake2sp 13 | sse/blake2b 14 | sse/blake2bp 15 | sse/blake2s 16 | sse/blake2sp 17 | ref/blake2xs 18 | ref/blake2xb 19 | sse/blake2xs 20 | sse/blake2xb 21 | neon/blake2s 22 | neon/blake2b 23 | neon/blake2sp 24 | neon/blake2bp 25 | neon/blake2xs 26 | neon/blake2xb 27 | **tags 28 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/BLAKE2/bench/do.gplot: -------------------------------------------------------------------------------- 1 | maxx = 256 2 | set xrange [1:maxx] 3 | set xlabel "bytes " 4 | set ylabel "cycles" 5 | set xtics 0,32,maxx 6 | set grid 7 | set key left 8 | 9 | #set terminal png 10 | #set output "plotcycles.png" 11 | set terminal pdfcairo 12 | set output "plotcycles.pdf" 13 | 14 | plot "blake2b.data" using 1:2 with lines title "BLAKE2b" 15 | replot "blake2s.data" using 1:2 with lines title "BLAKE2s" 16 | replot "md5.data" using 1:2 with lines title "MD5" 17 | 18 | set output "plotcycles.pdf" 19 | replot -------------------------------------------------------------------------------- /fhe-cmplr/third-party/BLAKE2/bench/makefile: -------------------------------------------------------------------------------- 1 | CC=gcc 2 | # std to gnu99 to support inline asm 3 | CFLAGS=-O3 -march=native -Wall -Wextra -DSUPERCOP # -DHAVE_XOP # uncomment on XOP-enabled CPUs 4 | FILES=bench.c 5 | 6 | all: bench 7 | 8 | bench: bench.c 9 | $(CC) $(FILES) $(CFLAGS) ../sse/blake2b.c -o blake2b 10 | $(CC) $(FILES) $(CFLAGS) ../sse/blake2s.c -o blake2s 11 | $(CC) $(FILES) $(CFLAGS) md5.c -o md5 -lcrypto -lz 12 | 13 | plot: bench 14 | ./blake2b > blake2b.data 15 | ./blake2s > blake2s.data 16 | ./md5 > md5.data 17 | gnuplot do.gplot 18 | 19 | clean: 20 | rm -f blake2b blake2s md5 plotcycles.pdf blake2b.data blake2s.data md5.data 21 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *.out 3 | keystat.* 4 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/.travis.yml: -------------------------------------------------------------------------------- 1 | language: cpp 2 | matrix: 3 | include: 4 | - os: linux 5 | compiler: gcc 6 | - os: linux 7 | compiler: clang 8 | - os: osx 9 | script: 10 | - make -C tests EXTRA_CFLAGS="-W -Wall -Wextra -Wswitch-default" 11 | - make -C tests clean ; make -C tests pedantic 12 | - make -C tests clean ; make -C tests pedantic EXTRA_CFLAGS=-DNO_DECLTYPE 13 | - make -C tests clean ; make -C tests cplusplus 14 | - make -C tests clean ; make -C tests cplusplus EXTRA_CFLAGS=-DNO_DECLTYPE 15 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/README.md: -------------------------------------------------------------------------------- 1 | 2 | [![Build status](https://api.travis-ci.org/troydhanson/uthash.svg?branch=master)](https://travis-ci.org/troydhanson/uthash) 3 | [![GitHub CI status](https://github.com/troydhanson/uthash/actions/workflows/build.yml/badge.svg)](https://github.com/troydhanson/uthash/actions/workflows/build.yml) 4 | 5 | Documentation for uthash is available at: 6 | 7 | https://troydhanson.github.io/uthash/ 8 | 9 | 10 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/doc/.gitignore: -------------------------------------------------------------------------------- 1 | ChangeLog.html 2 | userguide.html 3 | utarray.html 4 | utlist.html 5 | utringbuffer.html 6 | utstack.html 7 | utstring.html 8 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/doc/Makefile: -------------------------------------------------------------------------------- 1 | HTML=$(patsubst %.txt,%.html,$(wildcard *.txt)) 2 | 3 | all: $(HTML) 4 | 5 | # when each target of a multi-target rule has its own prereq 6 | # we use a static pattern rule. 7 | $(HTML): %.html: %.txt 8 | asciidoc -a toc2 $< 9 | 10 | TMP=/tmp/uthash-gh-pages 11 | stage: 12 | mkdir -p ${TMP} 13 | rm -if ${TMP}/* 14 | cp *.html *.css *.png ${TMP} 15 | 16 | .PHONY: clean 17 | clean: 18 | $(RM) $(HTML) 19 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/doc/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/fhe-cmplr/third-party/uthash/doc/banner.png -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/doc/google315d692c9c632ed0.html: -------------------------------------------------------------------------------- 1 | google-site-verification: google315d692c9c632ed0.html -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/doc/rss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/fhe-cmplr/third-party/uthash/doc/rss.png -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/doc/uthash-mini.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/fhe-cmplr/third-party/uthash/doc/uthash-mini.png -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/doc/uthash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/fhe-cmplr/third-party/uthash/doc/uthash.png -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "C macros for hash tables and more", 3 | 4 | "keywords": [ 5 | "array", 6 | "data", 7 | "hash", 8 | "list", 9 | "macro", 10 | "string", 11 | "structure", 12 | "uthash" 13 | ], 14 | 15 | "name": "uthash", 16 | "repo": "troydhanson/uthash", 17 | 18 | "src": [ 19 | "src/utarray.h", 20 | "src/uthash.h", 21 | "src/utlist.h", 22 | "src/utringbuffer.h", 23 | "src/utstack.h", 24 | "src/utstring.h" 25 | ], 26 | 27 | "version": "2.3.0" 28 | } 29 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/all_funcs: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | function proceed { 4 | read -p "proceed ? [n] " response 5 | if [ "$response" != "y" ]; then exit -1; fi 6 | } 7 | 8 | make clean tests_only EXTRA_CFLAGS='-DHASH_FUNCTION=HASH_BER'; proceed 9 | make clean tests_only EXTRA_CFLAGS='-DHASH_FUNCTION=HASH_FNV'; proceed 10 | make clean tests_only EXTRA_CFLAGS='-DHASH_FUNCTION=HASH_JEN'; proceed 11 | make clean tests_only EXTRA_CFLAGS='-DHASH_FUNCTION=HASH_OAT'; proceed 12 | make clean tests_only EXTRA_CFLAGS='-DHASH_FUNCTION=HASH_SAX'; proceed 13 | make clean tests_only EXTRA_CFLAGS='-DHASH_FUNCTION=HASH_SFH'; proceed 14 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/bloom_perf.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | BITS="16" 4 | 5 | cc -I../src -O3 -Wall -m64 bloom_perf.c -o bloom_perf.none 6 | for bits in $BITS 7 | do 8 | cc -I../src -DHASH_BLOOM=$bits -O3 -Wall -m64 bloom_perf.c -o bloom_perf.$bits 9 | done 10 | 11 | for bits in none $BITS 12 | do 13 | echo 14 | echo "using $bits-bit filter:" 15 | ./bloom_perf.$bits 10 16 | done 17 | 18 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/do_tests: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | use strict; 4 | use warnings; 5 | 6 | my @tests; 7 | for (glob "test*[0-9]") { 8 | push @tests, $_ if -e "$_.ans"; 9 | } 10 | 11 | my $num_failed=0; 12 | 13 | for my $test (@tests) { 14 | `./$test > $test.out`; 15 | `diff $test.out $test.ans`; 16 | print "$test failed\n" if $?; 17 | $num_failed++ if $?; 18 | } 19 | 20 | print scalar @tests . " tests conducted, $num_failed failed.\n"; 21 | exit $num_failed; 22 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/do_tests.cygwin: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | use strict; 4 | use warnings; 5 | 6 | my @tests; 7 | for (glob "test*[0-9].exe") { 8 | push @tests, "$_" if -e substr($_, 0, - 4).".ans"; 9 | } 10 | 11 | my $num_failed=0; 12 | 13 | for my $test (@tests) { 14 | `./$test > $test.out`; 15 | my $ansfile = substr($test, 0, - 4).".ans"; 16 | `diff $test.out $ansfile`; 17 | print "$test failed\n" if $?; 18 | $num_failed++ if $?; 19 | } 20 | 21 | print scalar @tests . " tests conducted, $num_failed failed.\n"; 22 | exit $num_failed; 23 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/do_tests.mingw: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "MinGW test script starting" 4 | 5 | for f in test*.exe 6 | do 7 | t=`echo $f | sed s/.exe//` 8 | "./$f" > "$t.out" 9 | diff -qb "$t.out" "$t.ans" 10 | if [ $? -eq 1 ] 11 | then 12 | echo "$f failed" 13 | else 14 | true # can't have empty else 15 | #echo "$f passed" 16 | fi 17 | done 18 | 19 | echo 20 | echo "All tests complete" 21 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/lru_cache/Makefile: -------------------------------------------------------------------------------- 1 | CC=gcc 2 | 3 | CFLAGS+=-W -Werror -Wall -Wextra -std=c99 \ 4 | -D_FORTIFY_SOURCE=2 -fstack-protector -g \ 5 | -Wformat=2 -pedantic -pedantic-errors \ 6 | -D_GNU_SOURCE=1 -D_BSD_SOURCE=1 \ 7 | -I../../src 8 | 9 | LDFLAGS+=-pthread 10 | 11 | cache: main.o cache.o 12 | $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) main.o cache.o -o cache 13 | 14 | main.o: main.c 15 | $(CC) $(CPPFLAGS) $(CFLAGS) -c main.c -o main.o 16 | 17 | cache.o: cache.c 18 | $(CC) $(CPPFLAGS) $(CFLAGS) -c cache.c -o cache.o 19 | 20 | clean: 21 | rm -f cache *.o 22 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test1.ans: -------------------------------------------------------------------------------- 1 | user 0, cookie 0 2 | user 1, cookie 1 3 | user 2, cookie 4 4 | user 3, cookie 9 5 | user 4, cookie 16 6 | user 5, cookie 25 7 | user 6, cookie 36 8 | user 7, cookie 49 9 | user 8, cookie 64 10 | user 9, cookie 81 11 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test10.ans: -------------------------------------------------------------------------------- 1 | 9 found in hh 2 | 9 found in alth 3 | 10 not found in hh 4 | 10 found in alth 5 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test11.ans: -------------------------------------------------------------------------------- 1 | ADRIAN 2 | ARNOLDO 3 | CARROLL 4 | CARY 5 | CHONG 6 | CLIFTON 7 | CODY 8 | COLTON 9 | CORNELL 10 | DAMON 11 | DANNIE 12 | DARIO 13 | DONN 14 | DOUG 15 | DOUGLAS 16 | FREDERICK 17 | FRITZ 18 | GERALD 19 | GUS 20 | HARVEY 21 | IRVING 22 | ISAIAH 23 | JARVIS 24 | JOHN 25 | KENTON 26 | LAURENCE 27 | LESTER 28 | LINCOLN 29 | LOWELL 30 | NELSON 31 | NEVILLE 32 | NIGEL 33 | NORMAND 34 | ODIS 35 | OMAR 36 | ORLANDO 37 | RAYMUNDO 38 | REX 39 | ROLANDO 40 | RON 41 | SHANE 42 | TONEY 43 | TRINIDAD 44 | WALTER 45 | WARNER 46 | WARREN 47 | WES 48 | WILLARD 49 | WILLIAM 50 | WINFRED 51 | XAVIER 52 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test11.dat: -------------------------------------------------------------------------------- 1 | JOHN 2 | WILLIAM 3 | WALTER 4 | DOUGLAS 5 | GERALD 6 | FREDERICK 7 | WARREN 8 | SHANE 9 | LESTER 10 | RON 11 | HARVEY 12 | ADRIAN 13 | CODY 14 | NELSON 15 | CLIFTON 16 | WILLARD 17 | DOUG 18 | ORLANDO 19 | REX 20 | OMAR 21 | DAMON 22 | LOWELL 23 | IRVING 24 | CARROLL 25 | LAURENCE 26 | ROLANDO 27 | CARY 28 | XAVIER 29 | ISAIAH 30 | GUS 31 | JARVIS 32 | WINFRED 33 | RAYMUNDO 34 | LINCOLN 35 | CORNELL 36 | NIGEL 37 | NORMAND 38 | FRITZ 39 | DONN 40 | TRINIDAD 41 | ODIS 42 | DANNIE 43 | DARIO 44 | KENTON 45 | CHONG 46 | NEVILLE 47 | TONEY 48 | WARNER 49 | WES 50 | COLTON 51 | ARNOLDO 52 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test12.ans: -------------------------------------------------------------------------------- 1 | added bob (id 0) 2 | added jack (id 1) 3 | added gary (id 2) 4 | added ty (id 3) 5 | added bo (id 4) 6 | added phil (id 5) 7 | added art (id 6) 8 | added gil (id 7) 9 | added buck (id 8) 10 | added ted (id 9) 11 | found bob (id 0) 12 | found jack (id 1) 13 | found gary (id 2) 14 | found ty (id 3) 15 | found bo (id 4) 16 | found phil (id 5) 17 | found art (id 6) 18 | found gil (id 7) 19 | found buck (id 8) 20 | found ted (id 9) 21 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test13.ans: -------------------------------------------------------------------------------- 1 | id 9, following prev... 2 | id 7, following prev... 3 | id 5, following prev... 4 | id 3, following prev... 5 | id 1, following prev... 6 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test14.ans: -------------------------------------------------------------------------------- 1 | lookup on 1219 of 1219 names succeeded 2 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test15.ans: -------------------------------------------------------------------------------- 1 | betty's id is 2 2 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test16.ans: -------------------------------------------------------------------------------- 1 | found: user 5, unix time 157680000 2 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test18.ans: -------------------------------------------------------------------------------- 1 | user 0, cookie 0 2 | user 1, cookie 1 3 | user 2, cookie 4 4 | user 3, cookie 9 5 | user 4, cookie 16 6 | user 5, cookie 25 7 | user 6, cookie 36 8 | user 7, cookie 49 9 | user 8, cookie 64 10 | user 9, cookie 81 11 | deleting id 0 12 | deleting id 1 13 | deleting id 2 14 | deleting id 3 15 | deleting id 4 16 | deleting id 5 17 | deleting id 6 18 | deleting id 7 19 | deleting id 8 20 | deleting id 9 21 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test2.ans: -------------------------------------------------------------------------------- 1 | user id 0 found, cookie 0 2 | user id 2 found, cookie 4 3 | user id 4 found, cookie 16 4 | user id 6 found, cookie 36 5 | user id 8 found, cookie 64 6 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test20.ans: -------------------------------------------------------------------------------- 1 | found 2 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test21.ans: -------------------------------------------------------------------------------- 1 | found a 1 2 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test22.ans: -------------------------------------------------------------------------------- 1 | found 2 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test23.ans: -------------------------------------------------------------------------------- 1 | found 12345 2 | found 6789 3 | found 98765 4 | deleting 12345 5 | deleting 6789 6 | deleting 98765 7 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test24.ans: -------------------------------------------------------------------------------- 1 | hash contains 10 items 2 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test25.ans: -------------------------------------------------------------------------------- 1 | CDL macros 2 | c b a 3 | count = 3 4 | advancing head pointer 5 | b a c 6 | b a c b a c b a c b 7 | b c a b c a b c a b 8 | deleting b 9 | a c 10 | deleting (a) 11 | c 12 | deleting (c) 13 | 14 | DL macros 15 | a b c 16 | count = 3 17 | deleting tail c 18 | a b 19 | deleting head a 20 | b 21 | deleting head b 22 | 23 | LL macros 24 | a b c 25 | count = 3 26 | deleting tail c 27 | a b 28 | deleting head a 29 | b 30 | deleting head b 31 | 32 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test26.ans: -------------------------------------------------------------------------------- 1 | ADRIAN 2 | ARNOLDO 3 | CARROLL 4 | CARY 5 | CHONG 6 | CLIFTON 7 | CODY 8 | COLTON 9 | CORNELL 10 | DAMON 11 | DANNIE 12 | DARIO 13 | DONN 14 | DOUG 15 | DOUGLAS 16 | FREDERICK 17 | FRITZ 18 | GERALD 19 | GUS 20 | HARVEY 21 | IRVING 22 | ISAIAH 23 | JARVIS 24 | JOHN 25 | KENTON 26 | LAURENCE 27 | LESTER 28 | LINCOLN 29 | LOWELL 30 | NELSON 31 | NEVILLE 32 | NIGEL 33 | NORMAND 34 | ODIS 35 | OMAR 36 | ORLANDO 37 | RAYMUNDO 38 | REX 39 | ROLANDO 40 | RON 41 | SHANE 42 | TONEY 43 | TRINIDAD 44 | WALTER 45 | WARNER 46 | WARREN 47 | WES 48 | WILLARD 49 | WILLIAM 50 | WINFRED 51 | XAVIER 52 | found WES 53 | 54 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test27.ans: -------------------------------------------------------------------------------- 1 | CDL macros 2 | c b a 3 | advancing head pointer 4 | b a c 5 | b a c b a c b a c b 6 | b c a b c a b c a b 7 | deleting b 8 | a c 9 | deleting head (a) 10 | c 11 | deleting new head (c) 12 | 13 | DL macros 14 | c b a 15 | deleting c 16 | b a 17 | deleting a 18 | b 19 | deleting b 20 | 21 | LL macros 22 | c b a 23 | deleting c 24 | b a 25 | deleting a 26 | b 27 | deleting b 28 | 29 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test28.ans: -------------------------------------------------------------------------------- 1 | CDL macros 2 | d c b a 3 | advancing head pointer 4 | c b a d 5 | c b a d c b a d c b 6 | c d a b c d a b c d 7 | deleting b 8 | c a d 9 | deleting (a) 10 | c d 11 | deleting (c) 12 | d 13 | deleting (d) 14 | 15 | DL macros 16 | c b a d 17 | deleting c 18 | b a d 19 | deleting a 20 | b d 21 | deleting b 22 | d 23 | deleting d 24 | 25 | LL macros 26 | c b a d 27 | deleting c 28 | b a d 29 | deleting a 30 | b d 31 | deleting b 32 | d 33 | deleting d 34 | 35 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test3.ans: -------------------------------------------------------------------------------- 1 | user 1, cookie 1 2 | user 3, cookie 9 3 | user 5, cookie 25 4 | user 7, cookie 49 5 | user 9, cookie 81 6 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test30.ans: -------------------------------------------------------------------------------- 1 | ADRIAN 2 | ARNOLDO 3 | CARROLL 4 | CARY 5 | CHONG 6 | CLIFTON 7 | CODY 8 | COLTON 9 | CORNELL 10 | DAMON 11 | DANNIE 12 | DARIO 13 | DONN 14 | DOUG 15 | DOUGLAS 16 | FREDERICK 17 | FRITZ 18 | GERALD 19 | GUS 20 | HARVEY 21 | IRVING 22 | ISAIAH 23 | JARVIS 24 | JOHN 25 | KENTON 26 | LAURENCE 27 | LESTER 28 | LINCOLN 29 | LOWELL 30 | NELSON 31 | NEVILLE 32 | NIGEL 33 | NORMAND 34 | ODIS 35 | OMAR 36 | ORLANDO 37 | RAYMUNDO 38 | REX 39 | ROLANDO 40 | RON 41 | SHANE 42 | TONEY 43 | TRINIDAD 44 | WALTER 45 | WARNER 46 | WARREN 47 | WES 48 | WILLARD 49 | WILLIAM 50 | WINFRED 51 | XAVIER 52 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test31.ans: -------------------------------------------------------------------------------- 1 | ADRIAN 2 | ARNOLDO 3 | CARROLL 4 | CARY 5 | CHONG 6 | CLIFTON 7 | CODY 8 | COLTON 9 | CORNELL 10 | DAMON 11 | DANNIE 12 | DARIO 13 | DONN 14 | DOUG 15 | DOUGLAS 16 | FREDERICK 17 | FRITZ 18 | GERALD 19 | GUS 20 | HARVEY 21 | IRVING 22 | ISAIAH 23 | JARVIS 24 | JOHN 25 | KENTON 26 | LAURENCE 27 | LESTER 28 | LINCOLN 29 | LOWELL 30 | NELSON 31 | NEVILLE 32 | NIGEL 33 | NORMAND 34 | ODIS 35 | OMAR 36 | ORLANDO 37 | RAYMUNDO 38 | REX 39 | ROLANDO 40 | RON 41 | SHANE 42 | TONEY 43 | TRINIDAD 44 | WALTER 45 | WARNER 46 | WARREN 47 | WES 48 | WILLARD 49 | WILLIAM 50 | WINFRED 51 | XAVIER 52 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test32.ans: -------------------------------------------------------------------------------- 1 | ARNOLDO 2 | COLTON 3 | WES 4 | WARNER 5 | TONEY 6 | NEVILLE 7 | CHONG 8 | KENTON 9 | DARIO 10 | DANNIE 11 | ODIS 12 | TRINIDAD 13 | DONN 14 | FRITZ 15 | NORMAND 16 | NIGEL 17 | CORNELL 18 | LINCOLN 19 | RAYMUNDO 20 | WINFRED 21 | JARVIS 22 | GUS 23 | ISAIAH 24 | XAVIER 25 | CARY 26 | ROLANDO 27 | LAURENCE 28 | CARROLL 29 | IRVING 30 | LOWELL 31 | DAMON 32 | OMAR 33 | REX 34 | ORLANDO 35 | DOUG 36 | WILLARD 37 | CLIFTON 38 | NELSON 39 | CODY 40 | ADRIAN 41 | HARVEY 42 | RON 43 | LESTER 44 | SHANE 45 | WARREN 46 | FREDERICK 47 | GERALD 48 | DOUGLAS 49 | WALTER 50 | WILLIAM 51 | JOHN 52 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test33.ans: -------------------------------------------------------------------------------- 1 | ADRIAN 2 | ARNOLDO 3 | CARROLL 4 | CARY 5 | CHONG 6 | CLIFTON 7 | CODY 8 | COLTON 9 | CORNELL 10 | DAMON 11 | DANNIE 12 | DARIO 13 | DONN 14 | DOUG 15 | DOUGLAS 16 | FREDERICK 17 | FRITZ 18 | GERALD 19 | GUS 20 | HARVEY 21 | IRVING 22 | ISAIAH 23 | JARVIS 24 | JOHN 25 | KENTON 26 | LAURENCE 27 | LESTER 28 | LINCOLN 29 | LOWELL 30 | NELSON 31 | NEVILLE 32 | NIGEL 33 | NORMAND 34 | ODIS 35 | OMAR 36 | ORLANDO 37 | RAYMUNDO 38 | REX 39 | ROLANDO 40 | RON 41 | SHANE 42 | TONEY 43 | TRINIDAD 44 | WALTER 45 | WARNER 46 | WARREN 47 | WES 48 | WILLARD 49 | WILLIAM 50 | WINFRED 51 | XAVIER 52 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test34.ans: -------------------------------------------------------------------------------- 1 | ARNOLDO 2 | COLTON 3 | WES 4 | WARNER 5 | TONEY 6 | NEVILLE 7 | CHONG 8 | KENTON 9 | DARIO 10 | DANNIE 11 | ODIS 12 | TRINIDAD 13 | DONN 14 | FRITZ 15 | NORMAND 16 | NIGEL 17 | CORNELL 18 | LINCOLN 19 | RAYMUNDO 20 | WINFRED 21 | JARVIS 22 | GUS 23 | ISAIAH 24 | XAVIER 25 | CARY 26 | ROLANDO 27 | LAURENCE 28 | CARROLL 29 | IRVING 30 | LOWELL 31 | DAMON 32 | OMAR 33 | REX 34 | ORLANDO 35 | DOUG 36 | WILLARD 37 | CLIFTON 38 | NELSON 39 | CODY 40 | ADRIAN 41 | HARVEY 42 | RON 43 | LESTER 44 | SHANE 45 | WARREN 46 | FREDERICK 47 | GERALD 48 | DOUGLAS 49 | WALTER 50 | WILLIAM 51 | JOHN 52 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test35.ans: -------------------------------------------------------------------------------- 1 | 0: aello 2 | 1: bello 3 | 2: cello 4 | 3: dello 5 | 4: eello 6 | 5: fello 7 | 6: gello 8 | 7: hello 9 | 8: iello 10 | 9: jello 11 | found aello 12 | right address? yes 13 | found bello 14 | right address? yes 15 | found cello 16 | right address? yes 17 | found dello 18 | right address? yes 19 | found eello 20 | right address? yes 21 | found fello 22 | right address? yes 23 | found gello 24 | right address? yes 25 | found hello 26 | right address? yes 27 | found iello 28 | right address? yes 29 | found jello 30 | right address? yes 31 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test36.ans: -------------------------------------------------------------------------------- 1 | user 0 2 | user 1 3 | user 2 4 | user 3 5 | user 4 6 | user 5 7 | user 6 8 | user 7 9 | user 8 10 | user 9 11 | user 0, should_find=1, found=1 12 | user 1, should_find=0, found=0 13 | user 2, should_find=1, found=1 14 | user 3, should_find=0, found=0 15 | user 4, should_find=1, found=1 16 | user 5, should_find=0, found=0 17 | user 6, should_find=1, found=1 18 | user 7, should_find=0, found=0 19 | user 8, should_find=1, found=1 20 | user 9, should_find=0, found=0 21 | auser 0 22 | auser 2 23 | auser 4 24 | auser 6 25 | auser 8 26 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test37.ans: -------------------------------------------------------------------------------- 1 | user 0 2 | user 1 3 | user 2 4 | user 3 5 | user 4 6 | user 5 7 | user 6 8 | user 7 9 | user 8 10 | user 9 11 | users count: 10 12 | auser 0 13 | auser 2 14 | auser 4 15 | auser 6 16 | auser 8 17 | ausers count: 5 18 | cleared ausers. 19 | ausers count: 0 20 | users count: 10 21 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test38.ans: -------------------------------------------------------------------------------- 1 | hash count 10 2 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test39.ans: -------------------------------------------------------------------------------- 1 | adding key eins 2 | adding key zwei 3 | adding key drei 4 | hash count is 3 5 | looking for key eins... found. 6 | looking for key zwei... found. 7 | looking for key drei... found. 8 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test4.ans: -------------------------------------------------------------------------------- 1 | cookie 0, user 0 2 | cookie 1, user 1 3 | cookie 4, user 2 4 | cookie 9, user 3 5 | cookie 16, user 4 6 | cookie 25, user 5 7 | cookie 36, user 6 8 | cookie 49, user 7 9 | cookie 64, user 8 10 | cookie 81, user 9 11 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test40.ans: -------------------------------------------------------------------------------- 1 | betty's id is 2 2 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test41.ans: -------------------------------------------------------------------------------- 1 | CDL macros 2 | c b a deleting c deleting b deleting a 3 | DL macros 4 | a b c deleting a deleting b deleting c 5 | LL macros 6 | a b c deleting a deleting b deleting c 7 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test42.ans: -------------------------------------------------------------------------------- 1 | LL macros 2 | a b c 3 | search scalar found b 4 | search found a 5 | 6 | DL macros 7 | a b c 8 | search scalar found b 9 | search found a 10 | 11 | CDL macros 12 | c b a 13 | search scalar found b 14 | search found a 15 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test44.ans: -------------------------------------------------------------------------------- 1 | 0 1 2 3 4 5 6 7 8 9 2 | 9 8 7 6 5 4 3 2 1 0 3 | 9 8 7 3 2 1 0 4 | 9 3 2 1 0 5 | 3 2 1 0 6 | 3 2 1 7 | 3 2 1 0 0 8 | 3 2 1 9 | 10 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test45.ans: -------------------------------------------------------------------------------- 1 | 1 2 3 4 5 6 7 8 2 | 1 2 3 100 4 5 6 7 8 3 | 1 2 3 100 4 5 6 7 8 1000 4 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test46.ans: -------------------------------------------------------------------------------- 1 | hello world 2 | begin hello world 3 | alt begin hello world oth 4 | hello world oth 5 | hello world 6 | hello world begin hello world 7 | begin hello world 8 | sorting strs2 9 | begin hello world 10 | reverse sorting strs2 11 | world hello begin 12 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test47.ans: -------------------------------------------------------------------------------- 1 | hello world 2 | hello world text 3 | second 4 | hello world text second 5 | cleared, length t now: 0 6 | length s now: 23 7 | one 1 two 2 three (3) 8 | length t now: 21 9 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test48.ans: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test48.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "utarray.h" 3 | 4 | int main() 5 | { 6 | UT_array *nums; 7 | int i, *p; 8 | 9 | utarray_new(nums,&ut_int_icd); 10 | for(i=0; i < 10; i++) { 11 | utarray_push_back(nums,&i); 12 | } 13 | 14 | for(p=(int*)utarray_front(nums); 15 | p!=NULL; 16 | p=(int*)utarray_next(nums,p)) { 17 | printf("%d\n",*p); 18 | } 19 | 20 | utarray_free(nums); 21 | 22 | return 0; 23 | } 24 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test49.ans: -------------------------------------------------------------------------------- 1 | hello 2 | world 3 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test49.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "utarray.h" 3 | 4 | int main() 5 | { 6 | UT_array *strs; 7 | const char *s, **p; 8 | 9 | utarray_new(strs,&ut_str_icd); 10 | 11 | s = "hello"; 12 | utarray_push_back(strs, &s); 13 | s = "world"; 14 | utarray_push_back(strs, &s); 15 | p = NULL; 16 | while ( (p=(const char**)utarray_next(strs,p)) != NULL ) { 17 | printf("%s\n",*p); 18 | } 19 | 20 | utarray_free(strs); 21 | 22 | return 0; 23 | } 24 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test5.ans: -------------------------------------------------------------------------------- 1 | cookie 0 found, user id 0 2 | cookie 4 found, user id 2 3 | cookie 16 found, user id 4 4 | cookie 36 found, user id 6 5 | cookie 64 found, user id 8 6 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test50.ans: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test50.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "utarray.h" 3 | 4 | int main() 5 | { 6 | UT_array *nums; 7 | long l, *p; 8 | UT_icd long_icd = {sizeof(long), NULL, NULL, NULL }; 9 | utarray_new(nums, &long_icd); 10 | 11 | l=1; 12 | utarray_push_back(nums, &l); 13 | l=2; 14 | utarray_push_back(nums, &l); 15 | 16 | p=NULL; 17 | while( (p=(long*)utarray_next(nums,p)) != NULL ) { 18 | printf("%ld\n", *p); 19 | } 20 | 21 | utarray_free(nums); 22 | return 0; 23 | } 24 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test51.ans: -------------------------------------------------------------------------------- 1 | 1 2 2 | 10 20 3 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test52.ans: -------------------------------------------------------------------------------- 1 | 1 hello 2 | 2 world 3 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test53.ans: -------------------------------------------------------------------------------- 1 | hello world! 2 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test53.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "utstring.h" 3 | 4 | int main() 5 | { 6 | UT_string *s; 7 | 8 | utstring_new(s); 9 | utstring_printf(s, "hello world!" ); 10 | printf("%s\n", utstring_body(s)); 11 | 12 | utstring_free(s); 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test54.ans: -------------------------------------------------------------------------------- 1 | length: 21 2 | hello world hi there 3 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test54.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "utstring.h" 3 | 4 | int main() 5 | { 6 | UT_string *s, *t; 7 | 8 | utstring_new(s); 9 | utstring_new(t); 10 | 11 | utstring_printf(s, "hello " ); 12 | utstring_printf(s, "world " ); 13 | 14 | utstring_printf(t, "hi " ); 15 | utstring_printf(t, "there " ); 16 | 17 | utstring_concat(s, t); 18 | printf("length: %u\n", (unsigned)utstring_len(s)); 19 | printf("%s\n", utstring_body(s)); 20 | 21 | utstring_free(s); 22 | utstring_free(t); 23 | return 0; 24 | } 25 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test55.ans: -------------------------------------------------------------------------------- 1 | length is 3 2 | number 10 3 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test55.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "utstring.h" 3 | 4 | int main() 5 | { 6 | UT_string *s; 7 | char binary[] = "\xff\xff"; 8 | 9 | utstring_new(s); 10 | utstring_bincpy(s, binary, sizeof(binary)); 11 | printf("length is %u\n", (unsigned)utstring_len(s)); 12 | 13 | utstring_clear(s); 14 | utstring_printf(s,"number %d", 10); 15 | printf("%s\n", utstring_body(s)); 16 | 17 | utstring_free(s); 18 | return 0; 19 | } 20 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test57.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/fhe-cmplr/third-party/uthash/tests/test57.ans -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test58.ans: -------------------------------------------------------------------------------- 1 | user 0, cookie 0 2 | user 1, cookie 1 3 | user 2, cookie 4 4 | user 3, cookie 9 5 | user 4, cookie 16 6 | user 5, cookie 25 7 | user 6, cookie 36 8 | user 7, cookie 49 9 | user 8, cookie 64 10 | user 9, cookie 81 11 | 10 users. Deleting odd id's... 12 | user 0, cookie 0 13 | user 2, cookie 4 14 | user 4, cookie 16 15 | user 6, cookie 36 16 | user 8, cookie 64 17 | 5 users. Deleting remaining id's... 18 | 0 users. 19 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test59.ans: -------------------------------------------------------------------------------- 1 | $items{bob}{age} = 37 2 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test6.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/fhe-cmplr/third-party/uthash/tests/test6.ans -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test60.ans: -------------------------------------------------------------------------------- 1 | $items{bob}{age} = 37 2 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test61.ans: -------------------------------------------------------------------------------- 1 | hello 2 | world 3 | one 4 | two 5 | three 6 | sorting 7 | finding hello 8 | hello 9 | finding one 10 | one 11 | finding three 12 | three 13 | finding two 14 | two 15 | finding world 16 | world 17 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test62.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/fhe-cmplr/third-party/uthash/tests/test62.ans -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test63.ans: -------------------------------------------------------------------------------- 1 | LL macros 2 | a b c 3 | d e f 4 | a b c d e f 5 | d e f 6 | d e f 7 | a b 8 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test64.ans: -------------------------------------------------------------------------------- 1 | DL macros 2 | a b c 3 | d e f 4 | a b c d e f 5 | d e f 6 | d e f 7 | a b 8 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test65.ans: -------------------------------------------------------------------------------- 1 | LRU deleting JOHN 2 | 0 3 | LRU deleting WILLIAM 4 | 1 5 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test65.dat: -------------------------------------------------------------------------------- 1 | JOHN 2 | WILLIAM 3 | WALTER 4 | DOUGLAS 5 | GERALD 6 | FREDERICK 7 | WARREN 8 | SHANE 9 | LESTER 10 | RON 11 | HARVEY 12 | ADRIAN 13 | CODY 14 | NELSON 15 | CLIFTON 16 | WILLARD 17 | DOUG 18 | ORLANDO 19 | REX 20 | OMAR 21 | DAMON 22 | LOWELL 23 | IRVING 24 | CARROLL 25 | LAURENCE 26 | ROLANDO 27 | CARY 28 | XAVIER 29 | ISAIAH 30 | GUS 31 | JARVIS 32 | WINFRED 33 | RAYMUNDO 34 | LINCOLN 35 | CORNELL 36 | NIGEL 37 | NORMAND 38 | FRITZ 39 | DONN 40 | TRINIDAD 41 | ODIS 42 | DANNIE 43 | DARIO 44 | KENTON 45 | CHONG 46 | NEVILLE 47 | TONEY 48 | WARNER 49 | WES 50 | COLTON 51 | ARNOLDO 52 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test66.ans: -------------------------------------------------------------------------------- 1 | added bob (id 0) 2 | added jack (id 1) 3 | added gary (id 2) 4 | added ty (id 3) 5 | added bo (id 4) 6 | added phil (id 5) 7 | added art (id 6) 8 | added gil (id 7) 9 | added buck (id 8) 10 | added ted (id 9) 11 | found bob (id 0) 12 | found jack (id 1) 13 | found gary (id 2) 14 | found ty (id 3) 15 | found bo (id 4) 16 | found phil (id 5) 17 | found art (id 6) 18 | found gil (id 7) 19 | found buck (id 8) 20 | found ted (id 9) 21 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test67.ans: -------------------------------------------------------------------------------- 1 | 9 2 | 8 3 | 7 4 | 6 5 | 5 6 | 4 7 | 3 8 | 2 9 | 1 10 | 0 11 | 9 12 | 8 13 | 7 14 | 6 15 | 5 16 | 4 17 | 3 18 | 2 19 | 1 20 | 0 21 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test68.ans: -------------------------------------------------------------------------------- 1 | DL replace elem 2 | a b c d 3 | e b c d 4 | f b c d 5 | f b c g 6 | f b c h 7 | f i j h 8 | k l m n 9 | s 10 | t 11 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test69.ans: -------------------------------------------------------------------------------- 1 | DL prepend elem 2 | a b c d 3 | e a b c d 4 | f e a b c d 5 | f e a b c g d 6 | f e a b c h g d 7 | f e a b i j c h g d 8 | k f l e m a n b o i p j q c r h s g t d 9 | u 10 | v u 11 | w v u 12 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test7.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/fhe-cmplr/third-party/uthash/tests/test7.ans -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test70.ans: -------------------------------------------------------------------------------- 1 | LL replace elem 2 | a b c d 3 | e b c d 4 | f b c d 5 | f b c g 6 | f b c h 7 | f i j h 8 | k l m n 9 | s 10 | t 11 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test71.ans: -------------------------------------------------------------------------------- 1 | LL prepend elem 2 | a b c d 3 | e a b c d 4 | f e a b c d 5 | f e a b c g d 6 | f e a b c h g d 7 | f e a b i j c h g d 8 | k f l e m a n b o i p j q c r h s g t d 9 | u 10 | v u 11 | w v u 12 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test72.ans: -------------------------------------------------------------------------------- 1 | CDL replace elem 2 | a b c d 3 | e b c d 4 | f b c d 5 | f b c g 6 | f b c h 7 | f i j h 8 | k l m n 9 | s 10 | t 11 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test73.ans: -------------------------------------------------------------------------------- 1 | CDL prepend elem 2 | a b c d 3 | e a b c d 4 | f e a b c d 5 | f e a b c g d 6 | f e a b c h g d 7 | f e a b i j c h g d 8 | k f l e m a n b o i p j q c r h s g t d 9 | u 10 | v u 11 | w v u 12 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test74.ans: -------------------------------------------------------------------------------- 1 | "There are two needle" len=55 2 | "needle" len=8 3 | utstring_find()=14 4 | utstring_find()=46 5 | utstring_find()=-1 6 | FindCnt=2 7 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test75.ans: -------------------------------------------------------------------------------- 1 | "There are two needle" len=55 2 | "needle" len=8 3 | utstring_findR()=46 4 | utstring_findR()=14 5 | utstring_findR()=-1 6 | FindCnt=2 7 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test76.ans: -------------------------------------------------------------------------------- 1 | "There are two needle" len=55 2 | "needle" len=8 3 | utstring_find()=14 4 | utstring_find()=46 5 | utstring_find()=-1 6 | FindCnt=2 7 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test77.ans: -------------------------------------------------------------------------------- 1 | "There are two needle" len=55 2 | "needle" len=8 3 | utstring_find()=46 4 | utstring_find()=14 5 | utstring_find()=-1 6 | FindCnt=2 7 | expect 15 15 8 | expect 4 4 9 | expect -1 -1 10 | expect 11 11 11 | expect 4 4 12 | expect 11 11 13 | expect 0 0 14 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test78.ans: -------------------------------------------------------------------------------- 1 | CDL macros 2 | c b a 3 | advancing head pointer 4 | b a c 5 | b a c b a c b a c b 6 | b c a b c a b c a b 7 | deleting b 8 | a c 9 | deleting (a) 10 | c 11 | deleting (c) 12 | 13 | DL macros 14 | a b c 15 | deleting tail c 16 | a b 17 | deleting head a 18 | b 19 | deleting head b 20 | 21 | LL macros 22 | a b c 23 | deleting tail c 24 | a b 25 | deleting head a 26 | b 27 | deleting head b 28 | 29 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test79.ans: -------------------------------------------------------------------------------- 1 | added 10 100 2 | id 10, tag 100 3 | added 11 101 4 | id 10, tag 100 5 | id 11, tag 101 6 | replaced 11 that had tag 101 with tag 102 7 | id 10, tag 100 8 | id 11, tag 102 9 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test8.ans: -------------------------------------------------------------------------------- 1 | num_items in hash: 1 2 | num_items in hash: 2 3 | num_items in hash: 3 4 | num_items in hash: 4 5 | num_items in hash: 5 6 | num_items in hash: 6 7 | num_items in hash: 7 8 | num_items in hash: 8 9 | num_items in hash: 9 10 | num_items in hash: 10 11 | deleted; num_items in hash: 9 12 | deleted; num_items in hash: 8 13 | deleted; num_items in hash: 7 14 | deleted; num_items in hash: 6 15 | deleted; num_items in hash: 5 16 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test80.ans: -------------------------------------------------------------------------------- 1 | 0 1 2 3 4 5 6 7 8 9 2 | len: 10 3 | 4 | 0 1 2 3 4 5 6 7 8 9 0 11 5 | len: 12 6 | 7 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test81.ans: -------------------------------------------------------------------------------- 1 | 0 1 2 3 4 5 6 7 8 9 2 | len: 10 3 | 4 | 0 1 2 3 4 5 6 7 8 9 10 5 | len: 11 6 | 7 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test82.ans: -------------------------------------------------------------------------------- 1 | 0 1 2 3 4 5 6 7 8 9 2 | len: 10 3 | 4 | 0 0 0 0 0 0 0 0 0 0 0 1 2 3 4 5 6 7 8 9 len: 20 5 | 6 | 0 1 2 3 4 5 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 1 2 3 4 5 6 7 8 9 len: 30 7 | 8 | 0 1 2 3 4 5 6 7 8 9 0 0 0 0 0 0 0 0 0 0 0 1 2 3 4 0 1 2 3 4 5 6 7 8 9 5 6 7 8 9 len: 40 9 | 10 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test85.ans: -------------------------------------------------------------------------------- 1 | overhead non-zero 2 | overhead zero 3 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test88.ans: -------------------------------------------------------------------------------- 1 | alt_strlen 2 | alt_strlen 3 | alt_strlen 4 | alt_strlen 5 | alt_strlen 6 | alt_strlen 7 | alt_strlen 8 | alt_strlen 9 | alt_strlen 10 | alt_strlen 11 | alt_strlen 12 | alt_keycmp 13 | alt_strlen 14 | alt_keycmp 15 | alt_strlen 16 | alt_keycmp 17 | alt_strlen 18 | alt_keycmp 19 | alt_strlen 20 | alt_keycmp 21 | alt_strlen 22 | alt_keycmp 23 | alt_strlen 24 | alt_keycmp 25 | alt_strlen 26 | alt_keycmp 27 | alt_strlen 28 | alt_keycmp 29 | alt_strlen 30 | alt_keycmp 31 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test89.ans: -------------------------------------------------------------------------------- 1 | node #0, timeout: 100 2 | node #1, timeout: 200 3 | node #2, timeout: 300 4 | node #3, timeout: 400 5 | node #4, timeout: 500 6 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test90.ans: -------------------------------------------------------------------------------- 1 | filling in is ok 2 | cleanup is ok 3 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test91.ans: -------------------------------------------------------------------------------- 1 | n g m f l e k d j c i b o h a 2 | DL_INSERT_INORDER 3 | n g m f l e k d j c i b o h a 4 | CDL_INSERT_INORDER 5 | n g m f l e k d j c i b o h a 6 | n a h o b i c j d k e l f m g 7 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test92.ans: -------------------------------------------------------------------------------- 1 | End 2 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test93.ans: -------------------------------------------------------------------------------- 1 | End 2 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test94.ans: -------------------------------------------------------------------------------- 1 | LL_INSERT_INORDER 2 | list1: n g m f l e k d j c i b o h a 3 | list2: o h a i b j c k d l e m f n g 4 | DL_INSERT_INORDER 5 | list1: n g m f l e k d j c i b o h a 6 | list2: o h a i b j c k d l e m f n g 7 | CDL_INSERT_INORDER 8 | list1: 9 | n g m f l e k d j c i b o h a 10 | n a h o b i c j d k e l f m g 11 | list2: 12 | o h a i b j c k d l e m f n g 13 | o g n f m e l d k c j b i a h 14 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test95.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/fhe-cmplr/third-party/uthash/tests/test95.ans -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/test97.ans: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/fhe-cmplr/third-party/uthash/tests/test97.ans -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/threads/README: -------------------------------------------------------------------------------- 1 | test1: exercise a two-reader, one-writer, rwlock-protected hash. 2 | test2: a template for a nthread, nloop kind of program 3 | -------------------------------------------------------------------------------- /fhe-cmplr/third-party/uthash/tests/threads/do_tests: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | use strict; 4 | use warnings; 5 | 6 | my @tests; 7 | for (glob "test*[0-9]") { 8 | push @tests, $_ if -e "$_.ans"; 9 | } 10 | 11 | my $num_failed=0; 12 | 13 | for my $test (@tests) { 14 | `./$test > $test.out 2> $test.err`; 15 | `diff $test.out $test.ans`; 16 | print "$test failed\n" if $?; 17 | $num_failed++ if $?; 18 | unlink "$test.err" if -z "$test.err"; 19 | } 20 | 21 | print scalar @tests . " tests conducted, $num_failed failed.\n"; 22 | exit $num_failed; 23 | -------------------------------------------------------------------------------- /fhe-cmplr/util/example/eg_fheutil_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/util/src/util.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int Util_test() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/util/test/test_fheutil_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /fhe-cmplr/util/unittest/test_fheutil.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /fhe-cmplr/util/unittest/ut_util.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | namespace { 12 | 13 | // TODO: replace later 14 | TEST(UTIL, MESSAGE) { EXPECT_EQ(0, 0); } 15 | 16 | } // namespace -------------------------------------------------------------------------------- /model/resnet110_cifar10_train.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/model/resnet110_cifar10_train.onnx -------------------------------------------------------------------------------- /model/resnet20_cifar10_pre.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/model/resnet20_cifar10_pre.onnx -------------------------------------------------------------------------------- /model/resnet32_cifar100_pre.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/model/resnet32_cifar100_pre.onnx -------------------------------------------------------------------------------- /model/resnet32_cifar10_pre.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/model/resnet32_cifar10_pre.onnx -------------------------------------------------------------------------------- /model/resnet44_cifar10_pre.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/model/resnet44_cifar10_pre.onnx -------------------------------------------------------------------------------- /model/resnet56_cifar10_pre.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/model/resnet56_cifar10_pre.onnx -------------------------------------------------------------------------------- /nn-addon/LEGAL.md: -------------------------------------------------------------------------------- 1 | Legal Disclaimer 2 | 3 | Within this source code, the comments in Chinese shall be the original, governing version. Any comment in other languages are for reference only. In the event of any conflict between the Chinese language version comments and other language version comments, the Chinese language version shall prevail. 4 | 5 | 法律免责声明 6 | 7 | 关于代码注释部分,中文注释为官方版本,其它语言注释仅做参考。中文注释可能与其它语言注释存在不一致,当中文注释与其它语言注释存在不一致时,请以中文注释为准。 -------------------------------------------------------------------------------- /nn-addon/benchmark/src/bm_nn_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #define PROFILE 10 | 11 | #include "benchmark/benchmark.h" 12 | 13 | void Bm_string_copy(benchmark::State& state) { 14 | std::string x = "hello"; 15 | for (auto _ : state) std::string copy(x); 16 | } 17 | 18 | BENCHMARK(Bm_string_copy); 19 | 20 | BENCHMARK_MAIN(); -------------------------------------------------------------------------------- /nn-addon/cloc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | REPO=nn 4 | COMP="core driver onnx2air vector util" 5 | 6 | for i in $COMP; do 7 | echo "$i HEADER" 8 | echo "=====================================" 9 | cloc include/$REPO/$i 10 | echo "$i SOURCE" 11 | echo "=====================================" 12 | cloc $i/src 13 | echo "$i UNITTEST" 14 | echo "=====================================" 15 | cloc $i/unittest $i/test $i/example 16 | echo "$i TOTAL" 17 | echo "=====================================" 18 | cloc include/$REPO/$i $i/src $i/unittest $i/test $i/example 19 | done 20 | 21 | -------------------------------------------------------------------------------- /nn-addon/core/doc/README.md: -------------------------------------------------------------------------------- 1 | # design documents 2 | 3 | ## TODO -------------------------------------------------------------------------------- /nn-addon/core/example/eg_nncore_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /nn-addon/core/src/core.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int Core_test() { return 0; } -------------------------------------------------------------------------------- /nn-addon/core/test/test_nncore_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /nn-addon/core/unittest/test_nncore.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /nn-addon/core/unittest/ut_core.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | namespace { 12 | 13 | // TODO: replace later 14 | TEST(CORE, MESSAGE) { EXPECT_EQ(0, 0); } 15 | 16 | } // namespace -------------------------------------------------------------------------------- /nn-addon/devtools/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: Google 2 | IndentWidth: 2 3 | AccessModifierOffset: -2 4 | AlignArrayOfStructures: Left 5 | AlignConsecutiveAssignments: true 6 | AlignConsecutiveDeclarations: true 7 | AlignConsecutiveMacros: true 8 | DerivePointerAlignment: false 9 | -------------------------------------------------------------------------------- /nn-addon/doc/README.md: -------------------------------------------------------------------------------- 1 | # design documents 2 | 3 | ## TODO -------------------------------------------------------------------------------- /nn-addon/driver/doc/README.md: -------------------------------------------------------------------------------- 1 | # design documents 2 | 3 | ## TODO -------------------------------------------------------------------------------- /nn-addon/driver/example/eg_nndriver_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } 11 | -------------------------------------------------------------------------------- /nn-addon/driver/test/test_nndriver_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /nn-addon/driver/unittest/test_nndriver.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /nn-addon/driver/unittest/ut_driver.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | namespace { 12 | 13 | // TODO: replace later 14 | TEST(DRIVER, MESSAGE) { EXPECT_EQ(0, 0); } 15 | 16 | } // namespace -------------------------------------------------------------------------------- /nn-addon/include/nn/util/util.h: -------------------------------------------------------------------------------- 1 | // -*-c++-*- =================================================================== 2 | // 3 | // Part of the AVH_Compiler Project, under the Apache License v2.0. 4 | // See http://avhc.org/LICENSE/txt for license information. 5 | // 6 | // ============================================================================= 7 | 8 | #ifndef NN_UTIL_H 9 | #define NN_UTIL_H 10 | 11 | #include 12 | 13 | #endif // NN_UTIL_H -------------------------------------------------------------------------------- /nn-addon/llama/unittest/test_nnllama.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | // Main entry point for Google Test unit tests. 12 | int main(int argc, char** argv) { 13 | testing::InitGoogleTest(&argc, argv); 14 | return RUN_ALL_TESTS(); 15 | } 16 | -------------------------------------------------------------------------------- /nn-addon/onnx/doc/README.md: -------------------------------------------------------------------------------- 1 | # design documents 2 | 3 | ## TODO -------------------------------------------------------------------------------- /nn-addon/onnx/example/eg_nnonnx_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /nn-addon/onnx/src/onnx.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int Onnx_test() { return 0; } -------------------------------------------------------------------------------- /nn-addon/onnx/test/test_nnonnx_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /nn-addon/onnx/unittest/test_nnonnx.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /nn-addon/onnx/unittest/ut_onnx.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | namespace { 12 | 13 | TEST(ONNX, MESSAGE) { EXPECT_EQ(0, 0); } 14 | 15 | } // namespace -------------------------------------------------------------------------------- /nn-addon/onnx2air/doc/README.md: -------------------------------------------------------------------------------- 1 | # design documents 2 | 3 | ## TODO -------------------------------------------------------------------------------- /nn-addon/onnx2air/example/eg_onnx2air_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /nn-addon/onnx2air/unittest/test_nnonnx2air.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /nn-addon/onnx2air/unittest/ut_onnx2air.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | namespace { 12 | 13 | // TODO: replace later 14 | TEST(ONNX2AIR, MESSAGE) { EXPECT_EQ(0, 0); } 15 | 16 | } // namespace -------------------------------------------------------------------------------- /nn-addon/opt/doc/README.md: -------------------------------------------------------------------------------- 1 | # design documents 2 | 3 | ## TODO -------------------------------------------------------------------------------- /nn-addon/opt/example/eg_nnopt_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /nn-addon/opt/src/opt.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int Opt_test() { return 0; } -------------------------------------------------------------------------------- /nn-addon/opt/test/test_nnopt_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /nn-addon/opt/unittest/test_nnopt.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /nn-addon/opt/unittest/ut_opt.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | namespace { 12 | 13 | // TODO: replace later 14 | TEST(OPT, MESSAGE) { EXPECT_EQ(0, 0); } 15 | 16 | } // namespace -------------------------------------------------------------------------------- /nn-addon/test/test_nn_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /nn-addon/test/test_onnx_cmplr.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "parameter : $1" 4 | 5 | echo "Download onnx file from oss://antsys-fhe/cti/onnx/" 6 | ossutil64 cp oss://antsys-fhe/cti/onnx/op/ onnx/ -r --update 7 | 8 | for item in `ls ./onnx/*.onnx` 9 | do 10 | echo $item 11 | echo "=======================================" 12 | ../driver/onnx_cmplr $item 13 | done 14 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/.github/ISSUE_TEMPLATE/operator.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: New Operator 3 | about: Create a new operator that does not currently exist in the ONNX. 4 | title: '' 5 | labels: 'operator' 6 | assignees: '' 7 | 8 | 9 | 10 | --- 11 | # New Operator 12 | 13 | ### Describe the operator 14 | Why is this operator necessary? What does it accomplish? 15 | 16 | ### Can this operator be constructed using existing onnx operators? 17 | If so, why not add it as a function? 18 | 19 | ### Is this operator used by any model currently? Which one? 20 | 21 | ### Are you willing to contribute it? (Y/N) 22 | 23 | ### Notes 24 | Any additional information 25 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "third_party/pybind11"] 2 | path = third_party/pybind11 3 | url = https://code.alipay.com/opencc/pybind11.git 4 | branch = master 5 | [submodule "third_party/benchmark"] 6 | path = third_party/benchmark 7 | url = https://code.alipay.com/opencc/benchmark.git 8 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @onnx/sig-archinfra-approvers 2 | /community @onnx/steering-commmittee 3 | /onnx/defs @onnx/sig-operators-approvers 4 | /onnx/backend/test @onnx/sig-operators-approvers 5 | /docs/AddNewOp.md @onnx/sig-operators-approvers 6 | /docs/TestCoverage*.md @onnx/sig-operators-approvers 7 | /docs/Operators*.md @onnx/sig-operators-approvers 8 | /docs/OpConventions.md @onnx/sig-operators-approvers 9 | /docs/Broadcasting.md @onnx/sig-operators-approvers 10 | /docs/Changelog*.md @onnx/sig-operators-approvers 11 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/MANIFEST.in: -------------------------------------------------------------------------------- 1 | recursive-include onnx *.h *.c *.cc *.proto 2 | recursive-include third_party * 3 | include LICENSE 4 | recursive-include onnx/backend/test/data * 5 | recursive-include onnx/examples * 6 | recursive-include cmake * 7 | recursive-include tools * 8 | include VERSION_NUMBER 9 | include CMakeLists.txt 10 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/VERSION_NUMBER: -------------------------------------------------------------------------------- 1 | 1.9.0 2 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/cmake/ONNXConfigVersion.cmake.in: -------------------------------------------------------------------------------- 1 | set(PACKAGE_VERSION "@ONNX_VERSION@") 2 | 3 | # Check whether the requested PACKAGE_FIND_VERSION is compatible 4 | if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}") 5 | set(PACKAGE_VERSION_COMPATIBLE FALSE) 6 | else() 7 | set(PACKAGE_VERSION_COMPATIBLE TRUE) 8 | if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}") 9 | set(PACKAGE_VERSION_EXACT TRUE) 10 | endif() 11 | endif() 12 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/docs/ONNX_logo_main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/nn-addon/third-party/onnx/docs/ONNX_logo_main.png -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/docs/Relicensing.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Relicensing MIT to Apache-2.0 4 | 5 | The following copyright holders agree that all of their contributions originally submitted to this project under the MIT license are hereby relicensed to Apache-2.0, and are submitted pursuant to the Developer Certificate of Origin, version 1.1: 6 | 7 | Intel Corporation 8 | Microsoft Corporation 9 | NVIDIA Corporation 10 | IBM Corporation 11 | Facebook Inc. 12 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/backend/__init__.py: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: Apache-2.0 2 | 3 | from __future__ import absolute_import 4 | from __future__ import division 5 | from __future__ import print_function 6 | from __future__ import unicode_literals 7 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/backend/sample/__init__.py: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: Apache-2.0 2 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/backend/sample/ops/abs.py: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: Apache-2.0 2 | 3 | from __future__ import absolute_import 4 | from __future__ import division 5 | from __future__ import print_function 6 | from __future__ import unicode_literals 7 | 8 | import numpy as np # type: ignore 9 | 10 | 11 | def abs(input): # type: (np.ndarray) -> np.ndarray 12 | return np.abs(input) 13 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/bin/__init__.py: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: Apache-2.0 2 | 3 | from __future__ import absolute_import 4 | from __future__ import division 5 | from __future__ import print_function 6 | from __future__ import unicode_literals 7 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/common/path.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-License-Identifier: Apache-2.0 3 | */ 4 | 5 | // Copyright (c) ONNX Project Contributors. 6 | // Licensed under the MIT license. 7 | 8 | #include "onnx/common/path.h" 9 | 10 | namespace ONNX_NAMESPACE { 11 | 12 | std::string path_join(const std::string& origin, const std::string& append) { 13 | if (origin.find_last_of(k_preferred_path_separator) != origin.length() - k_preferred_path_separator.length()) { 14 | return origin + k_preferred_path_separator + append; 15 | } 16 | return origin + append; 17 | } 18 | 19 | } // namespace ONNX_NAMESPACE 20 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/common/path.h: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-License-Identifier: Apache-2.0 3 | */ 4 | 5 | // Copyright (c) ONNX Project Contributors. 6 | // Licensed under the MIT license. 7 | 8 | #pragma once 9 | 10 | #include 11 | 12 | namespace ONNX_NAMESPACE { 13 | 14 | #ifdef _WIN32 15 | const std::string k_preferred_path_separator = "\\"; 16 | #else // POSIX 17 | const std::string k_preferred_path_separator = "/"; 18 | #endif 19 | 20 | std::string path_join(const std::string& origin, const std::string& append); 21 | 22 | } // namespace ONNX_NAMESPACE 23 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/common/platform_helpers.h: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-License-Identifier: Apache-2.0 3 | */ 4 | 5 | 6 | #pragma once 7 | 8 | namespace ONNX_NAMESPACE { 9 | 10 | // Determine if the processor is little endian or not 11 | inline bool is_processor_little_endian() { 12 | int num = 1; 13 | if (*(char*)&num == 1) 14 | return true; 15 | return false; 16 | } 17 | 18 | } // namespace ONNX_NAMESPACE 19 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/common/version.h: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-License-Identifier: Apache-2.0 3 | */ 4 | 5 | 6 | #pragma once 7 | 8 | namespace ONNX_NAMESPACE { 9 | 10 | // Represents the most recent release version. Updated with every release. 11 | constexpr const char* LAST_RELEASE_VERSION = "1.9.0"; 12 | 13 | } 14 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/defs/tensor_proto_util.h: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-License-Identifier: Apache-2.0 3 | */ 4 | 5 | 6 | #pragma once 7 | 8 | #include "onnx/onnx-operators_pb.h" 9 | 10 | namespace ONNX_NAMESPACE { 11 | 12 | template 13 | TensorProto ToTensor(const T& value); 14 | 15 | template 16 | TensorProto ToTensor(const std::vector& values); 17 | 18 | template 19 | const std::vector ParseData(const TensorProto* tensor_proto); 20 | 21 | } // namespace ONNX_NAMESPACE 22 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/defs/tensor_util.h: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-License-Identifier: Apache-2.0 3 | */ 4 | 5 | 6 | #pragma once 7 | 8 | #include "onnx/common/ir.h" 9 | 10 | namespace ONNX_NAMESPACE { 11 | 12 | template 13 | const std::vector ParseData(const Tensor* tensor); 14 | 15 | } // namespace ONNX_NAMESPACE 16 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/frontend/__init__.py: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: Apache-2.0 2 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/onnx-data_pb.h: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-License-Identifier: Apache-2.0 3 | */ 4 | 5 | 6 | #pragma once 7 | 8 | #include "onnx/onnx_pb.h" 9 | #include "onnx/onnx-data.pb.h" 10 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/onnx-operators_pb.h: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-License-Identifier: Apache-2.0 3 | */ 4 | 5 | 6 | #pragma once 7 | 8 | #include "onnx/onnx_pb.h" 9 | #ifdef ONNX_ML 10 | #include "onnx/onnx-operators-ml.pb.h" 11 | #else 12 | #include "onnx/onnx-operators.pb.h" 13 | #endif 14 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/onnx_cpp2py_export/__init__.pyi: -------------------------------------------------------------------------------- 1 | # This is __init__.pyi, not __init__.py 2 | # This directory is only considered for typing information, not for actual 3 | # module implementations. 4 | 5 | ONNX_ML : bool = ... 6 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/onnx_cpp2py_export/shape_inference.pyi: -------------------------------------------------------------------------------- 1 | from typing import Text 2 | 3 | 4 | class InferenceError(Exception): 5 | ... 6 | 7 | def infer_shapes(b: bytes, check_type: bool, strict_mode: bool) -> bytes: ... 8 | 9 | def infer_shapes_path(model_path: Text, output_path: Text, check_type: bool, strict_mode: bool) -> None: ... 10 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/onnx_cpp2py_export/version_converter.pyi: -------------------------------------------------------------------------------- 1 | from typing import Sequence, Text 2 | 3 | class ConvertError(Exception): 4 | ... 5 | 6 | # Where the first bytes are a serialized ModelProto 7 | def convert_version(bytes: bytes, target: int) -> bytes: ... 8 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/onnxifi_utils.h: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-License-Identifier: Apache-2.0 3 | */ 4 | 5 | #include 6 | #include 7 | 8 | #include "onnx/onnx_pb.h" 9 | #include "onnx/onnxifi.h" 10 | #include "onnx/proto_utils.h" 11 | 12 | namespace ONNX_NAMESPACE { 13 | namespace testing { 14 | 15 | onnxTensorDescriptorV1 ProtoToOnnxTensorDescriptor( 16 | const ONNX_NAMESPACE::TensorProto& proto_tensor, 17 | std::vector>& shape_pool); 18 | } // namespace testing 19 | } // namespace ONNX_NAMESPACE 20 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/py_utils.h: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-License-Identifier: Apache-2.0 3 | */ 4 | 5 | #pragma once 6 | 7 | #include 8 | #include "onnx/proto_utils.h" 9 | 10 | namespace ONNX_NAMESPACE { 11 | namespace py = pybind11; 12 | 13 | template 14 | bool ParseProtoFromPyBytes(Proto* proto, const py::bytes& bytes) { 15 | // Get the buffer from Python bytes object 16 | char* buffer = nullptr; 17 | Py_ssize_t length; 18 | PyBytes_AsStringAndSize(bytes.ptr(), &buffer, &length); 19 | 20 | return ParseProtoFromBytes(proto, buffer, length); 21 | } 22 | } // namespace ONNX_NAMESPACE 23 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/test/__init__.pyi: -------------------------------------------------------------------------------- 1 | # This file needs to be here to enable mypy type checking for this folder. 2 | # It doesn't make this a python module for installation purposes as a __init__.pyi would. 3 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/test/cpp/test_main.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-License-Identifier: Apache-2.0 3 | */ 4 | 5 | #include 6 | #include "gtest/gtest.h" 7 | 8 | GTEST_API_ int main(int argc, char** argv) 9 | { 10 | std::cout << "Running main() from test_main.cc" << std::endl; 11 | ::testing::InitGoogleTest(&argc, argv); 12 | return RUN_ALL_TESTS(); 13 | } 14 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/test/elu_test.py: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: Apache-2.0 2 | 3 | import unittest 4 | 5 | from onnx import defs, checker, helper 6 | 7 | 8 | class TestRelu(unittest.TestCase): 9 | 10 | def test_elu(self): # type: () -> None 11 | self.assertTrue(defs.has('Elu')) 12 | node_def = helper.make_node( 13 | 'Elu', ['X'], ['Y'], alpha=1.0) 14 | checker.check_node(node_def) 15 | 16 | 17 | if __name__ == '__main__': 18 | unittest.main() 19 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/test/relu_test.py: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: Apache-2.0 2 | 3 | import unittest 4 | 5 | from onnx import defs, helper 6 | 7 | 8 | class TestRelu(unittest.TestCase): 9 | 10 | def test_relu(self): # type: () -> None 11 | self.assertTrue(defs.has('Relu')) 12 | helper.make_node( 13 | 'Relu', ['X'], ['Y']) 14 | 15 | 16 | if __name__ == '__main__': 17 | unittest.main() 18 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/onnx/tools/__init__.py: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: Apache-2.0 2 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/pyproject.toml: -------------------------------------------------------------------------------- 1 | [build-system] 2 | # Minimum requirements for the build system to execute. 3 | requires = ["setuptools", "wheel", "protobuf"] 4 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/nn-addon/third-party/onnx/stubs/.gitkeep -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/google/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | Type stubs taken from https://github.com/python/typeshed/tree/f4d19d9f612ae24dfe3e35770d7820c3bd4045d2/third_party/2/google 4 | Which unfortunately only defines it for python 2, but we also need it for python 3. 5 | 6 | This stub can be deleted once we updated to a mypy version including https://github.com/python/typeshed/pull/2140 7 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/google/__init__.pyi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/nn-addon/third-party/onnx/stubs/google/__init__.pyi -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/google/protobuf/__init__.pyi: -------------------------------------------------------------------------------- 1 | __version__ = ... # type: str 2 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/google/protobuf/any_pb2.pyi: -------------------------------------------------------------------------------- 1 | from google.protobuf.message import ( 2 | Message, 3 | ) 4 | from typing import ( 5 | Optional, 6 | Text, 7 | ) 8 | 9 | 10 | class Any(Message): 11 | type_url = ... # type: Text 12 | value = ... # type: str 13 | 14 | def __init__(self, 15 | type_url: Optional[Text] = ..., 16 | value: Optional[str] = ..., 17 | ) -> None: ... 18 | 19 | @classmethod 20 | def FromString(cls, s: str) -> Any: ... 21 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/google/protobuf/compiler/__init__.pyi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/nn-addon/third-party/onnx/stubs/google/protobuf/compiler/__init__.pyi -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/google/protobuf/duration_pb2.pyi: -------------------------------------------------------------------------------- 1 | from google.protobuf.message import ( 2 | Message, 3 | ) 4 | from typing import ( 5 | Optional, 6 | ) 7 | 8 | 9 | class Duration(Message): 10 | seconds = ... # type: int 11 | nanos = ... # type: int 12 | 13 | def __init__(self, 14 | seconds: Optional[int] = ..., 15 | nanos: Optional[int] = ..., 16 | ) -> None: ... 17 | 18 | @classmethod 19 | def FromString(cls, s: str) -> Duration: ... 20 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/google/protobuf/empty_pb2.pyi: -------------------------------------------------------------------------------- 1 | from google.protobuf.message import ( 2 | Message, 3 | ) 4 | 5 | 6 | class Empty(Message): 7 | 8 | def __init__(self, 9 | ) -> None: ... 10 | 11 | @classmethod 12 | def FromString(cls, s: str) -> Empty: ... 13 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/google/protobuf/field_mask_pb2.pyi: -------------------------------------------------------------------------------- 1 | from google.protobuf.internal.containers import ( 2 | RepeatedScalarFieldContainer, 3 | ) 4 | from google.protobuf.message import ( 5 | Message, 6 | ) 7 | from typing import ( 8 | Iterable, 9 | Optional, 10 | Text, 11 | ) 12 | 13 | 14 | class FieldMask(Message): 15 | paths = ... # type: RepeatedScalarFieldContainer[Text] 16 | 17 | def __init__(self, 18 | paths: Optional[Iterable[Text]] = ..., 19 | ) -> None: ... 20 | 21 | @classmethod 22 | def FromString(cls, s: str) -> FieldMask: ... 23 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/google/protobuf/internal/__init__.pyi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/nn-addon/third-party/onnx/stubs/google/protobuf/internal/__init__.pyi -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/google/protobuf/internal/enum_type_wrapper.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, List, Tuple 2 | 3 | class EnumTypeWrapper(object): 4 | def __init__(self, enum_type: Any) -> None: ... 5 | def Name(self, number: int) -> str: ... 6 | def Value(self, name: str) -> int: ... 7 | def keys(self) -> List[str]: ... 8 | def values(self) -> List[int]: ... 9 | 10 | @classmethod 11 | def items(cls) -> List[Tuple[str, int]]: ... 12 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/google/protobuf/internal/message_listener.pyi: -------------------------------------------------------------------------------- 1 | class MessageListener(object): 2 | def Modified(self) -> None: ... 3 | 4 | class NullMessageListener(MessageListener): 5 | def Modified(self) -> None: ... 6 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/google/protobuf/message_factory.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Dict, Iterable, Optional, Type 2 | 3 | from .message import Message 4 | from .descriptor import Descriptor 5 | from .descriptor_pool import DescriptorPool 6 | 7 | class MessageFactory: 8 | pool = ... # type: Any 9 | def __init__(self, pool: Optional[DescriptorPool] = ...) -> None: ... 10 | def GetPrototype(self, descriptor: Descriptor) -> Type[Message]: ... 11 | def GetMessages(self, files: Iterable[str]) -> Dict[str, Type[Message]]: ... 12 | 13 | def GetMessages(file_protos: Iterable[str]) -> Dict[str, Type[Message]]: ... 14 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/google/protobuf/reflection.pyi: -------------------------------------------------------------------------------- 1 | class GeneratedProtocolMessageType(type): 2 | def __new__(cls, name, bases, dictionary): ... 3 | def __init__(cls, name, bases, dictionary) -> None: ... 4 | 5 | def ParseMessage(descriptor, byte_str): ... 6 | def MakeClass(descriptor): ... 7 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/google/protobuf/source_context_pb2.pyi: -------------------------------------------------------------------------------- 1 | from google.protobuf.message import ( 2 | Message, 3 | ) 4 | from typing import ( 5 | Optional, 6 | Text, 7 | ) 8 | 9 | 10 | class SourceContext(Message): 11 | file_name = ... # type: Text 12 | 13 | def __init__(self, 14 | file_name: Optional[Text] = ..., 15 | ) -> None: ... 16 | 17 | @classmethod 18 | def FromString(cls, s: str) -> SourceContext: ... 19 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/google/protobuf/timestamp_pb2.pyi: -------------------------------------------------------------------------------- 1 | from google.protobuf.message import ( 2 | Message, 3 | ) 4 | from typing import ( 5 | Optional, 6 | ) 7 | 8 | 9 | class Timestamp(Message): 10 | seconds = ... # type: int 11 | nanos = ... # type: int 12 | 13 | def __init__(self, 14 | seconds: Optional[int] = ..., 15 | nanos: Optional[int] = ..., 16 | ) -> None: ... 17 | 18 | @classmethod 19 | def FromString(cls, s: str) -> Timestamp: ... 20 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/google/protobuf/unittest_import_public_pb2.pyi: -------------------------------------------------------------------------------- 1 | from google.protobuf.message import ( 2 | Message, 3 | ) 4 | from typing import ( 5 | Optional, 6 | ) 7 | 8 | 9 | class PublicImportMessage(Message): 10 | e = ... # type: int 11 | 12 | def __init__(self, 13 | e: Optional[int] = ..., 14 | ) -> None: ... 15 | 16 | @classmethod 17 | def FromString(cls, s: str) -> PublicImportMessage: ... 18 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/google/protobuf/unittest_no_arena_import_pb2.pyi: -------------------------------------------------------------------------------- 1 | from google.protobuf.message import ( 2 | Message, 3 | ) 4 | from typing import ( 5 | Optional, 6 | ) 7 | 8 | 9 | class ImportNoArenaNestedMessage(Message): 10 | d = ... # type: int 11 | 12 | def __init__(self, 13 | d: Optional[int] = ..., 14 | ) -> None: ... 15 | 16 | @classmethod 17 | def FromString(cls, s: str) -> ImportNoArenaNestedMessage: ... 18 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/stubs/google/protobuf/util/__init__.pyi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/nn-addon/third-party/onnx/stubs/google/protobuf/util/__init__.pyi -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/benchmark/.clang-format: -------------------------------------------------------------------------------- 1 | --- 2 | Language: Cpp 3 | BasedOnStyle: Google 4 | ... 5 | 6 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/benchmark/WORKSPACE: -------------------------------------------------------------------------------- 1 | workspace(name = "com_github_google_benchmark") 2 | 3 | http_archive( 4 | name = "com_google_googletest", 5 | urls = ["https://github.com/google/googletest/archive/3f0cf6b62ad1eb50d8736538363d3580dd640c3e.zip"], 6 | strip_prefix = "googletest-3f0cf6b62ad1eb50d8736538363d3580dd640c3e", 7 | ) 8 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/benchmark/cmake/Config.cmake.in: -------------------------------------------------------------------------------- 1 | include("${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake") 2 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/benchmark/cmake/benchmark.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=${prefix} 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: Google microbenchmark framework 8 | Version: @VERSION@ 9 | 10 | Libs: -L${libdir} -lbenchmark 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/benchmark/cmake/gnu_posix_regex.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | int main() { 4 | std::string str = "test0159"; 5 | regex_t re; 6 | int ec = regcomp(&re, "^[a-z]+[0-9]+$", REG_EXTENDED | REG_NOSUB); 7 | if (ec != 0) { 8 | return ec; 9 | } 10 | return regexec(&re, str.c_str(), 0, nullptr, 0) ? -1 : 0; 11 | } 12 | 13 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/benchmark/cmake/llvm-toolchain.cmake: -------------------------------------------------------------------------------- 1 | find_package(LLVMAr REQUIRED) 2 | set(CMAKE_AR "${LLVMAR_EXECUTABLE}" CACHE FILEPATH "" FORCE) 3 | 4 | find_package(LLVMNm REQUIRED) 5 | set(CMAKE_NM "${LLVMNM_EXECUTABLE}" CACHE FILEPATH "" FORCE) 6 | 7 | find_package(LLVMRanLib REQUIRED) 8 | set(CMAKE_RANLIB "${LLVMRANLIB_EXECUTABLE}" CACHE FILEPATH "" FORCE) 9 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/benchmark/cmake/posix_regex.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | int main() { 4 | std::string str = "test0159"; 5 | regex_t re; 6 | int ec = regcomp(&re, "^[a-z]+[0-9]+$", REG_EXTENDED | REG_NOSUB); 7 | if (ec != 0) { 8 | return ec; 9 | } 10 | int ret = regexec(&re, str.c_str(), 0, nullptr, 0) ? -1 : 0; 11 | regfree(&re); 12 | return ret; 13 | } 14 | 15 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/benchmark/cmake/split_list.cmake: -------------------------------------------------------------------------------- 1 | macro(split_list listname) 2 | string(REPLACE ";" " " ${listname} "${${listname}}") 3 | endmacro() 4 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/benchmark/cmake/std_regex.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | int main() { 4 | const std::string str = "test0159"; 5 | std::regex re; 6 | re = std::regex("^[a-z]+[0-9]+$", 7 | std::regex_constants::extended | std::regex_constants::nosubs); 8 | return std::regex_search(str, re) ? 0 : -1; 9 | } 10 | 11 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/benchmark/cmake/steady_clock.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | typedef std::chrono::steady_clock Clock; 5 | Clock::time_point tp = Clock::now(); 6 | ((void)tp); 7 | } 8 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/benchmark/cmake/thread_safety_attributes.cpp: -------------------------------------------------------------------------------- 1 | #define HAVE_THREAD_SAFETY_ATTRIBUTES 2 | #include "../src/mutex.h" 3 | 4 | int main() {} 5 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/benchmark/src/sleep.h: -------------------------------------------------------------------------------- 1 | #ifndef BENCHMARK_SLEEP_H_ 2 | #define BENCHMARK_SLEEP_H_ 3 | 4 | namespace benchmark { 5 | const int kNumMillisPerSecond = 1000; 6 | const int kNumMicrosPerMilli = 1000; 7 | const int kNumMicrosPerSecond = kNumMillisPerSecond * 1000; 8 | const int kNumNanosPerMicro = 1000; 9 | const int kNumNanosPerSecond = kNumNanosPerMicro * kNumMicrosPerSecond; 10 | 11 | void SleepForMilliseconds(int milliseconds); 12 | void SleepForSeconds(double seconds); 13 | } // end namespace benchmark 14 | 15 | #endif // BENCHMARK_SLEEP_H_ 16 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/benchmark/test/link_main_test.cc: -------------------------------------------------------------------------------- 1 | #include "benchmark/benchmark.h" 2 | 3 | void BM_empty(benchmark::State& state) { 4 | for (auto _ : state) { 5 | benchmark::DoNotOptimize(state.iterations()); 6 | } 7 | } 8 | BENCHMARK(BM_empty); 9 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/benchmark/tools/gbench/__init__.py: -------------------------------------------------------------------------------- 1 | """Google Benchmark tooling""" 2 | 3 | __author__ = 'Eric Fiselier' 4 | __email__ = 'eric@efcs.ca' 5 | __versioninfo__ = (0, 5, 0) 6 | __version__ = '.'.join(str(v) for v in __versioninfo__) + 'dev' 7 | 8 | __all__ = [] 9 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/.clang-tidy: -------------------------------------------------------------------------------- 1 | FormatStyle: file 2 | 3 | Checks: ' 4 | llvm-namespace-comment, 5 | modernize-use-override, 6 | readability-container-size-empty, 7 | modernize-use-using, 8 | modernize-use-equals-default, 9 | modernize-use-auto, 10 | modernize-use-emplace, 11 | ' 12 | 13 | HeaderFilterRegex: 'pybind11/.*h' 14 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: Gitter room 4 | url: https://gitter.im/pybind/Lobby 5 | about: A room for discussing pybind11 with an active community 6 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | # Maintain dependencies for GitHub Actions 4 | - package-ecosystem: "github-actions" 5 | directory: "/" 6 | schedule: 7 | interval: "daily" 8 | ignore: 9 | # Offical actions have moving tags like v1 10 | # that are used, so they don't need updates here 11 | - dependency-name: "actions/*" 12 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/.github/labeler.yml: -------------------------------------------------------------------------------- 1 | docs: 2 | - any: 3 | - 'docs/**/*.rst' 4 | - '!docs/changelog.rst' 5 | - '!docs/upgrade.rst' 6 | 7 | ci: 8 | - '.github/workflows/*.yml' 9 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/.github/labeler_merged.yml: -------------------------------------------------------------------------------- 1 | needs changelog: 2 | - all: 3 | - '!docs/changelog.rst' 4 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | ## Description 2 | 3 | 4 | 5 | 6 | ## Suggested changelog entry: 7 | 8 | 9 | 10 | ```rst 11 | 12 | ``` 13 | 14 | 15 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/.readthedocs.yml: -------------------------------------------------------------------------------- 1 | python: 2 | version: 3 3 | requirements_file: docs/requirements.txt 4 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/MANIFEST.in: -------------------------------------------------------------------------------- 1 | recursive-include pybind11/include/pybind11 *.h 2 | recursive-include pybind11 *.py 3 | recursive-include pybind11 py.typed 4 | recursive-include pybind11 *.pyi 5 | include pybind11/share/cmake/pybind11/*.cmake 6 | include LICENSE README.rst pyproject.toml setup.py setup.cfg 7 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/docs/_static/theme_overrides.css: -------------------------------------------------------------------------------- 1 | .wy-table-responsive table td, 2 | .wy-table-responsive table th { 3 | white-space: initial !important; 4 | } 5 | .rst-content table.docutils td { 6 | vertical-align: top !important; 7 | } 8 | div[class^='highlight'] pre { 9 | white-space: pre; 10 | white-space: pre-wrap; 11 | } 12 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/docs/advanced/pycpp/index.rst: -------------------------------------------------------------------------------- 1 | Python C++ interface 2 | #################### 3 | 4 | pybind11 exposes Python types and functions using thin C++ wrappers, which 5 | makes it possible to conveniently call Python code from C++ without resorting 6 | to Python's C API. 7 | 8 | .. toctree:: 9 | :maxdepth: 2 10 | 11 | object 12 | numpy 13 | utilities 14 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/docs/cmake/index.rst: -------------------------------------------------------------------------------- 1 | CMake helpers 2 | ------------- 3 | 4 | Pybind11 can be used with ``add_subdirectory(extern/pybind11)``, or from an 5 | install with ``find_package(pybind11 CONFIG)``. The interface provided in 6 | either case is functionally identical. 7 | 8 | .. cmake-module:: ../../tools/pybind11Config.cmake.in 9 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/docs/pybind11-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/nn-addon/third-party/onnx/third_party/pybind11/docs/pybind11-logo.png -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/docs/pybind11_vs_boost_python1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/nn-addon/third-party/onnx/third_party/pybind11/docs/pybind11_vs_boost_python1.png -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/docs/pybind11_vs_boost_python2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/nn-addon/third-party/onnx/third_party/pybind11/docs/pybind11_vs_boost_python2.png -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/docs/requirements.txt: -------------------------------------------------------------------------------- 1 | breathe==4.20.0 2 | commonmark==0.9.1 3 | recommonmark==0.6.0 4 | sphinx==3.2.1 5 | sphinx_rtd_theme==0.5.0 6 | sphinxcontrib-moderncmakedomain==3.13 7 | sphinxcontrib-svg2pdfconverter==1.1.0 8 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/include/pybind11/common.h: -------------------------------------------------------------------------------- 1 | #include "detail/common.h" 2 | #warning "Including 'common.h' is deprecated. It will be removed in v3.0. Use 'pybind11.h'." 3 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/pybind11/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | from ._version import version_info, __version__ 4 | from .commands import get_include, get_cmake_dir 5 | 6 | 7 | __all__ = ( 8 | "version_info", 9 | "__version__", 10 | "get_include", 11 | "get_cmake_dir", 12 | ) 13 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/pybind11/_version.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | 4 | def _to_int(s): 5 | try: 6 | return int(s) 7 | except ValueError: 8 | return s 9 | 10 | 11 | __version__ = "2.6.0" 12 | version_info = tuple(_to_int(s) for s in __version__.split(".")) 13 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/pybind11/_version.pyi: -------------------------------------------------------------------------------- 1 | from typing import Union, Tuple 2 | 3 | def _to_int(s: str) -> Union[int, str]: ... 4 | 5 | __version__: str 6 | version_info: Tuple[Union[int, str], ...] 7 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/pybind11/py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/nn-addon/third-party/onnx/third_party/pybind11/pybind11/py.typed -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/pyproject.toml: -------------------------------------------------------------------------------- 1 | [build-system] 2 | requires = ["setuptools>=42", "wheel", "cmake>=3.18", "ninja"] 3 | build-backend = "setuptools.build_meta" 4 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/tests/env.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | import platform 3 | import sys 4 | 5 | LINUX = sys.platform.startswith("linux") 6 | MACOS = sys.platform.startswith("darwin") 7 | WIN = sys.platform.startswith("win32") or sys.platform.startswith("cygwin") 8 | 9 | CPYTHON = platform.python_implementation() == "CPython" 10 | PYPY = platform.python_implementation() == "PyPy" 11 | 12 | PY2 = sys.version_info.major == 2 13 | 14 | PY = sys.version_info 15 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/tests/extra_python_package/pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/nn-addon/third-party/onnx/third_party/pybind11/tests/extra_python_package/pytest.ini -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/tests/extra_setuptools/pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/nn-addon/third-party/onnx/third_party/pybind11/tests/extra_setuptools/pytest.ini -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/tests/test_cmake_build/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | namespace py = pybind11; 3 | 4 | PYBIND11_MODULE(test_cmake_build, m) { 5 | m.def("add", [](int i, int j) { return i + j; }); 6 | } 7 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/tests/test_cmake_build/test.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | import sys 3 | import test_cmake_build 4 | 5 | assert test_cmake_build.add(1, 2) == 3 6 | print("{} imports, runs, and adds: 1 + 2 = 3".format(sys.argv[1])) 7 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/tests/test_embed/test_interpreter.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from widget_module import Widget 3 | 4 | 5 | class DerivedWidget(Widget): 6 | def __init__(self, message): 7 | super(DerivedWidget, self).__init__(message) 8 | 9 | def the_answer(self): 10 | return 42 11 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/tests/test_eval_call.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # This file is called from 'test_eval.py' 3 | 4 | if "call_test2" in locals(): 5 | call_test2(y) # noqa: F821 undefined name 6 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/tests/test_union.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from pybind11_tests import union_ as m 3 | 4 | 5 | def test_union(): 6 | instance = m.TestUnion() 7 | 8 | instance.as_uint = 10 9 | assert instance.as_int == 10 10 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/third_party/pybind11/tools/pyproject.toml: -------------------------------------------------------------------------------- 1 | [build-system] 2 | requires = ["setuptools>=42", "wheel"] 3 | build-backend = "setuptools.build_meta" 4 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/tools/__init__.pyi: -------------------------------------------------------------------------------- 1 | # This file needs to be here to enable mypy type checking for this folder. 2 | # It doesn't make this a python module for installation purposes as a __init__.py would. 3 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/tools/protoc-gen-mypy.bat: -------------------------------------------------------------------------------- 1 | :: SPDX-License-Identifier: Apache-2.0 2 | 3 | @echo off 4 | python -u %~dp0\protoc-gen-mypy.py 5 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/tools/protoc-gen-mypy.sh.in: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" 3 | # use PYTHON_EXECUTABLE from CMake to get the right python to execute 4 | @PYTHON_EXECUTABLE@ -u "$DIR"/protoc-gen-mypy.py 5 | -------------------------------------------------------------------------------- /nn-addon/third-party/onnx/tools/update_doc.bat: -------------------------------------------------------------------------------- 1 | :: SPDX-License-Identifier: Apache-2.0 2 | 3 | :: Run this script from ONNX root directory under Anaconda. 4 | set CMAKE_ARGS="-DONNX_USE_PROTOBUF_SHARED_LIBS=ON" 5 | set ONNX_ML=1 6 | 7 | python onnx\gen_proto.py -l 8 | 9 | python onnx\gen_proto.py -l --ml 10 | 11 | python setup.py develop 12 | 13 | python onnx\backend\test\cmd_tools.py generate-data 14 | 15 | python onnx\backend\test\stat_coverage.py 16 | 17 | python onnx\defs\gen_doc.py 18 | set ONNX_ML=0 19 | python onnx\defs\gen_doc.py 20 | set ONNX_ML=1 21 | -------------------------------------------------------------------------------- /nn-addon/util/doc/README.md: -------------------------------------------------------------------------------- 1 | # design documents 2 | 3 | ## TODO -------------------------------------------------------------------------------- /nn-addon/util/example/eg_nnutil_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /nn-addon/util/src/util.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int Util_test() { return 0; } -------------------------------------------------------------------------------- /nn-addon/util/test/test_nnutil_01.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | // TODO: replace later 10 | int main() { return 0; } -------------------------------------------------------------------------------- /nn-addon/util/unittest/test_nnutil.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /nn-addon/util/unittest/ut_util.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | namespace { 12 | 13 | // TODO: replace later 14 | TEST(UTIL, MESSAGE) { EXPECT_EQ(0, 0); } 15 | 16 | } // namespace -------------------------------------------------------------------------------- /nn-addon/vector/unittest/test_nnvector.cxx: -------------------------------------------------------------------------------- 1 | //-*-c++-*- 2 | //============================================================================= 3 | // 4 | // Copyright (c) Ant Group Co., Ltd 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 | // 7 | //============================================================================= 8 | 9 | #include "gtest/gtest.h" 10 | 11 | /** 12 | Main entry point for Google Test unit tests. 13 | */ 14 | int main(int argc, char** argv) { 15 | testing::InitGoogleTest(&argc, argv); 16 | return RUN_ALL_TESTS(); 17 | } -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | PyYAML==5.3.1 2 | torch==2.0.1 3 | onnx==1.14.1 4 | onnxruntime==1.15.1 5 | matplotlib==3.7.5 6 | numpy==1.24.4 -------------------------------------------------------------------------------- /scripts/Figure5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/scripts/Figure5.png -------------------------------------------------------------------------------- /scripts/Figure6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/scripts/Figure6.png -------------------------------------------------------------------------------- /scripts/Figure7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/scripts/Figure7.png -------------------------------------------------------------------------------- /scripts/Table10-10-ImagesOnly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/scripts/Table10-10-ImagesOnly.png -------------------------------------------------------------------------------- /scripts/Table10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/scripts/Table10.png -------------------------------------------------------------------------------- /scripts/Table9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/scripts/Table9.png -------------------------------------------------------------------------------- /scripts/ace-arch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/scripts/ace-arch.png -------------------------------------------------------------------------------- /scripts/ace-ml-integ.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/scripts/ace-ml-integ.png -------------------------------------------------------------------------------- /scripts/ace-ppml.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ant-research/ace-compiler/a35f3a40dee8ca4f90c86f369adfe5b988d73910/scripts/ace-ppml.png -------------------------------------------------------------------------------- /scripts/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # executing python script for install 4 | python3 /app/scripts/install.py 5 | 6 | # bash 7 | exec /bin/bash 8 | --------------------------------------------------------------------------------