User Tools

Site Tools


lab4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
lab4 [2017/01/27 21:46] francklab4 [2017/01/27 21:55] franck
Line 180: Line 180:
  
 One can constrain JPF from checking more than 100 bytecode instructions as follows. One can constrain JPF from checking more than 100 bytecode instructions as follows.
-We can assign any int value to the property budget.max_insn.+We can assign any long value to the property budget.max_insn.
  
 <code> <code>
Line 205: Line 205:
 ... ...
 </code> </code>
 +
 +We can also limit the number of states that JPF explores by setting the property budget.max_state.  We can assign any int value to this property. 
  
 <code> <code>
Line 214: Line 216:
 </code> </code>
  
 +Since the statespace of this app consists of more than 100 states, JPF stops and produces the following output.
  
- +<code>
-</code>+
 JavaPathfinder core system v8.0 (rev 29) - (C) 2005-2014 United States Government. All rights reserved. JavaPathfinder core system v8.0 (rev 29) - (C) 2005-2014 United States Government. All rights reserved.
  
Line 229: Line 231:
 ... ...
 </code> </code>
 +
 +We can also constrain the depth of the search.  The corresponding property, budget.max_depth, can take any int value.
  
 <code> <code>
Line 237: Line 241:
 budget.max_depth=100 budget.max_depth=100
 </code> </code>
 +
 +Since the depth of the search is greater than 100 for this app, JPF stops and produces the following output.
  
 <code> <code>
lab4.txt · Last modified: 2017/01/30 13:56 by franck