Skip to content

Commit

Permalink
Refactor Theta Cfa generation
Browse files Browse the repository at this point in the history
  • Loading branch information
radl97 committed Feb 7, 2021
1 parent da5fcf9 commit 453d2e0
Show file tree
Hide file tree
Showing 11 changed files with 515 additions and 398 deletions.
10 changes: 5 additions & 5 deletions test/theta/cfa/Expected/counter.theta
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
main process __gazer_main_process {
var main_RET_VAL : int
var main_tmp : int
var main_call : int
var main___gazer_error_field : int
init loc loc0
final loc loc1
Expand All @@ -15,15 +15,15 @@ main process __gazer_main_process {
}

loc2 -> loc3 {
havoc main_tmp
havoc main_call
}

loc3 -> loc6 {
assume (not (1 <= main_tmp))
assume (not (1 <= main_call))
}

loc3 -> loc4 {
assume (not (not (1 <= main_tmp)))
assume (not (not (1 <= main_call)))
}

loc4 -> loc5 {
Expand All @@ -44,4 +44,4 @@ main process __gazer_main_process {
main___gazer_error_field := 2
}

}
}
47 changes: 0 additions & 47 deletions test/theta/cfa/Output/counter.c.tmp

This file was deleted.

4 changes: 3 additions & 1 deletion tools/gazer-theta/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ set(LIB_SOURCE_FILES
lib/ThetaCfaGenerator.cpp
lib/ThetaExpr.cpp
lib/ThetaVerifier.cpp
lib/ThetaCfaWriterPass.cpp)
lib/ThetaCfaWriterPass.cpp
lib/ThetaCfaProcedureGenerator.cpp
lib/ThetaCommon.cpp)

set(TOOL_SOURCE_FILES
gazer-theta.cpp
Expand Down
Loading

0 comments on commit 453d2e0

Please sign in to comment.