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