@@ -396,8 +396,8 @@ parserInfoModifiers =
396396unparseKoreSearchOptions :: KoreSearchOptions -> [String ]
397397unparseKoreSearchOptions (KoreSearchOptions _ bound searchType) =
398398 [ " --search searchFile.kore"
399- , maybeLimit " " (\ limit -> " --bound " <> show limit) bound
400- , " --searchType " <> show searchType
399+ , maybeLimit " " (\ limit -> unwords [ " --bound" , show limit] ) bound
400+ , unwords [ " --searchType" , show searchType]
401401 ]
402402
403403unparseKoreMergeOptions :: KoreMergeOptions -> [String ]
@@ -416,9 +416,11 @@ unparseKoreProveOptions
416416 )
417417 =
418418 [ " --prove spec.kore"
419- , " --spec-module " <> unpack moduleName
420- , " --graph-search "
421- <> if graphSearch == DepthFirst then " depth-first" else " breadth-first"
419+ , unwords [" --spec-module" , unpack moduleName]
420+ , unwords
421+ [ " --graph-search"
422+ , if graphSearch == DepthFirst then " depth-first" else " breadth-first"
423+ ]
422424 , if bmc then " --bmc" else " "
423425 , maybe " " (" --save-proofs " <> ) saveProofs
424426 ]
@@ -455,12 +457,12 @@ koreExecSh
455457 [ pure $ defaultDefinitionFilePath koreExecOptions
456458 , patternFileName $> " --pattern pgm.kore"
457459 , outputFileName $> " --output result.kore"
458- , pure $ " --module " <> unpack (getModuleName mainModuleName)
460+ , pure $ unwords [ " --module" , unpack (getModuleName mainModuleName)]
459461 , (\ limit -> unwords [" --breadth" , show limit])
460462 <$> maybeLimit Nothing Just breadthLimit
461463 , (\ limit -> unwords [" --depth" , show limit])
462464 <$> maybeLimit Nothing Just depthLimit
463- , pure $ " --strategy " <> fst strategy
465+ , pure $ unwords [ " --strategy" , fst strategy]
464466 , rtsStatistics $>
465467 unwords [" --rts-statistics" , defaultRtsStatisticsFilePath]
466468 ]
0 commit comments