Spaces
Explore
Communities
Statistics
Reports
Cluster
Status
Help
Haskell 2019-04-01 06.52 pair #433316952
details
property
value
status
complete
benchmark
FiniteMap_intersectFM_C_5.hs
ran by
Akihisa Yamada
cpu timeout
1200 seconds
wallclock timeout
300 seconds
memory limit
137438953472 bytes
execution host
n155.star.cs.uiowa.edu
space
full_haskell
run statistics
property
value
solver
AProVE
configuration
standard
runtime (wallclock)
60.6285 seconds
cpu usage
91.1187
user time
88.8082
system time
2.31049
max virtual memory
1.8285568E7
max residence set size
5122132.0
stage attributes
key
value
starexec-result
MAYBE
output
87.17/59.55 MAYBE 89.76/60.25 proof of /export/starexec/sandbox/benchmark/theBenchmark.hs 89.76/60.25 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 89.76/60.25 89.76/60.25 89.76/60.25 H-Termination with start terms of the given HASKELL could not be shown: 89.76/60.25 89.76/60.25 (0) HASKELL 89.76/60.25 (1) LR [EQUIVALENT, 0 ms] 89.76/60.25 (2) HASKELL 89.76/60.25 (3) CR [EQUIVALENT, 0 ms] 89.76/60.25 (4) HASKELL 89.76/60.25 (5) IFR [EQUIVALENT, 0 ms] 89.76/60.25 (6) HASKELL 89.76/60.25 (7) BR [EQUIVALENT, 1 ms] 89.76/60.25 (8) HASKELL 89.76/60.25 (9) COR [EQUIVALENT, 0 ms] 89.76/60.25 (10) HASKELL 89.76/60.25 (11) LetRed [EQUIVALENT, 0 ms] 89.76/60.25 (12) HASKELL 89.76/60.25 (13) NumRed [SOUND, 7 ms] 89.76/60.25 (14) HASKELL 89.76/60.25 89.76/60.25 89.76/60.25 ---------------------------------------- 89.76/60.25 89.76/60.25 (0) 89.76/60.25 Obligation: 89.76/60.25 mainModule Main 89.76/60.25 module FiniteMap where { 89.76/60.25 import qualified Main; 89.76/60.25 import qualified Maybe; 89.76/60.25 import qualified Prelude; 89.76/60.25 data FiniteMap a b = EmptyFM | Branch a b Int (FiniteMap a b) (FiniteMap a b) ; 89.76/60.25 89.76/60.25 instance (Eq a, Eq b) => Eq FiniteMap a b where { 89.76/60.25 (==) fm_1 fm_2 = sizeFM fm_1 == sizeFM fm_2 && fmToList fm_1 == fmToList fm_2; 89.76/60.25 } 89.76/60.25 addToFM :: Ord b => FiniteMap b a -> b -> a -> FiniteMap b a; 89.76/60.25 addToFM fm key elt = addToFM_C (\old new ->new) fm key elt; 89.76/60.25 89.76/60.25 addToFM_C :: Ord b => (a -> a -> a) -> FiniteMap b a -> b -> a -> FiniteMap b a; 89.76/60.25 addToFM_C combiner EmptyFM key elt = unitFM key elt; 89.76/60.25 addToFM_C combiner (Branch key elt size fm_l fm_r) new_key new_elt | new_key < key = mkBalBranch key elt (addToFM_C combiner fm_l new_key new_elt) fm_r 89.76/60.25 | new_key > key = mkBalBranch key elt fm_l (addToFM_C combiner fm_r new_key new_elt) 89.76/60.25 | otherwise = Branch new_key (combiner elt new_elt) size fm_l fm_r; 89.76/60.25 89.76/60.25 deleteMax :: Ord a => FiniteMap a b -> FiniteMap a b; 89.76/60.25 deleteMax (Branch key elt _ fm_l EmptyFM) = fm_l; 89.76/60.25 deleteMax (Branch key elt _ fm_l fm_r) = mkBalBranch key elt fm_l (deleteMax fm_r); 89.76/60.25 89.76/60.25 deleteMin :: Ord b => FiniteMap b a -> FiniteMap b a; 89.76/60.25 deleteMin (Branch key elt _ EmptyFM fm_r) = fm_r; 89.76/60.25 deleteMin (Branch key elt _ fm_l fm_r) = mkBalBranch key elt (deleteMin fm_l) fm_r; 89.76/60.25 89.76/60.25 emptyFM :: FiniteMap b a; 89.76/60.25 emptyFM = EmptyFM; 89.76/60.25 89.76/60.25 findMax :: FiniteMap b a -> (b,a); 89.76/60.25 findMax (Branch key elt _ _ EmptyFM) = (key,elt); 89.76/60.25 findMax (Branch key elt _ _ fm_r) = findMax fm_r; 89.76/60.25 89.76/60.25 findMin :: FiniteMap a b -> (a,b); 89.76/60.25 findMin (Branch key elt _ EmptyFM _) = (key,elt); 89.76/60.25 findMin (Branch key elt _ fm_l _) = findMin fm_l; 89.76/60.25 89.76/60.25 fmToList :: FiniteMap a b -> [(a,b)]; 89.76/60.25 fmToList fm = foldFM (\key elt rest ->(key,elt) : rest) [] fm; 89.76/60.25 89.76/60.25 foldFM :: (b -> a -> c -> c) -> c -> FiniteMap b a -> c; 89.76/60.25 foldFM k z EmptyFM = z; 89.76/60.25 foldFM k z (Branch key elt _ fm_l fm_r) = foldFM k (k key elt (foldFM k z fm_r)) fm_l; 89.76/60.25 89.76/60.25 glueBal :: Ord a => FiniteMap a b -> FiniteMap a b -> FiniteMap a b; 89.76/60.25 glueBal EmptyFM fm2 = fm2; 89.76/60.25 glueBal fm1 EmptyFM = fm1; 89.76/60.25 glueBal fm1 fm2 | sizeFM fm2 > sizeFM fm1 = mkBalBranch mid_key2 mid_elt2 fm1 (deleteMin fm2) 89.76/60.25 | otherwise = mkBalBranch mid_key1 mid_elt1 (deleteMax fm1) fm2 where { 89.76/60.25 mid_elt1 = (\(_,mid_elt1) ->mid_elt1) vv2; 89.76/60.25 mid_elt2 = (\(_,mid_elt2) ->mid_elt2) vv3; 89.76/60.25 mid_key1 = (\(mid_key1,_) ->mid_key1) vv2; 89.76/60.25 mid_key2 = (\(mid_key2,_) ->mid_key2) vv3; 89.76/60.25 vv2 = findMax fm1; 89.76/60.25 vv3 = findMin fm2; 89.76/60.25 }; 89.76/60.25 89.76/60.25 glueVBal :: Ord b => FiniteMap b a -> FiniteMap b a -> FiniteMap b a; 89.76/60.25 glueVBal EmptyFM fm2 = fm2; 89.76/60.25 glueVBal fm1 EmptyFM = fm1; 89.76/60.25 glueVBal fm_l@(Branch key_l elt_l _ fm_ll fm_lr) fm_r@(Branch key_r elt_r _ fm_rl fm_rr) | sIZE_RATIO * size_l < size_r = mkBalBranch key_r elt_r (glueVBal fm_l fm_rl) fm_rr 89.76/60.25 | sIZE_RATIO * size_r < size_l = mkBalBranch key_l elt_l fm_ll (glueVBal fm_lr fm_r) 89.76/60.25 | otherwise = glueBal fm_l fm_r where { 89.76/60.25 size_l = sizeFM fm_l; 89.76/60.25 size_r = sizeFM fm_r; 89.76/60.25 }; 89.76/60.25 89.76/60.25 intersectFM_C :: Ord c => (b -> a -> d) -> FiniteMap c b -> FiniteMap c a -> FiniteMap c d; 89.76/60.25 intersectFM_C combiner fm1 EmptyFM = emptyFM; 89.76/60.25 intersectFM_C combiner EmptyFM fm2 = emptyFM; 89.76/60.25 intersectFM_C combiner fm1 (Branch split_key elt2 _ left right) | Maybe.isJust maybe_elt1 = mkVBalBranch split_key (combiner elt1 elt2) (intersectFM_C combiner lts left) (intersectFM_C combiner gts right)
popout
output may be truncated. 'popout' for the full output.
job log
popout
actions
all output
return to Haskell 2019-04-01 06.52