blob: 07ff70ace27465c28211c3a8e09c3498bb685e5b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
//===-- KInstruction.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/Module/KInstruction.h"
#include <string>
using namespace llvm;
using namespace klee;
/***/
KInstruction::~KInstruction() {
delete[] operands;
}
std::string KInstruction::getSourceLocation() const {
if (!info->file.empty())
return info->file + ":" + std::to_string(info->line) + " " +
std::to_string(info->column);
else return "[no debug info]";
}
|