diff --git a/src/test-suite/CMakeLists.txt b/src/test-suite/CMakeLists.txt index 335ac7f1..c1e5d114 100644 --- a/src/test-suite/CMakeLists.txt +++ b/src/test-suite/CMakeLists.txt @@ -1,7 +1,7 @@ option(ENABLE_SQLITE "Enables SQLite Amalgamation Benchmark." ON) set(SQLITE_LLVM_IR - ${CMAKE_CURRENT_SOURCE_DIR}/PE-benchmarks-llfiles-llvm17/sqlite3.ll + ${CMAKE_CURRENT_SOURCE_DIR}/sqlite3.ll ) # SQLite IR file is added along side other PE-benchmarks for this version @@ -69,6 +69,7 @@ endif() # sanity checks and lit configs configure_file(sanity_check.sh.cmake sanity_check.sh @ONLY) file(COPY PE-benchmarks-llfiles-llvm17 DESTINATION ./) +file(COPY sqlite3.ll DESTINATION ./) file(COPY oracle DESTINATION ./) file(COPY ../../vocabulary DESTINATION ./) file(COPY index-llvm17.files DESTINATION ./) diff --git a/src/test-suite/generateOracle.sh b/src/test-suite/generateOracle.sh index 61feedc0..53facd09 100644 --- a/src/test-suite/generateOracle.sh +++ b/src/test-suite/generateOracle.sh @@ -4,7 +4,7 @@ # SEED_VERSION="llvm17" -# SRC_WD="PE-benchmarks-llfiles-llvm17 +SQLITE_INPUT=./sqlite3.ll DEST_FOLDER_SYM_P="oracle/SYM_${SEED_VERSION}_p" DEST_FOLDER_FA_P="oracle/FA_${SEED_VERSION}_p" @@ -52,6 +52,10 @@ while IFS= read -r d; do done /dev/null +${IR2VEC_PATH} -fa -level p -o ${DEST_FOLDER_FA_P}/sqlite3.txt ${SQLITE_INPUT} &>/dev/null + echo "generating F level files" while IFS= read -r d; do ${IR2VEC_PATH} -sym -level f -o ${DEST_FOLDER_SYM}/ir2vec.txt ${d} &>/dev/null