Skip to content

Commit

Permalink
Turn off O2 by default, add it to kontrol.toml (#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
palinatolmach authored Dec 8, 2024
1 parent b5a3f17 commit d8dad9e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/kontrol/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,13 @@ def parse(s: str) -> list[T]:
config_args.config_args,
],
)
build.add_argument(
'--no-O2',
dest='o2',
default=None,
action='store_false',
help='Do not use optimization level 2.',
)
build.add_argument(
'--regen',
dest='regen',
Expand Down
1 change: 1 addition & 0 deletions src/kontrol/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,7 @@ class BuildOptions(LoggingOptions, KOptions, KGenOptions, KompileOptions, Foundr
@staticmethod
def default() -> dict[str, Any]:
return {
'o2': True,
'regen': False,
'rekompile': False,
'forge_build': True,
Expand Down
1 change: 1 addition & 0 deletions src/kontrol/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ def kontrol_toml_file_contents() -> str:
require = 'lemmas.k'
module-import = 'TestBase:KONTROL-LEMMAS'
auxiliary-lemmas = true
o2 = true
[prove.default]
foundry-project-root = '.'
Expand Down

0 comments on commit d8dad9e

Please sign in to comment.