The code provided in this OSF project is also relevant for the conference paper:
Khemlani, S., Hinterecker, T., & Johnson-Laird, P.N. (2017). The provenance of modal inference. In G. Gunzelmann, A. Howes, T. Tenbrink, & E. Davelaar (Eds.), Proceedings of the 39th Annual Conference of the Cognitive Science Society. Austin, TX: Cognitive Science Society.