/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
GeneratorInterface/ReggeGribovPartonMCInterface/src/read.cc
42 строки
940 B
Ivan Razumov
[LLVM Analyzer][GEN] Remove dead code
04 окт 2024, 15:48
04 окт 2024, 15:48
49d4b30
Код
Авторство
О чём код?
#include "LzmaFile.h" #include <cstdio> #include <cstdlib> #include <cstring> int main(int numArgs, const char *args[]) { // int res; if (numArgs != 2) { //PrintHelp(rs); return 0; } { size_t t4 = sizeof(UInt32); size_t t8 = sizeof(UInt64); if (t4 != 4 || t8 != 8) { //return PrintError(rs, "Incorrect UInt32 or UInt64"); } } LzmaFile lzma; /*res =*/lzma.Open(args[1]); /*res =*/lzma.DecodeAll(); /*res =*/lzma.Close(); /* if (res != SZ_OK) { if (res == SZ_ERROR_MEM) { return 0; //PrintError(rs, kCantAllocateMessage); } else if (res == SZ_ERROR_DATA) { return 0; //PrintError(rs, kDataErrorMessage); } else if (res == SZ_ERROR_WRITE) { return 0; //PrintError(rs, kCantWriteMessage); } else if (res == SZ_ERROR_READ) { return 0; //PrintError(rs, kCantReadMessage); } return 0; //PrintErrorNumber(rs, res); } */ return 0; }