2. 2
int readFile(String
filePath){
fp =
readFile(filePath)
if fp == NULL
return -1
else
return fp
}
int
manageMemory(int
index){
if mem[index] is
not NULL{
freeInd =
findFreeMemoryLoc()
goto(freeInd)
}
} More Risky
Concern
Can we use
concerns to
study
defects?
3. Capturing Concerns Using Topic
Models
manage
memory
index mem
free ind
find free
memory loc
read file
file path
fp file
path fp
Topics Models
(LDA)
Topic 1
Topic 2
read, file, path,
fp, file, index,
ind
3
manage,
memory, mem,
free, find, loc