projects
/
jpf-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd1e8a6
)
Fixing a few bugs. Still need to check for the backtrack analysis.
author
rtrimana
<rtrimana@uci.edu>
Wed, 16 Oct 2019 18:52:22 +0000
(11:52 -0700)
committer
rtrimana
<rtrimana@uci.edu>
Wed, 16 Oct 2019 18:52:22 +0000
(11:52 -0700)
src/main/gov/nasa/jpf/listener/StateReducer.java
patch
|
blob
|
history
diff --git
a/src/main/gov/nasa/jpf/listener/StateReducer.java
b/src/main/gov/nasa/jpf/listener/StateReducer.java
index 82e8cf87560a5d211b05d024b07050697d75fa0f..e594c28204e4807cdf83d56dd008aa753e06c49e 100644
(file)
--- a/
src/main/gov/nasa/jpf/listener/StateReducer.java
+++ b/
src/main/gov/nasa/jpf/listener/StateReducer.java
@@
-162,7
+162,7
@@
public class StateReducer extends ListenerAdapter {
for(IntChoiceFromSet cg : cgMap.keySet()) {
int event = cgMap.get(cg);
LinkedList<Integer[]> choiceLists = backtrackMap.get(event);
- if (choiceLists.peekFirst() != null) {
+ if (choiceLists
!= null && choiceLists
.peekFirst() != null) {
Integer[] choiceList = choiceLists.removeFirst();
// Deploy the new choice list for this CG
cg.setNewValues(choiceList);