Skip to content

Conversation

@ThomasHaas
Copy link
Collaborator

This PR adds the concept of interrupt handlers to Dartagnan.
I think it is mostly functional but just requires some cleanup here and there + some fine-tuning of the interrupt cat models.

hernan-poncedeleon and others added 30 commits September 29, 2023 13:57
Signed-off-by: Hernan Ponce de Leon <[email protected]>
Signed-off-by: Hernan Ponce de Leon <[email protected]>
Signed-off-by: Hernan Ponce de Leon <[email protected]>
Signed-off-by: Hernan Ponce de Leon <[email protected]>
Signed-off-by: Hernan Ponce de Leon <[email protected]>
Signed-off-by: Hernan Ponce de Leon <[email protected]>
# Conflicts:
#	dartagnan/src/main/java/com/dat3m/dartagnan/Dartagnan.java
#	dartagnan/src/main/java/com/dat3m/dartagnan/program/event/Tag.java
#	dartagnan/src/main/java/com/dat3m/dartagnan/program/processing/Intrinsics.java
#	dartagnan/src/test/java/com/dat3m/dartagnan/llvm/LKMMInterruptsTest.java
#	dartagnan/src/test/java/com/dat3m/dartagnan/llvm/VMMInterruptsTest.java
- Simplified NaiveDevirtualisation: no special-casing for pthread_create needed
- Added ThreadJoin as proper blocking event (pthread_join compiles to this one)
- Refactored & generalized ThreadCreation code.
(WIP): Adding proper return values
Updated AssignmentInlining to aggressively inline ConstructExpr
This allows us to generate better names for internal registers.
… to this).

ThreadJoin now properly returns the value of ThreadReturn
Added tests for improper joining and return values of threads.
- Allow encoding of Threads without ThreadReturn event (may occur if ThreadReturn is unreachable and gets deleted)
This allows the detection of certain kinds of non-termination.
# Conflicts:
#	dartagnan/src/main/java/com/dat3m/dartagnan/encoding/EncodingContext.java
#	dartagnan/src/main/java/com/dat3m/dartagnan/encoding/ProgramEncoder.java
#	dartagnan/src/main/java/com/dat3m/dartagnan/program/analysis/ExecutionAnalysis.java
# Conflicts:
#	dartagnan/src/main/java/com/dat3m/dartagnan/program/event/common/CallBase.java
#	dartagnan/src/main/java/com/dat3m/dartagnan/program/event/core/threading/ThreadCreate.java
#	dartagnan/src/main/java/com/dat3m/dartagnan/program/event/core/threading/ThreadJoin.java
#	dartagnan/src/main/java/com/dat3m/dartagnan/program/event/lang/dat3m/DynamicThreadCreate.java
#	dartagnan/src/main/java/com/dat3m/dartagnan/program/event/lang/dat3m/DynamicThreadJoin.java
#	dartagnan/src/main/java/com/dat3m/dartagnan/program/processing/DynamicSpinLoopDetection.java
#	dartagnan/src/main/java/com/dat3m/dartagnan/program/processing/Intrinsics.java
#	dartagnan/src/main/java/com/dat3m/dartagnan/program/processing/ThreadCreation.java
#	dartagnan/src/test/java/com/dat3m/dartagnan/llvm/MiscellaneousTest.java
# Conflicts:
#	dartagnan/src/main/java/com/dat3m/dartagnan/Dartagnan.java
#	dartagnan/src/main/java/com/dat3m/dartagnan/encoding/ProgramEncoder.java
#	dartagnan/src/main/java/com/dat3m/dartagnan/program/processing/ThreadCreation.java
@ThomasHaas ThomasHaas changed the title [DRAFT] Add interrupt handling Add interrupt handling May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants