-
Notifications
You must be signed in to change notification settings - Fork 277
SMT2 strings tests #4015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
SMT2 strings tests #4015
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!*.smt2 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
add_test_pl_tests( | ||
"$<TARGET_FILE:smt2_solver>" | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
default: tests.log | ||
|
||
test: | ||
@../test.pl -p -c ../../../src/solvers/smt2_solver | ||
|
||
tests.log: ../test.pl | ||
@../test.pl -p -c ../../../src/solvers/smt2_solver | ||
|
||
show: | ||
@for dir in *; do \ | ||
if [ -d "$$dir" ]; then \ | ||
vim -o "$$dir/*.c" "$$dir/*.out"; \ | ||
fi; \ | ||
done; | ||
|
||
clean: | ||
find -name '*.out' -execdir $(RM) '{}' \; | ||
$(RM) tests.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Test Suite for SMT2 String Operations | ||
===================================== | ||
|
||
The purpose of this suite is to test the level of string support of cbmc's smt2 | ||
backend. | ||
|
||
It can also be used to test the level of string support of any smt2 solver, by | ||
using a command such as: | ||
``` | ||
../test.pl -p -F -c <path_to_solver_binary> | ||
``` | ||
|
||
(note the `-F` option to consider all tests tagged as "FUTURE"). | ||
|
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/concat_const_sat/concat_const_sat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
concat_const_sat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^sat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/concat_const_sat/concat_const_sat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (= (str.++ "abc" "def" "" "gh") "abcdefgh")) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/concat_const_unsat/concat_const_unsat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
concat_const_unsat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^unsat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/concat_const_unsat/concat_const_unsat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (= (str.++ "abc" "cdef") "abcde")) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/contains_const_sat/contains_const_sat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
contains_const_sat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^sat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/contains_const_sat/contains_const_sat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.contains "abcdef" "bcd")) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/contains_const_unsat/contains_const_unsat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
contains_const_unsat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^unsat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/contains_const_unsat/contains_const_unsat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.contains "abcdef" "dc")) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/indexof_const_sat/indexof_const_sat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
indexof_const_sat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^sat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/indexof_const_sat/indexof_const_sat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (= (str.indexof "abcdef" "cde" 1) 2)) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/indexof_const_unsat/indexof_const_unsat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
indexof_const_unsat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^unsat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/indexof_const_unsat/indexof_const_unsat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (= (str.indexof "abcdef" "cde" 1) 1)) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/int_to_str_const_sat/int_to_str_const_sat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
int_to_str_const_sat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^sat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/int_to_str_const_sat/int_to_str_const_sat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (= (int.to.str 1234567890) "1234567890")) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/int_to_str_const_unsat/int_to_str_const_unsat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
int_to_str_const_unsat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^unsat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/int_to_str_const_unsat/int_to_str_const_unsat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (= (int.to.str 1234567890) "1234467890")) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/length_const_sat/length_const_sat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
length_const_sat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^sat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/length_const_sat/length_const_sat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (= (str.len "abc") 3)) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/length_const_unsat/length_const_unsat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
length_const_unsat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^unsat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/length_const_unsat/length_const_unsat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (= (str.len "abc") 4)) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/lex_order_const_sat/lex_order_const_sat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
lex_order_const_sat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^sat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/lex_order_const_sat/lex_order_const_sat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.< "abc" "acc")) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/lex_order_const_unsat/lex_order_const_unsat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
lex_order_const_unsat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^unsat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/lex_order_const_unsat/lex_order_const_unsat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.< "abc" "aac")) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/prefixof_const_sat/prefixof_const_sat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
prefixof_const_sat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^sat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/prefixof_const_sat/prefixof_const_sat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.prefixof "abc" "abcdef")) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/prefixof_const_unsat/prefixof_const_unsat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
prefixof_const_unsat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^unsat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/prefixof_const_unsat/prefixof_const_unsat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.prefixof "bc" "abcdef")) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/reflexive_lex_order_const_sat/reflexive_lex_order_const_sat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
reflexive_lex_order_const_sat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^sat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/reflexive_lex_order_const_sat/reflexive_lex_order_const_sat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.<= "abc" "acc")) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/reflexive_lex_order_const_sat/reflexive_lex_order_const_sat2.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
reflexive_lex_order_const_sat2.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^sat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/reflexive_lex_order_const_sat/reflexive_lex_order_const_sat2.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.<= "abc" "abc")) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/reflexive_lex_order_const_unsat/reflexive_lex_order_const_unsat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
reflexive_lex_order_const_unsat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^unsat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/reflexive_lex_order_const_unsat/reflexive_lex_order_const_unsat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.<= "acc" "abc")) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/regexp_all_const_sat/regexp_all_const_sat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
regexp_all_const_sat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^sat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/regexp_all_const_sat/regexp_all_const_sat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.in.re "abc" (re.* re.all))) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/regexp_allchar_const_sat/regexp_allchar_const_sat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
regexp_allchar_const_sat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^sat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/regexp_allchar_const_sat/regexp_allchar_const_sat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.in.re "aaabbb" (re.++ (re.* (str.to.re "a")) (re.* re.allchar)))) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/regexp_allchar_const_unsat/regexp_allchar_const_unsat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
regexp_allchar_const_unsat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^unsat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/regexp_allchar_const_unsat/regexp_allchar_const_unsat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.in.re "a" (re.++ (re.+ (str.to.re "a")) (re.+ re.allchar)))) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/regexp_concat_const_sat/regexp_concat_const_sat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
regexp_concat_const_sat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^sat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/regexp_concat_const_sat/regexp_concat_const_sat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.in.re "aaabbb" (re.++ (re.* (str.to.re "a")) (re.* (str.to.re "b"))))) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/regexp_concat_const_unsat/regexp_concat_const_unsat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
regexp_concat_const_unsat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^unsat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/regexp_concat_const_unsat/regexp_concat_const_unsat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.in.re "aaabbbc" (re.++ (re.* (str.to.re "a")) (re.* (str.to.re "b"))))) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/regexp_inter_const_sat/regexp_inter_const_sat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
regexp_inter_const_sat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^sat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/regexp_inter_const_sat/regexp_inter_const_sat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.in.re "e" (re.inter (re.range "a" "h") (re.range "d" "w")))) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/regexp_inter_const_unsat/regexp_inter_const_unsat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
regexp_inter_const_unsat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^unsat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/regexp_inter_const_unsat/regexp_inter_const_unsat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.in.re "e" (re.inter (re.range "a" "b") (re.range "b" "w")))) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/regexp_loop_const_sat/regexp_loop_const_sat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
regexp_loop_const_sat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^sat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/regexp_loop_const_sat/regexp_loop_const_sat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.in.re "aaa" ((_ re.loop 3 3) (str.to.re "a")))) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/regexp_loop_const_unsat/regexp_loop_const_unsat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
regexp_loop_const_unsat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^unsat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/regexp_loop_const_unsat/regexp_loop_const_unsat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.in.re "aaa" ((_ re.loop 1 2) (str.to.re "a")))) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/regexp_nostr_const_unsat/regexp_nostr_const_unsat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
regexp_nostr_const_unsat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^unsat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/regexp_nostr_const_unsat/regexp_nostr_const_unsat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.in.re "a" re.nostr)) | ||
(check-sat) |
8 changes: 8 additions & 0 deletions
8
regression/smt2_strings/regexp_opt_const_sat/regexp_opt_const_sat.desc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FUTURE | ||
regexp_opt_const_sat.smt2 | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^sat$ | ||
-- | ||
error |
2 changes: 2 additions & 0 deletions
2
regression/smt2_strings/regexp_opt_const_sat/regexp_opt_const_sat.smt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(assert (str.in.re "aaab" (re.++ (re.+ (str.to.re "a")) (re.opt (str.to.re "b"))))) | ||
(check-sat) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would mean that Makefile, CMakeLists.txt, *.desc are also ignore, which doesn't seem right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand. I need to discard the ignore that is introduced here:
https://github.com/diffblue/cbmc/blob/develop/.gitignore#L59
and which is useful on the regression tests where cbmc is run with the
--smt2
option.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I wasn't aware of that interaction.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that cbmc still writes the file on disk when run with --smt2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kroening some of the regression tests use
--outfile
, e.g. https://github.com/diffblue/cbmc/blob/develop/regression/cbmc/Malloc22/test.desc#L3