From 7640a09981b6376da2ec75be7caf76661ef15f28 Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Wed, 31 Jul 2019 20:31:21 +0100 Subject: Renamed misspelled file --- lib/Expr/Assigment.cpp | 44 -------------------------------------------- lib/Expr/Assignment.cpp | 44 ++++++++++++++++++++++++++++++++++++++++++++ lib/Expr/CMakeLists.txt | 2 +- 3 files changed, 45 insertions(+), 45 deletions(-) delete mode 100644 lib/Expr/Assigment.cpp create mode 100644 lib/Expr/Assignment.cpp (limited to 'lib/Expr') diff --git a/lib/Expr/Assigment.cpp b/lib/Expr/Assigment.cpp deleted file mode 100644 index 2fc569cc..00000000 --- a/lib/Expr/Assigment.cpp +++ /dev/null @@ -1,44 +0,0 @@ -//===-- Assignment.cpp ----------------------------------------------------===// -// -// The KLEE Symbolic Virtual Machine -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#include "klee/Expr/Assignment.h" - -namespace klee { - -void Assignment::dump() { - if (bindings.size() == 0) { - llvm::errs() << "No bindings\n"; - return; - } - for (bindings_ty::iterator i = bindings.begin(), e = bindings.end(); i != e; - ++i) { - llvm::errs() << (*i).first->name << "\n["; - for (int j = 0, k = (*i).second.size(); j < k; ++j) - llvm::errs() << (int)(*i).second[j] << ","; - llvm::errs() << "]\n"; - } -} - -void Assignment::createConstraintsFromAssignment( - std::vector > &out) const { - assert(out.size() == 0 && "out should be empty"); - for (bindings_ty::const_iterator it = bindings.begin(), ie = bindings.end(); - it != ie; ++it) { - const Array *array = it->first; - const std::vector &values = it->second; - for (unsigned arrayIndex = 0; arrayIndex < array->size; ++arrayIndex) { - unsigned char value = values[arrayIndex]; - out.push_back(EqExpr::create( - ReadExpr::create(UpdateList(array, 0), - ConstantExpr::alloc(arrayIndex, array->getDomain())), - ConstantExpr::alloc(value, array->getRange()))); - } - } -} -} diff --git a/lib/Expr/Assignment.cpp b/lib/Expr/Assignment.cpp new file mode 100644 index 00000000..2fc569cc --- /dev/null +++ b/lib/Expr/Assignment.cpp @@ -0,0 +1,44 @@ +//===-- Assignment.cpp ----------------------------------------------------===// +// +// The KLEE Symbolic Virtual Machine +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "klee/Expr/Assignment.h" + +namespace klee { + +void Assignment::dump() { + if (bindings.size() == 0) { + llvm::errs() << "No bindings\n"; + return; + } + for (bindings_ty::iterator i = bindings.begin(), e = bindings.end(); i != e; + ++i) { + llvm::errs() << (*i).first->name << "\n["; + for (int j = 0, k = (*i).second.size(); j < k; ++j) + llvm::errs() << (int)(*i).second[j] << ","; + llvm::errs() << "]\n"; + } +} + +void Assignment::createConstraintsFromAssignment( + std::vector > &out) const { + assert(out.size() == 0 && "out should be empty"); + for (bindings_ty::const_iterator it = bindings.begin(), ie = bindings.end(); + it != ie; ++it) { + const Array *array = it->first; + const std::vector &values = it->second; + for (unsigned arrayIndex = 0; arrayIndex < array->size; ++arrayIndex) { + unsigned char value = values[arrayIndex]; + out.push_back(EqExpr::create( + ReadExpr::create(UpdateList(array, 0), + ConstantExpr::alloc(arrayIndex, array->getDomain())), + ConstantExpr::alloc(value, array->getRange()))); + } + } +} +} diff --git a/lib/Expr/CMakeLists.txt b/lib/Expr/CMakeLists.txt index 74407295..f469a1de 100644 --- a/lib/Expr/CMakeLists.txt +++ b/lib/Expr/CMakeLists.txt @@ -11,7 +11,7 @@ klee_add_component(kleaverExpr ArrayExprOptimizer.cpp ArrayExprRewriter.cpp ArrayExprVisitor.cpp - Assigment.cpp + Assignment.cpp AssignmentGenerator.cpp Constraints.cpp ExprBuilder.cpp -- cgit 1.4.1