@@ -971,13 +971,30 @@ void KTestObjectParser::processSymbolicStdin(Tests::TestCaseDescription &testCas
971971
972972void KTestObjectParser::processSymbolicFiles (Tests::TestCaseDescription &testCaseDescription,
973973 const std::vector<RawKleeParam> &rawKleeParams) {
974- std::vector<Tests::TestCaseParamValue> filesValues (types::Type::symFilesCount);
975- for (char fileName = ' A' ; fileName < ' A' + types::Type::symFilesCount; fileName++) {
974+ std::vector<Tests::FileInfo> filesValues (types::Type::symFilesCount);
975+ int fileIndex = 0 ;
976+ for (char fileName = ' A' ; fileName < ' A' + types::Type::symFilesCount; fileName++, fileIndex++) {
977+ std::string readBytesName = PrinterUtils::getFileReadBytesParamKTestJSON (fileName);
978+ auto &&readBytes = getKleeParamOrThrow (rawKleeParams, readBytesName);
979+ filesValues[fileIndex].readBytes = std::stoi (
980+ testParameterView (readBytes, { types::Type::longlongType (), readBytesName },
981+ types::PointerUsage::PARAMETER, testCaseDescription.lazyAddressToName ,
982+ testCaseDescription.lazyReferences )
983+ ->getEntryValue (nullptr ));
984+
985+ std::string writeBytesName = PrinterUtils::getFileWriteBytesParamKTestJSON (fileName);
986+ auto &&writeBytes = getKleeParamOrThrow (rawKleeParams, writeBytesName);
987+ filesValues[fileIndex].writeBytes = std::stoi (
988+ testParameterView (writeBytes, { types::Type::longlongType (), writeBytesName },
989+ types::PointerUsage::PARAMETER, testCaseDescription.lazyAddressToName ,
990+ testCaseDescription.lazyReferences )
991+ ->getEntryValue (nullptr ));
992+
976993 auto &&fileBuffer =
977994 getKleeParamOrThrow (rawKleeParams, PrinterUtils::getFileParamKTestJSON (fileName));
978- auto &&testParamView = stringLiteralView (fileBuffer. rawData , types::Type::symInputSize);
979- filesValues[fileName - ' A ' ] = Tests::TestCaseParamValue (
980- types::Type::getFileParamName (fileName), std:: nullopt , testParamView );
995+ filesValues[fileIndex]. data =
996+ stringLiteralView (fileBuffer. rawData , filesValues[fileIndex]. readBytes )
997+ -> getEntryValue ( nullptr );
981998 }
982999 testCaseDescription.filesValues = filesValues;
9831000}
0 commit comments