klee
KInstruction.cpp
Go to the documentation of this file.
1
//===-- KInstruction.cpp --------------------------------------------------===//
2
//
3
// The KLEE Symbolic Virtual Machine
4
//
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
7
//
8
//===----------------------------------------------------------------------===//
9
10
#include "
klee/Module/KInstruction.h
"
11
#include <string>
12
13
using namespace
llvm
;
14
using namespace
klee
;
15
16
/***/
17
18
KInstruction::~KInstruction() {
19
delete
[]
operands
;
20
}
21
22
std::string
KInstruction::getSourceLocation
()
const
{
23
if
(!
info
->
file
.empty())
24
return
info
->
file
+
":"
+ std::to_string(
info
->
line
) +
" "
+
25
std::to_string(
info
->
column
);
26
else
return
"[no debug info]"
;
27
}
KInstruction.h
klee
Definition:
main.cpp:291
llvm
Definition:
CallPathManager.h:19
klee::InstructionInfo::column
unsigned column
Column number in source file.
Definition:
InstructionInfoTable.h:33
klee::InstructionInfo::file
const std::string & file
Source file name.
Definition:
InstructionInfoTable.h:37
klee::InstructionInfo::line
unsigned line
Line number in source file.
Definition:
InstructionInfoTable.h:31
klee::KInstruction::info
const InstructionInfo * info
Definition:
KInstruction.h:35
klee::KInstruction::getSourceLocation
std::string getSourceLocation() const
Definition:
KInstruction.cpp:22
klee::KInstruction::operands
int * operands
Definition:
KInstruction.h:41
lib
Module
KInstruction.cpp
Generated by
1.9.3