Skip to content

Commit

Permalink
Now all generated and original axioms are in correct order (order of …
Browse files Browse the repository at this point in the history
…input file) in the theory after static analysis

git-svn-id: https://svn-agbkb.informatik.uni-bremen.de/Hets/trunk@3099 cec4b9c1-7d33-0410-9eda-942365e851bb
  • Loading branch information
Klaus Luettich committed Aug 27, 2004
1 parent 8ee6ec9 commit 8365fb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CASL/StaticAna.hs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ allPredIds = Set.fromDistinctAscList . Map.keys . predMap
addSentences :: [Named (FORMULA f)] -> State (Sign f e) ()
addSentences ds =
do e <- get
put e { sentences = ds ++ sentences e }
put e { sentences = sentences e ++ ds }

-- * traversing all data types of the abstract syntax

Expand Down Expand Up @@ -680,7 +680,7 @@ basicAnalysis :: (Eq f, PrettyPrint f) => Min f e -- ^ type analysis of f
basicAnalysis mef ab as dif (bs, inSig, ga) = do
let (newBs, accSig) = runState (ana_BASIC_SPEC ab as ga bs) inSig
ds = reverse $ envDiags accSig
sents = reverse $ sentences accSig
sents = sentences accSig
cleanSig = accSig { envDiags = [], sentences = [], varMap = Map.empty }
diff = diffSig cleanSig inSig
{ extendedInfo = dif (extendedInfo accSig) $ extendedInfo inSig }
Expand All @@ -689,5 +689,5 @@ basicAnalysis mef ab as dif (bs, inSig, ga) = do
return ( newBs
, diff
, cleanSig
, reverse checked_sents )
, checked_sents )

0 comments on commit 8365fb9

Please sign in to comment.