We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb6fa30 commit 4c3fa6cCopy full SHA for 4c3fa6c
chc2c.py
@@ -31,6 +31,7 @@ def main():
31
32
parser.add_argument("-o", "--out", default="chc.c")
33
parser.add_argument("--recursive", action="store_true")
34
+ parser.add_argument("--no-retry", action="store_true")
35
36
args = parser.parse_args()
37
with open(args.filename, "r") as f_in:
@@ -40,6 +41,11 @@ def main():
40
41
try:
42
program = LinearCHC2C().chc_to_c_program(text, args.out)
43
except RecursiveException:
44
+ if args.no_retry:
45
+ print(
46
+ "Unable to map without recursion, but --no-retry is enabled. Exiting."
47
+ )
48
+ return
49
print("Retrying with recursive mapping...")
50
if not program:
51
program = NonLinearCHC2C().chc_to_c_program(text, args.out)
0 commit comments