Permalink
Browse files

first commit

  • Loading branch information...
philmcminn committed Nov 11, 2016
0 parents commit bf69e2d1324acb35be2055ea7dadb8b5f83588a5
Showing with 24,771 additions and 0 deletions.
  1. +4 −0 .gitignore
  2. +21 −0 LICENCE
  3. +1 −0 ccompilers/linux-default
  4. +3 −0 ccompilers/mac-default
  5. +1 −0 ccompilers/windows-default
  6. +9 −0 cparser/ASTExpressionStatement.java
  7. +8 −0 cparser/ASTFunctionDefinition.java
  8. +3 −0 cparser/ASTGotoStatement.java
  9. +3 −0 cparser/ASTIdentifierStatement.java
  10. +13 −0 cparser/ASTIfStatement.java
  11. +10 −0 cparser/ASTParseUnit.java
  12. +10 −0 cparser/ASTRelationalExpression.java
  13. +622 −0 cparser/C.jjt
  14. +358 −0 cparser/ContentExtractor.java
  15. +316 −0 cparser/RecursiveVisitorAdapter.java
  16. +55 −0 cparser/SimpleNode.java
  17. +238 −0 cparser/VisitorAdapter.java
  18. +21 −0 iguana.config
  19. +180 −0 include/CTestObjectHandle.c
  20. +37 −0 include/CTestObjectHandle.h
  21. +15 −0 include/CTestObjectImpl.h
  22. +91 −0 pom.xml
  23. +95 −0 src/main/java/org/iguanatool/Assimilate.java
  24. +227 −0 src/main/java/org/iguanatool/Config.java
  25. +71 −0 src/main/java/org/iguanatool/Run.java
  26. +36 −0 src/main/java/org/iguanatool/inputgeneration/aim/Aim.java
  27. +14 −0 src/main/java/org/iguanatool/inputgeneration/aim/AimException.java
  28. +62 −0 src/main/java/org/iguanatool/inputgeneration/aim/AimFactory.java
  29. +42 −0 src/main/java/org/iguanatool/inputgeneration/aim/BranchAim.java
  30. +38 −0 src/main/java/org/iguanatool/inputgeneration/aim/BranchCoverageAim.java
  31. +40 −0 src/main/java/org/iguanatool/inputgeneration/aim/log/AimLog.java
  32. +48 −0 src/main/java/org/iguanatool/inputgeneration/inputvector/InputVector.java
  33. +94 −0 src/main/java/org/iguanatool/inputgeneration/inputvector/InputVectorType.java
  34. +60 −0 src/main/java/org/iguanatool/inputgeneration/objectivefunction/ComputeNodeDependency.java
  35. +30 −0 src/main/java/org/iguanatool/inputgeneration/objectivefunction/InputGenerationObjectiveFunction.java
  36. +153 −0 src/main/java/org/iguanatool/inputgeneration/objectivefunction/InputGenerationObjectiveValue.java
  37. +37 −0 ...n/java/org/iguanatool/inputgeneration/objectivefunction/condition/ConditionObjectiveFunction.java
  38. +110 −0 ...ava/org/iguanatool/inputgeneration/objectivefunction/condition/StdConditionObjectiveFunction.java
  39. +21 −0 src/main/java/org/iguanatool/inputgeneration/variableinclusion/IncludeAllVariables.java
  40. +55 −0 src/main/java/org/iguanatool/inputgeneration/variableinclusion/IncludeVariablesFromFile.java
  41. +14 −0 src/main/java/org/iguanatool/inputgeneration/variableinclusion/VariableIncluder.java
  42. +48 −0 src/main/java/org/iguanatool/library/Array.java
  43. +180 −0 src/main/java/org/iguanatool/library/SimpleIO.java
  44. +40 −0 src/main/java/org/iguanatool/library/StreamGobbler.java
  45. +155 −0 src/main/java/org/iguanatool/library/SystemCommand.java
  46. +12 −0 src/main/java/org/iguanatool/library/SystemCommandException.java
  47. +45 −0 src/main/java/org/iguanatool/library/TextFile.java
  48. +75 −0 src/main/java/org/iguanatool/log/Log.java
  49. +15 −0 src/main/java/org/iguanatool/log/LogException.java
  50. +33 −0 src/main/java/org/iguanatool/search/Search.java
  51. +20 −0 src/main/java/org/iguanatool/search/SearchException.java
  52. +649 −0 src/main/java/org/iguanatool/search/SearchFactory.java
  53. +57 −0 src/main/java/org/iguanatool/search/SearchMonitor.java
  54. +31 −0 src/main/java/org/iguanatool/search/SearchResult.java
  55. +60 −0 src/main/java/org/iguanatool/search/evolve/Evolve.java
  56. +37 −0 src/main/java/org/iguanatool/search/evolve/competition/CompetitionManager.java
  57. +233 −0 src/main/java/org/iguanatool/search/evolve/competition/RankingCompetitionManager.java
  58. +139 −0 src/main/java/org/iguanatool/search/evolve/migration/CompleteNetMigrationManager.java
  59. +17 −0 src/main/java/org/iguanatool/search/evolve/migration/MigrantSelector.java
  60. +35 −0 src/main/java/org/iguanatool/search/evolve/migration/MigrationManager.java
  61. +34 −0 src/main/java/org/iguanatool/search/evolve/migration/RandomMigrantSelector.java
  62. +65 −0 src/main/java/org/iguanatool/search/evolve/mutation/GaussianMutation.java
  63. +40 −0 src/main/java/org/iguanatool/search/evolve/mutation/MuhlenbeinMutation.java
  64. +13 −0 src/main/java/org/iguanatool/search/evolve/mutation/MutationOperator.java
  65. +44 −0 src/main/java/org/iguanatool/search/evolve/mutation/NumericalMutation.java
  66. +38 −0 src/main/java/org/iguanatool/search/evolve/mutation/UniformMutation.java
  67. +180 −0 src/main/java/org/iguanatool/search/evolve/population/BreedingPopulation.java
  68. +145 −0 src/main/java/org/iguanatool/search/evolve/population/CoPopulation.java
  69. +45 −0 src/main/java/org/iguanatool/search/evolve/population/MemeticPopulation.java
  70. +49 −0 src/main/java/org/iguanatool/search/evolve/population/Population.java
  71. +18 −0 src/main/java/org/iguanatool/search/evolve/population/PopulationFitnessComparator.java
  72. +17 −0 src/main/java/org/iguanatool/search/evolve/population/PopulationProgressComparator.java
  73. +51 −0 src/main/java/org/iguanatool/search/evolve/population/SubPopulation.java
  74. +35 −0 src/main/java/org/iguanatool/search/evolve/population/rank/PopulationLinearRanking.java
  75. +16 −0 src/main/java/org/iguanatool/search/evolve/population/rank/PopulationRankingMethod.java
  76. +32 −0 src/main/java/org/iguanatool/search/evolve/rank/LinearRanking.java
  77. +16 −0 src/main/java/org/iguanatool/search/evolve/rank/RankingMethod.java
  78. +51 −0 src/main/java/org/iguanatool/search/evolve/rank/RankingUtil.java
  79. +51 −0 src/main/java/org/iguanatool/search/evolve/recombination/DiscreteRecombination.java
  80. +33 −0 src/main/java/org/iguanatool/search/evolve/recombination/NoRecombination.java
  81. +46 −0 src/main/java/org/iguanatool/search/evolve/recombination/OnePointCrossover.java
  82. +43 −0 src/main/java/org/iguanatool/search/evolve/recombination/RandomRecombination.java
  83. +16 −0 src/main/java/org/iguanatool/search/evolve/recombination/RecombinationOperator.java
  84. +45 −0 src/main/java/org/iguanatool/search/evolve/recombination/UniformCrossover.java
  85. +33 −0 src/main/java/org/iguanatool/search/evolve/reinsertion/ElitestReinsertion.java
  86. +16 −0 src/main/java/org/iguanatool/search/evolve/reinsertion/ReinsertionMethod.java
  87. +31 −0 src/main/java/org/iguanatool/search/evolve/select/ElitestSelection.java
  88. +33 −0 src/main/java/org/iguanatool/search/evolve/select/RandomSelection.java
  89. +17 −0 src/main/java/org/iguanatool/search/evolve/select/SelectionMethod.java
  90. +56 −0 src/main/java/org/iguanatool/search/evolve/select/StochasticUniversalSampling.java
  91. +46 −0 src/main/java/org/iguanatool/search/evolve/select/TournamentSelection.java
  92. +35 −0 src/main/java/org/iguanatool/search/example/AllZeros.java
  93. +36 −0 src/main/java/org/iguanatool/search/example/Example.java
  94. +37 −0 src/main/java/org/iguanatool/search/example/Ordered.java
  95. +34 −0 src/main/java/org/iguanatool/search/example/Quadratic.java
  96. +38 −0 src/main/java/org/iguanatool/search/example/Step.java
  97. +69 −0 src/main/java/org/iguanatool/search/local/Anneal.java
  98. +61 −0 src/main/java/org/iguanatool/search/local/HillClimb.java
  99. +71 −0 src/main/java/org/iguanatool/search/local/SeededHillClimb.java
  100. +12 −0 src/main/java/org/iguanatool/search/local/coolingschedule/CoolingSchedule.java
  101. +16 −0 src/main/java/org/iguanatool/search/local/coolingschedule/FastCoolingSchedule.java
  102. +19 −0 src/main/java/org/iguanatool/search/local/coolingschedule/LinearCoolingSchedule.java
  103. +59 −0 src/main/java/org/iguanatool/search/local/neighbourhoodsearch/CachedNeighbourhoodSearch.java
  104. +94 −0 src/main/java/org/iguanatool/search/local/neighbourhoodsearch/Geometric_No_Bias.java
  105. +94 −0 src/main/java/org/iguanatool/search/local/neighbourhoodsearch/Geometric_Opposite_Direction_Bias.java
  106. +94 −0 src/main/java/org/iguanatool/search/local/neighbourhoodsearch/Geometric_Right_Bias.java
  107. +72 −0 src/main/java/org/iguanatool/search/local/neighbourhoodsearch/IPS_No_Bias.java
  108. +72 −0 src/main/java/org/iguanatool/search/local/neighbourhoodsearch/IPS_Right_Bias.java
  109. +112 −0 src/main/java/org/iguanatool/search/local/neighbourhoodsearch/Lattice_No_Bias.java
  110. +112 −0 src/main/java/org/iguanatool/search/local/neighbourhoodsearch/Lattice_Opposite_Direction_Bias.java
  111. +112 −0 src/main/java/org/iguanatool/search/local/neighbourhoodsearch/Lattice_Right_Bias.java
  112. +132 −0 src/main/java/org/iguanatool/search/local/neighbourhoodsearch/LinearAcceleration.java
  113. +12 −0 src/main/java/org/iguanatool/search/local/neighbourhoodsearch/NeighbourhoodSearch.java
  114. +98 −0 src/main/java/org/iguanatool/search/local/neighbourhoodsearch/PatternAcceleration.java
  115. +30 −0 src/main/java/org/iguanatool/search/local/neighbourhoodsearch/Random.java
  116. +49 −0 src/main/java/org/iguanatool/search/local/neighbourhoodsearch/ReducingRandom.java
  117. +94 −0 src/main/java/org/iguanatool/search/local/neighbourhoodsearch/Slice.java
  118. +20 −0 src/main/java/org/iguanatool/search/local/restarter/MutationRestarter.java
  119. +19 −0 src/main/java/org/iguanatool/search/local/restarter/RandomRestarter.java
  120. +46 −0 src/main/java/org/iguanatool/search/local/restarter/Restarter.java
  121. +50 −0 src/main/java/org/iguanatool/search/objective/NumericalMaximizingObjectiveValue.java
  122. +38 −0 src/main/java/org/iguanatool/search/objective/NumericalMinimizingObjectiveValue.java
  123. +37 −0 src/main/java/org/iguanatool/search/objective/ObjectiveFunction.java
  124. +12 −0 src/main/java/org/iguanatool/search/objective/ObjectiveValue.java
  125. +80 −0 src/main/java/org/iguanatool/search/pso/Particle.java
  126. +38 −0 src/main/java/org/iguanatool/search/pso/ParticleLog.java
  127. +61 −0 src/main/java/org/iguanatool/search/pso/Swarm.java
  128. +35 −0 src/main/java/org/iguanatool/search/random/Random.java
  129. +80 −0 src/main/java/org/iguanatool/search/randomnumbergenerator/MersenneTwister.java
  130. +122 −0 src/main/java/org/iguanatool/search/randomnumbergenerator/NonRandomNumberGenerator.java
  131. +33 −0 src/main/java/org/iguanatool/search/randomnumbergenerator/RandomNumberGenerator.java
  132. +66 −0 src/main/java/org/iguanatool/search/randomnumbergenerator/SimpleRandomNumberGenerator.java
  133. +125 −0 src/main/java/org/iguanatool/search/solution/NumericalSolution.java
  134. +111 −0 src/main/java/org/iguanatool/search/solution/NumericalSolutionType.java
  135. +57 −0 src/main/java/org/iguanatool/search/solution/Solution.java
  136. +29 −0 src/main/java/org/iguanatool/search/solution/SolutionType.java
  137. +198 −0 src/main/java/org/iguanatool/testobject/BuildCParser.java
  138. +72 −0 src/main/java/org/iguanatool/testobject/CCompiler.java
  139. +478 −0 src/main/java/org/iguanatool/testobject/CFGExtractor.java
  140. +225 −0 src/main/java/org/iguanatool/testobject/CaseStudy.java
  141. +129 −0 src/main/java/org/iguanatool/testobject/ControlGraphImageGenerator.java
  142. +108 −0 src/main/java/org/iguanatool/testobject/InputSpecification.java
  143. +221 −0 src/main/java/org/iguanatool/testobject/Instrumenter.java
  144. +187 −0 src/main/java/org/iguanatool/testobject/JNILibrary.java
  145. +189 −0 src/main/java/org/iguanatool/testobject/JavaWrapper.java
  146. +81 −0 src/main/java/org/iguanatool/testobject/TestObject.java
  147. +55 −0 src/main/java/org/iguanatool/testobject/TestObjectFactory.java
  148. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTANDExpression.java
  149. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTAbstractDeclarator.java
  150. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTAdditiveExpression.java
  151. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTArgumentExpressionList.java
  152. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTAssignmentExpression.java
  153. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTAssignmentOperator.java
  154. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTBranchingExpression.java
  155. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTBreakStatement.java
  156. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTCaseExpression.java
  157. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTCaseStatement.java
  158. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTCastExpression.java
  159. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTCompoundStatement.java
  160. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTConditionalExpression.java
  161. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTConstant.java
  162. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTConstantExpression.java
  163. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTContinueStatement.java
  164. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTDeclaration.java
  165. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTDeclarationList.java
  166. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTDeclarationSpecifiers.java
  167. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTDeclarator.java
  168. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTDefaultStatement.java
  169. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTDirectAbstractDeclarator.java
  170. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTDirectDeclarator.java
  171. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTDoStatement.java
  172. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTEnumSpecifier.java
  173. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTEnumerator.java
  174. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTEnumeratorList.java
  175. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTExclusiveORExpression.java
  176. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTExpression.java
  177. +32 −0 src/main/java/org/iguanatool/testobject/cparser/ASTExpressionStatement.java
  178. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTExternalDeclaration.java
  179. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTForStatement.java
  180. +31 −0 src/main/java/org/iguanatool/testobject/cparser/ASTFunctionDefinition.java
  181. +26 −0 src/main/java/org/iguanatool/testobject/cparser/ASTGotoStatement.java
  182. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTIdentifierList.java
  183. +26 −0 src/main/java/org/iguanatool/testobject/cparser/ASTIdentifierStatement.java
  184. +36 −0 src/main/java/org/iguanatool/testobject/cparser/ASTIfStatement.java
  185. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTInclusiveORExpression.java
  186. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTInitDeclarator.java
  187. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTInitDeclaratorList.java
  188. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTInitializer.java
  189. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTInitializerList.java
  190. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTLogicalANDExpression.java
  191. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTLogicalNOTExpression.java
  192. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTLogicalORExpression.java
  193. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTMultiplicativeExpression.java
  194. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTParameterDeclaration.java
  195. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTParameterList.java
  196. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTParameterTypeList.java
  197. +34 −0 src/main/java/org/iguanatool/testobject/cparser/ASTParseUnit.java
  198. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTPointer.java
  199. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTPostfixExpression.java
  200. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTPrimaryExpression.java
  201. +33 −0 src/main/java/org/iguanatool/testobject/cparser/ASTRelationalExpression.java
  202. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTRelationalOperator.java
  203. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTReturnStatement.java
  204. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTShiftExpression.java
  205. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTSpecifierQualifierList.java
  206. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTStatement.java
  207. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTStatementList.java
  208. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTStorageClassSpecifier.java
  209. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTStructDeclaration.java
  210. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTStructDeclarationList.java
  211. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTStructDeclarator.java
  212. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTStructDeclaratorList.java
  213. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTStructOrUnion.java
  214. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTStructOrUnionSpecifier.java
  215. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTSwitchExpression.java
  216. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTSwitchStatement.java
  217. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTTypeName.java
  218. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTTypeQualifier.java
  219. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTTypeQualifierList.java
  220. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTTypeSpecifier.java
  221. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTTypedefName.java
  222. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTUnaryExpression.java
  223. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTUnaryOperator.java
  224. +21 −0 src/main/java/org/iguanatool/testobject/cparser/ASTWhileStatement.java
  225. +5,885 −0 src/main/java/org/iguanatool/testobject/cparser/CParser.java
  226. +210 −0 src/main/java/org/iguanatool/testobject/cparser/CParserConstants.java
  227. +1,373 −0 src/main/java/org/iguanatool/testobject/cparser/CParserTokenManager.java
  228. +165 −0 src/main/java/org/iguanatool/testobject/cparser/CParserTreeConstants.java
  229. +85 −0 src/main/java/org/iguanatool/testobject/cparser/CParserVisitor.java
  230. +358 −0 src/main/java/org/iguanatool/testobject/cparser/ContentExtractor.java
  231. +123 −0 src/main/java/org/iguanatool/testobject/cparser/JJTCParserState.java
  232. +39 −0 src/main/java/org/iguanatool/testobject/cparser/Node.java
  233. +187 −0 src/main/java/org/iguanatool/testobject/cparser/ParseException.java
  234. +316 −0 src/main/java/org/iguanatool/testobject/cparser/RecursiveVisitorAdapter.java
  235. +471 −0 src/main/java/org/iguanatool/testobject/cparser/SimpleCharStream.java
  236. +162 −0 src/main/java/org/iguanatool/testobject/cparser/SimpleNode.java
  237. +131 −0 src/main/java/org/iguanatool/testobject/cparser/Token.java
  238. +147 −0 src/main/java/org/iguanatool/testobject/cparser/TokenMgrError.java
  239. +238 −0 src/main/java/org/iguanatool/testobject/cparser/VisitorAdapter.java
  240. +74 −0 src/main/java/org/iguanatool/testobject/structure/CFG.java
  241. +162 −0 src/main/java/org/iguanatool/testobject/structure/CFGNode.java
  242. +28 −0 src/main/java/org/iguanatool/testobject/structure/ComputeControlDependencies.java
  243. +134 −0 src/main/java/org/iguanatool/testobject/structure/ComputePostDominators.java
  244. +58 −0 src/main/java/org/iguanatool/testobject/structure/ConnectedNode.java
  245. +35 −0 src/main/java/org/iguanatool/testobject/structure/ControlDependency.java
  246. +29 −0 src/main/java/org/iguanatool/testobject/structure/EndNode.java
  247. +29 −0 src/main/java/org/iguanatool/testobject/structure/StartNode.java
  248. +14 −0 src/main/java/org/iguanatool/testobject/structure/condition/AndCondition.java
  249. +28 −0 src/main/java/org/iguanatool/testobject/structure/condition/AtomicCondition.java
  250. +39 −0 src/main/java/org/iguanatool/testobject/structure/condition/ComposedCondition.java
  251. +10 −0 src/main/java/org/iguanatool/testobject/structure/condition/Condition.java
  252. +12 −0 src/main/java/org/iguanatool/testobject/structure/condition/ConditionVisitor.java
  253. +31 −0 src/main/java/org/iguanatool/testobject/structure/condition/NotCondition.java
  254. +14 −0 src/main/java/org/iguanatool/testobject/structure/condition/OrCondition.java
  255. +106 −0 src/main/java/org/iguanatool/testobject/trace/Trace.java
  256. +60 −0 src/main/java/org/iguanatool/testobject/trace/TraceNode.java
  257. +32 −0 src/main/java/org/iguanatool/testobject/trace/condition/EqualsTraceCondition.java
  258. +27 −0 src/main/java/org/iguanatool/testobject/trace/condition/GreaterThanOrEqualsTraceCondition.java
  259. +28 −0 src/main/java/org/iguanatool/testobject/trace/condition/GreaterThanTraceCondition.java
  260. +26 −0 src/main/java/org/iguanatool/testobject/trace/condition/IsTrueTraceCondition.java
  261. +27 −0 src/main/java/org/iguanatool/testobject/trace/condition/LessThanOrEqualsTraceCondition.java
  262. +28 −0 src/main/java/org/iguanatool/testobject/trace/condition/LessThanTraceCondition.java
  263. +27 −0 src/main/java/org/iguanatool/testobject/trace/condition/NotEqualsTraceCondition.java
  264. +27 −0 src/main/java/org/iguanatool/testobject/trace/condition/NotTrueTraceCondition.java
  265. +26 −0 src/main/java/org/iguanatool/testobject/trace/condition/RefEqualsTraceCondition.java
  266. +26 −0 src/main/java/org/iguanatool/testobject/trace/condition/RefNotEqualsTraceCondition.java
  267. +80 −0 src/main/java/org/iguanatool/testobject/trace/condition/TraceCondition.java
  268. +68 −0 src/test/java/org/iguanatool/inputgeneration/objectivefunction/ComputeNodeDependencyTest.java
  269. +40 −0 src/test/java/org/iguanatool/inputgeneration/objectivefunction/InputGenerationObjectiveTest.java
  270. +60 −0 src/test/java/org/iguanatool/search/evolve/mutation/MuhlenbeinMutationTest.java
  271. +51 −0 src/test/java/org/iguanatool/search/evolve/mutation/UniformMutationTest.java
  272. +58 −0 src/test/java/org/iguanatool/search/evolve/rank/RankingTest.java
  273. +66 −0 src/test/java/org/iguanatool/search/evolve/recombination/DiscreteRecombinationTest.java
  274. +103 −0 src/test/java/org/iguanatool/search/evolve/recombination/OnePointCrossoverTest.java
  275. +65 −0 src/test/java/org/iguanatool/search/evolve/recombination/UniformCrossoverTest.java
  276. +153 −0 src/test/java/org/iguanatool/search/evolve/select/StochasticUniversalSamplingTest.java
  277. +80 −0 src/test/java/org/iguanatool/search/evolve/select/TournamentSelectionTest.java
  278. +10 −0 templates/InputSpecification.java
  279. +31 −0 templates/TestObject.java
  280. +10 −0 templates/lib.c
  281. +13 −0 templates/perform_call.c
@@ -0,0 +1,4 @@
+.DS_Store
+.idea/
+*.iml
+target/
21 LICENCE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Phil McMinn
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
@@ -0,0 +1 @@
+gcc -I"/usr/lib/jvm/java-7-openjdk-amd64/include" -I"/usr/lib/jvm/java-7-openjdk-amd64/include/linux" -I"{HANDLE_INCLUDE_PATH}" -o "{LIB_FILE}" -shared -fPIC "{HANDLE_SRC_FILE}" "{LIB_SRC_FILE}"
@@ -0,0 +1,3 @@
+# Requires cc which can be downloaded with XCode
+
+cc -dynamiclib -o "{LIB_FILE}" -I"/System/Library/Frameworks/JavaVM.framework/Headers/" -I"{HANDLE_INCLUDE_PATH}" "{HANDLE_SRC_FILE}" "{LIB_SRC_FILE}" -framework JavaVM
@@ -0,0 +1 @@
+gcc -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at -I"{HANDLE_INCLUDE_PATH}" -I"C:\Program Files\Java\jdk1.7.0_21\include" -I"C:\Program Files\Java\jdk1.7.0_21\include\win32" -shared -o "{LIB_FILE}" "{HANDLE_SRC_FILE}" "{LIB_SRC_FILE}"
@@ -0,0 +1,9 @@
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+public boolean isExit() {
+ String code = getCode();
+ Pattern pattern = Pattern.compile("exit\\([0-9]*\\);");
+ Matcher matcher = pattern.matcher(code);
+ return matcher.matches();
+}
@@ -0,0 +1,8 @@
+public String getFunctionName() {
+ return new VisitorAdapter() {
+ String name;
+ String extract(ASTFunctionDefinition node) { node.childrenAccept(this); return name; }
+ public void visit(ASTDeclarator node) { node.childrenAccept(this); }
+ public void visit(ASTDirectDeclarator node) { name = node.jjtGetFirstToken().image; }
+ }.extract(this);
+}
@@ -0,0 +1,3 @@
+public String getLabel() {
+ return jjtGetFirstToken().next.image;
+}
@@ -0,0 +1,3 @@
+public String getLabel() {
+ return jjtGetFirstToken().image;
+}
@@ -0,0 +1,13 @@
+private static final int IF_TRUE_CHILD_INDEX = 1;
+private static final int IF_FALSE_CHILD_INDEX = 2;
+
+public SimpleNode getTrueChild() {
+ return getChild(IF_TRUE_CHILD_INDEX);
+}
+
+public SimpleNode getFalseChild() {
+ if (jjtGetNumChildren() > IF_FALSE_CHILD_INDEX) {
+ return getChild(IF_FALSE_CHILD_INDEX);
+ }
+ return null;
+}
@@ -0,0 +1,10 @@
+import java.util.List;
+import java.util.ArrayList;
+
+public List<String> getFunctionNames() {
+ return new RecursiveVisitorAdapter() {
+ List<String> names = new ArrayList<String>();
+ List<String> extract(ASTParseUnit parseUnit) { parseUnit.jjtAccept(this); return names; }
+ public void visit(ASTFunctionDefinition node) { names.add(node.getFunctionName()); }
+ }.extract(this);
+}
@@ -0,0 +1,10 @@
+private static final int RELATION_EXPRESSION_LHS_INDEX = 0;
+private static final int RELATION_EXPRESSION_RHS_INDEX = 2;
+
+public SimpleNode getLHS() {
+ return getChild(RELATION_EXPRESSION_LHS_INDEX);
+}
+
+public SimpleNode getRHS() {
+ return getChild(RELATION_EXPRESSION_RHS_INDEX);
+}
Oops, something went wrong.

0 comments on commit bf69e2d

Please sign in to comment.