This prolog program works properply when I debug it in repl, but it goes into infinity…
- User
This prolog program works properply when I debug it in repl, but it goes into infinity recursion on some inputs
Assistant
Here's a possible solution to this issue:
-
Identify the input that causes the infinite recursion. You can do this by running the program with different inputs in the REPL and observing when the infinite recursion occurs.
-
Once you have identified the input that causes the issue▌
-
- User
here is the program
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.