Skip to content

Commit 2f968b2

Browse files
committed
Make auto gas configurable
1 parent 91f02f8 commit 2f968b2

File tree

1 file changed

+4
-1
lines changed
  • plugins/hls-tactics-plugin/src/Wingman

1 file changed

+4
-1
lines changed

plugins/hls-tactics-plugin/src/Wingman/Auto.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
12
module Wingman.Auto where
23

4+
import Control.Monad.Reader.Class (asks)
35
import Control.Monad.State (gets)
46
import qualified Data.Set as S
57
import Refinery.Tactic
@@ -17,13 +19,14 @@ auto :: TacticsM ()
1719
auto = do
1820
jdg <- goal
1921
skolems <- gets ts_skolems
22+
gas <- asks $ cfg_auto_gas . ctxConfig
2023
current <- getCurrentDefinitions
2124
traceMX "goal" jdg
2225
traceMX "ctx" current
2326
traceMX "skolems" skolems
2427
commit knownStrategies
2528
. tracing "auto"
26-
. localTactic (auto' 4)
29+
. localTactic (auto' gas)
2730
. disallowing RecursiveCall
2831
. S.fromList
2932
$ fmap fst current

0 commit comments

Comments
 (0)