Skip to content

Conversation

@tothtamas28
Copy link
Contributor

No description provided.

@tothtamas28 tothtamas28 self-assigned this Oct 17, 2025
@tothtamas28 tothtamas28 marked this pull request as ready for review October 17, 2025 10:47
Copy link
Member

@jberthold jberthold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

_LOGGER.info(f'Copying file {file}')
shutil.copy2(LLVM_DEF_DIR / file, target_llvm_path / file)
return KMIR(target_llvm_path, None, bug_report=bug_report)
from .kompile import kompile_smir
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This creates an import loop (however only in local scope), that's why I didn't continue with factoring out the compilation code. If that's not a problem I have no objections.

from pyk.kast.prelude.string import stringToken

from .build import HASKELL_DEF_DIR, LLVM_DEF_DIR, LLVM_LIB_DIR
from .kmir import KMIR
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the loop. In theory we could call KMIR.from_kompiled_kore in this module, which imports the module again.

@automergerpr-permission-manager automergerpr-permission-manager bot merged commit 51a716a into master Oct 18, 2025
7 checks passed
@automergerpr-permission-manager automergerpr-permission-manager bot deleted the extract-smir-kompile branch October 18, 2025 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants