/*
* Copyright (C) 2016 Daniel Dietsch (dietsch@informatik.uni-freiburg.de)
* Copyright (C) 2016 University of Freiburg
*
* This file is part of the ULTIMATE JUnit Helper Library.
*
* The ULTIMATE JUnit Helper Library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* The ULTIMATE JUnit Helper Library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with the ULTIMATE JUnit Helper Library. If not, see .
*
* Additional permission under GNU GPL version 3 section 7:
* If you modify the ULTIMATE JUnit Helper Library, or any covered work, by linking
* or combining it with Eclipse RCP (or a modified version of Eclipse RCP),
* containing parts covered by the terms of the Eclipse Public License, the
* licensors of the ULTIMATE JUnit Helper Library grant you additional permission
* to convey the resulting work.
*/
package de.uni_freiburg.informatik.ultimate.test.mocks;
import java.util.Collections;
import java.util.List;
import de.uni_freiburg.informatik.ultimate.core.model.models.ProcedureContract;
import de.uni_freiburg.informatik.ultimate.core.model.services.IBacktranslationService;
import de.uni_freiburg.informatik.ultimate.core.model.translation.IBacktranslatedCFG;
import de.uni_freiburg.informatik.ultimate.core.model.translation.IProgramExecution;
import de.uni_freiburg.informatik.ultimate.core.model.translation.IProgramExecution.ProgramState;
import de.uni_freiburg.informatik.ultimate.core.model.translation.ITranslator;
/**
*
* @author Daniel Dietsch (dietsch@informatik.uni-freiburg.de)
*
*/
final class BacktranslationServiceMock implements IBacktranslationService {
@Override
public void
addTranslator(final ITranslator translator) {
// does nothing
}
@Override
public TE translateExpression(final SE expression, final Class sourceExpressionClass) {
return null;
}
@Override
public String translateExpressionToString(final SE expression, final Class clazz) {
return "";
}
@Override
public TE translateExpressionWithContext(final SE expression, final CTX context,
final Class clazz) {
return translateExpression(expression, clazz);
}
@Override
public String translateExpressionWithContextToString(final SE expression, final CTX context,
final Class clazz) {
return translateExpressionToString(expression, clazz);
}
@Override
public List> translateTrace(final List trace, final Class clazz) {
return Collections.emptyList();
}
@Override
public List translateTraceToHumanReadableString(final List trace, final Class clazz) {
return Collections.emptyList();
}
@Override
public IProgramExecution, ?>
translateProgramExecution(final IProgramExecution programExecution) {
return new ProgramExecutionMock<>(null, null);
}
@Override
public Lasso>
translateLassoProgramExecution(final Lasso> lasso) {
return new IBacktranslationService.Lasso<>(translateProgramExecution(lasso.getStem()),
translateProgramExecution(lasso.getLoop()));
}
@Override
public ProgramState> translateProgramState(final ProgramState programState) {
return null;
}
@Override
public String translateProgramStateToString(final ProgramState programState) {
return null;
}
@Override
public IBacktranslatedCFG, ?> translateCFG(final IBacktranslatedCFG, STE> cfg) {
return null;
}
@Override
public ProcedureContract translateProcedureContract(
final ProcedureContract contract, final CTX context, final Class clazz) {
return null;
}
@Override
public IBacktranslationService getTranslationServiceCopy() {
return this;
}
}