Skip to content

Commit

Permalink
fix generator
Browse files Browse the repository at this point in the history
  • Loading branch information
damianoazzolini committed Dec 3, 2024
1 parent 256dafe commit c3d1e6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion benchmark/map/generate_map_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ def generate_second_type_programs(args : argparse.Namespace):

for i in range(1,args.n):
prefix = "" if random.random() > 0.5 else "n"
prefix_pf = "" if random.random() > 0.5 else "not"
if args.aspmc:
prefix_pf = "" if random.random() > 0.5 else "\+" # type: ignore
else:
prefix_pf = "" if random.random() > 0.5 else "not"
if i % 2 == 0:
if args.aspmc:
print(f"qr{i} :- qr{i-1}, {prefix_pf} a{i}, \+ nqr{i}.") # type: ignore
Expand Down

0 comments on commit c3d1e6a

Please sign in to comment.