From 44cca3a3e244cd0acdd637ddb2ed9d70dc0d69e8 Mon Sep 17 00:00:00 2001 From: Seokhyun Lee <7948302+henrylee97@users.noreply.github.com> Date: Thu, 9 Nov 2023 15:24:16 +0900 Subject: [PATCH] refactor(ocaml): refactoring ocaml formula (#28) * refactor(ocaml): refactoring ocaml formula * fix: fix tags in metadata --- OCaml/formula-1/.dockerignore | 2 + OCaml/formula-1/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-1/buggy/src.ml | 0 .../src => OCaml/formula-1/buggy}/testcases | 0 OCaml/formula-1/metadata.json | 12 ++++ OCaml/formula-10/.dockerignore | 2 + OCaml/formula-10/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-10/buggy/src.ml | 0 OCaml/formula-10/buggy/testcases | 20 +++++++ OCaml/formula-10/metadata.json | 12 ++++ OCaml/formula-100/.dockerignore | 2 + OCaml/formula-100/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-100/buggy/src.ml | 0 OCaml/formula-100/buggy/testcases | 20 +++++++ OCaml/formula-100/metadata.json | 12 ++++ OCaml/formula-11/.dockerignore | 2 + OCaml/formula-11/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-11/buggy/src.ml | 0 OCaml/formula-11/buggy/testcases | 20 +++++++ OCaml/formula-11/metadata.json | 12 ++++ OCaml/formula-12/.dockerignore | 2 + OCaml/formula-12/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-12/buggy/src.ml | 0 OCaml/formula-12/buggy/testcases | 20 +++++++ OCaml/formula-12/metadata.json | 12 ++++ OCaml/formula-13/.dockerignore | 2 + OCaml/formula-13/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-13/buggy/src.ml | 0 OCaml/formula-13/buggy/testcases | 20 +++++++ OCaml/formula-13/metadata.json | 12 ++++ OCaml/formula-14/.dockerignore | 2 + OCaml/formula-14/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-14/buggy/src.ml | 0 OCaml/formula-14/buggy/testcases | 20 +++++++ OCaml/formula-14/metadata.json | 12 ++++ OCaml/formula-15/.dockerignore | 2 + OCaml/formula-15/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-15/buggy/src.ml | 0 OCaml/formula-15/buggy/testcases | 20 +++++++ OCaml/formula-15/metadata.json | 12 ++++ OCaml/formula-16/.dockerignore | 2 + OCaml/formula-16/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-16/buggy/src.ml | 0 OCaml/formula-16/buggy/testcases | 20 +++++++ OCaml/formula-16/metadata.json | 12 ++++ OCaml/formula-17/.dockerignore | 2 + OCaml/formula-17/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-17/buggy/src.ml | 0 OCaml/formula-17/buggy/testcases | 20 +++++++ OCaml/formula-17/metadata.json | 12 ++++ OCaml/formula-18/.dockerignore | 2 + OCaml/formula-18/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-18/buggy/src.ml | 0 OCaml/formula-18/buggy/testcases | 20 +++++++ OCaml/formula-18/metadata.json | 12 ++++ OCaml/formula-19/.dockerignore | 2 + OCaml/formula-19/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-19/buggy/src.ml | 0 OCaml/formula-19/buggy/testcases | 20 +++++++ OCaml/formula-19/metadata.json | 12 ++++ OCaml/formula-2/.dockerignore | 2 + OCaml/formula-2/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-2/buggy/src.ml | 0 OCaml/formula-2/buggy/testcases | 20 +++++++ OCaml/formula-2/metadata.json | 12 ++++ OCaml/formula-20/.dockerignore | 2 + OCaml/formula-20/Dockerfile | 6 ++ OCaml/formula-20/buggy/src.ml | 35 +++++++++++ OCaml/formula-20/buggy/testcases | 20 +++++++ OCaml/formula-20/metadata.json | 12 ++++ OCaml/formula-21/.dockerignore | 2 + OCaml/formula-21/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-21/buggy/src.ml | 0 OCaml/formula-21/buggy/testcases | 20 +++++++ OCaml/formula-21/metadata.json | 12 ++++ OCaml/formula-22/.dockerignore | 2 + OCaml/formula-22/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-22/buggy/src.ml | 0 OCaml/formula-22/buggy/testcases | 20 +++++++ OCaml/formula-22/metadata.json | 12 ++++ OCaml/formula-23/.dockerignore | 2 + OCaml/formula-23/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-23/buggy/src.ml | 0 OCaml/formula-23/buggy/testcases | 20 +++++++ OCaml/formula-23/metadata.json | 12 ++++ OCaml/formula-24/.dockerignore | 2 + OCaml/formula-24/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-24/buggy/src.ml | 0 OCaml/formula-24/buggy/testcases | 20 +++++++ OCaml/formula-24/metadata.json | 12 ++++ OCaml/formula-25/.dockerignore | 2 + OCaml/formula-25/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-25/buggy/src.ml | 0 OCaml/formula-25/buggy/testcases | 20 +++++++ OCaml/formula-25/metadata.json | 12 ++++ OCaml/formula-26/.dockerignore | 2 + OCaml/formula-26/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-26/buggy/src.ml | 0 OCaml/formula-26/buggy/testcases | 20 +++++++ OCaml/formula-26/metadata.json | 12 ++++ OCaml/formula-27/.dockerignore | 2 + OCaml/formula-27/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-27/buggy/src.ml | 0 OCaml/formula-27/buggy/testcases | 20 +++++++ OCaml/formula-27/metadata.json | 12 ++++ OCaml/formula-28/.dockerignore | 2 + OCaml/formula-28/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-28/buggy/src.ml | 0 OCaml/formula-28/buggy/testcases | 20 +++++++ OCaml/formula-28/metadata.json | 12 ++++ OCaml/formula-29/.dockerignore | 2 + OCaml/formula-29/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-29/buggy/src.ml | 0 OCaml/formula-29/buggy/testcases | 20 +++++++ OCaml/formula-29/metadata.json | 12 ++++ OCaml/formula-3/.dockerignore | 2 + OCaml/formula-3/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-3/buggy/src.ml | 0 OCaml/formula-3/buggy/testcases | 20 +++++++ OCaml/formula-3/metadata.json | 12 ++++ OCaml/formula-30/.dockerignore | 2 + OCaml/formula-30/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-30/buggy/src.ml | 0 OCaml/formula-30/buggy/testcases | 20 +++++++ OCaml/formula-30/metadata.json | 12 ++++ OCaml/formula-31/.dockerignore | 2 + OCaml/formula-31/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-31/buggy/src.ml | 0 OCaml/formula-31/buggy/testcases | 20 +++++++ OCaml/formula-31/metadata.json | 12 ++++ OCaml/formula-32/.dockerignore | 2 + OCaml/formula-32/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-32/buggy/src.ml | 0 OCaml/formula-32/buggy/testcases | 20 +++++++ OCaml/formula-32/metadata.json | 12 ++++ OCaml/formula-33/.dockerignore | 2 + OCaml/formula-33/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-33/buggy/src.ml | 0 OCaml/formula-33/buggy/testcases | 20 +++++++ OCaml/formula-33/metadata.json | 12 ++++ OCaml/formula-34/.dockerignore | 2 + OCaml/formula-34/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-34/buggy/src.ml | 0 OCaml/formula-34/buggy/testcases | 20 +++++++ OCaml/formula-34/metadata.json | 12 ++++ OCaml/formula-35/.dockerignore | 2 + OCaml/formula-35/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-35/buggy/src.ml | 0 OCaml/formula-35/buggy/testcases | 20 +++++++ OCaml/formula-35/metadata.json | 12 ++++ OCaml/formula-36/.dockerignore | 2 + OCaml/formula-36/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-36/buggy/src.ml | 0 OCaml/formula-36/buggy/testcases | 20 +++++++ OCaml/formula-36/metadata.json | 12 ++++ OCaml/formula-37/.dockerignore | 2 + OCaml/formula-37/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-37/buggy/src.ml | 0 OCaml/formula-37/buggy/testcases | 20 +++++++ OCaml/formula-37/metadata.json | 12 ++++ OCaml/formula-38/.dockerignore | 2 + OCaml/formula-38/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-38/buggy/src.ml | 0 OCaml/formula-38/buggy/testcases | 20 +++++++ OCaml/formula-38/metadata.json | 12 ++++ OCaml/formula-39/.dockerignore | 2 + OCaml/formula-39/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-39/buggy/src.ml | 0 OCaml/formula-39/buggy/testcases | 20 +++++++ OCaml/formula-39/metadata.json | 12 ++++ OCaml/formula-4/.dockerignore | 2 + OCaml/formula-4/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-4/buggy/src.ml | 0 OCaml/formula-4/buggy/testcases | 20 +++++++ OCaml/formula-4/metadata.json | 12 ++++ OCaml/formula-40/.dockerignore | 2 + OCaml/formula-40/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-40/buggy/src.ml | 0 OCaml/formula-40/buggy/testcases | 20 +++++++ OCaml/formula-40/metadata.json | 12 ++++ OCaml/formula-41/.dockerignore | 2 + OCaml/formula-41/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-41/buggy/src.ml | 0 OCaml/formula-41/buggy/testcases | 20 +++++++ OCaml/formula-41/metadata.json | 12 ++++ OCaml/formula-42/.dockerignore | 2 + OCaml/formula-42/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-42/buggy/src.ml | 0 OCaml/formula-42/buggy/testcases | 20 +++++++ OCaml/formula-42/metadata.json | 12 ++++ OCaml/formula-43/.dockerignore | 2 + OCaml/formula-43/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-43/buggy/src.ml | 0 OCaml/formula-43/buggy/testcases | 20 +++++++ OCaml/formula-43/metadata.json | 12 ++++ OCaml/formula-44/.dockerignore | 2 + OCaml/formula-44/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-44/buggy/src.ml | 0 OCaml/formula-44/buggy/testcases | 20 +++++++ OCaml/formula-44/metadata.json | 12 ++++ OCaml/formula-45/.dockerignore | 2 + OCaml/formula-45/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-45/buggy/src.ml | 0 OCaml/formula-45/buggy/testcases | 20 +++++++ OCaml/formula-45/metadata.json | 12 ++++ OCaml/formula-46/.dockerignore | 2 + OCaml/formula-46/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-46/buggy/src.ml | 0 OCaml/formula-46/buggy/testcases | 20 +++++++ OCaml/formula-46/metadata.json | 12 ++++ OCaml/formula-47/.dockerignore | 2 + OCaml/formula-47/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-47/buggy/src.ml | 0 OCaml/formula-47/buggy/testcases | 20 +++++++ OCaml/formula-47/metadata.json | 12 ++++ OCaml/formula-48/.dockerignore | 2 + OCaml/formula-48/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-48/buggy/src.ml | 0 OCaml/formula-48/buggy/testcases | 20 +++++++ OCaml/formula-48/metadata.json | 12 ++++ OCaml/formula-49/.dockerignore | 2 + OCaml/formula-49/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-49/buggy/src.ml | 0 OCaml/formula-49/buggy/testcases | 20 +++++++ OCaml/formula-49/metadata.json | 12 ++++ OCaml/formula-5/.dockerignore | 2 + OCaml/formula-5/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-5/buggy/src.ml | 0 OCaml/formula-5/buggy/testcases | 20 +++++++ OCaml/formula-5/metadata.json | 12 ++++ OCaml/formula-50/.dockerignore | 2 + OCaml/formula-50/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-50/buggy/src.ml | 0 OCaml/formula-50/buggy/testcases | 20 +++++++ OCaml/formula-50/metadata.json | 12 ++++ OCaml/formula-51/.dockerignore | 2 + OCaml/formula-51/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-51/buggy/src.ml | 0 OCaml/formula-51/buggy/testcases | 20 +++++++ OCaml/formula-51/metadata.json | 12 ++++ OCaml/formula-52/.dockerignore | 2 + OCaml/formula-52/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-52/buggy/src.ml | 0 OCaml/formula-52/buggy/testcases | 20 +++++++ OCaml/formula-52/metadata.json | 12 ++++ OCaml/formula-53/.dockerignore | 2 + OCaml/formula-53/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-53/buggy/src.ml | 0 OCaml/formula-53/buggy/testcases | 20 +++++++ OCaml/formula-53/metadata.json | 12 ++++ OCaml/formula-54/.dockerignore | 2 + OCaml/formula-54/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-54/buggy/src.ml | 0 OCaml/formula-54/buggy/testcases | 20 +++++++ OCaml/formula-54/metadata.json | 12 ++++ OCaml/formula-55/.dockerignore | 2 + OCaml/formula-55/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-55/buggy/src.ml | 0 OCaml/formula-55/buggy/testcases | 20 +++++++ OCaml/formula-55/metadata.json | 12 ++++ OCaml/formula-56/.dockerignore | 2 + OCaml/formula-56/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-56/buggy/src.ml | 2 +- OCaml/formula-56/buggy/testcases | 20 +++++++ OCaml/formula-56/metadata.json | 12 ++++ OCaml/formula-57/.dockerignore | 2 + OCaml/formula-57/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-57/buggy/src.ml | 0 OCaml/formula-57/buggy/testcases | 20 +++++++ OCaml/formula-57/metadata.json | 12 ++++ OCaml/formula-58/.dockerignore | 2 + OCaml/formula-58/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-58/buggy/src.ml | 0 OCaml/formula-58/buggy/testcases | 20 +++++++ OCaml/formula-58/metadata.json | 12 ++++ OCaml/formula-59/.dockerignore | 2 + OCaml/formula-59/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-59/buggy/src.ml | 0 OCaml/formula-59/buggy/testcases | 20 +++++++ OCaml/formula-59/metadata.json | 12 ++++ OCaml/formula-6/.dockerignore | 2 + OCaml/formula-6/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-6/buggy/src.ml | 0 OCaml/formula-6/buggy/testcases | 20 +++++++ OCaml/formula-6/metadata.json | 12 ++++ OCaml/formula-60/.dockerignore | 2 + OCaml/formula-60/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-60/buggy/src.ml | 0 OCaml/formula-60/buggy/testcases | 20 +++++++ OCaml/formula-60/metadata.json | 12 ++++ OCaml/formula-61/.dockerignore | 2 + OCaml/formula-61/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-61/buggy/src.ml | 0 OCaml/formula-61/buggy/testcases | 20 +++++++ OCaml/formula-61/metadata.json | 12 ++++ OCaml/formula-62/.dockerignore | 2 + OCaml/formula-62/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-62/buggy/src.ml | 0 OCaml/formula-62/buggy/testcases | 20 +++++++ OCaml/formula-62/metadata.json | 12 ++++ OCaml/formula-63/.dockerignore | 2 + OCaml/formula-63/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-63/buggy/src.ml | 0 OCaml/formula-63/buggy/testcases | 20 +++++++ OCaml/formula-63/metadata.json | 12 ++++ OCaml/formula-64/.dockerignore | 2 + OCaml/formula-64/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-64/buggy/src.ml | 0 OCaml/formula-64/buggy/testcases | 20 +++++++ OCaml/formula-64/metadata.json | 12 ++++ OCaml/formula-65/.dockerignore | 2 + OCaml/formula-65/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-65/buggy/src.ml | 0 OCaml/formula-65/buggy/testcases | 20 +++++++ OCaml/formula-65/metadata.json | 12 ++++ OCaml/formula-66/.dockerignore | 2 + OCaml/formula-66/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-66/buggy/src.ml | 0 OCaml/formula-66/buggy/testcases | 20 +++++++ OCaml/formula-66/metadata.json | 12 ++++ OCaml/formula-67/.dockerignore | 2 + OCaml/formula-67/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-67/buggy/src.ml | 0 OCaml/formula-67/buggy/testcases | 20 +++++++ OCaml/formula-67/metadata.json | 12 ++++ OCaml/formula-68/.dockerignore | 2 + OCaml/formula-68/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-68/buggy/src.ml | 0 OCaml/formula-68/buggy/testcases | 20 +++++++ OCaml/formula-68/metadata.json | 12 ++++ OCaml/formula-69/.dockerignore | 2 + OCaml/formula-69/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-69/buggy/src.ml | 0 OCaml/formula-69/buggy/testcases | 20 +++++++ OCaml/formula-69/metadata.json | 12 ++++ OCaml/formula-7/.dockerignore | 2 + OCaml/formula-7/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-7/buggy/src.ml | 0 OCaml/formula-7/buggy/testcases | 20 +++++++ OCaml/formula-7/metadata.json | 12 ++++ OCaml/formula-70/.dockerignore | 2 + OCaml/formula-70/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-70/buggy/src.ml | 0 OCaml/formula-70/buggy/testcases | 20 +++++++ OCaml/formula-70/metadata.json | 12 ++++ OCaml/formula-71/.dockerignore | 2 + OCaml/formula-71/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-71/buggy/src.ml | 0 OCaml/formula-71/buggy/testcases | 20 +++++++ OCaml/formula-71/metadata.json | 12 ++++ OCaml/formula-72/.dockerignore | 2 + OCaml/formula-72/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-72/buggy/src.ml | 0 OCaml/formula-72/buggy/testcases | 20 +++++++ OCaml/formula-72/metadata.json | 12 ++++ OCaml/formula-73/.dockerignore | 2 + OCaml/formula-73/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-73/buggy/src.ml | 0 OCaml/formula-73/buggy/testcases | 20 +++++++ OCaml/formula-73/metadata.json | 12 ++++ OCaml/formula-74/.dockerignore | 2 + OCaml/formula-74/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-74/buggy/src.ml | 0 OCaml/formula-74/buggy/testcases | 20 +++++++ OCaml/formula-74/metadata.json | 12 ++++ OCaml/formula-75/.dockerignore | 2 + OCaml/formula-75/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-75/buggy/src.ml | 0 OCaml/formula-75/buggy/testcases | 20 +++++++ OCaml/formula-75/metadata.json | 12 ++++ OCaml/formula-76/.dockerignore | 2 + OCaml/formula-76/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-76/buggy/src.ml | 0 OCaml/formula-76/buggy/testcases | 20 +++++++ OCaml/formula-76/metadata.json | 12 ++++ OCaml/formula-77/.dockerignore | 2 + OCaml/formula-77/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-77/buggy/src.ml | 0 OCaml/formula-77/buggy/testcases | 20 +++++++ OCaml/formula-77/metadata.json | 12 ++++ OCaml/formula-78/.dockerignore | 2 + OCaml/formula-78/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-78/buggy/src.ml | 0 OCaml/formula-78/buggy/testcases | 20 +++++++ OCaml/formula-78/metadata.json | 12 ++++ OCaml/formula-79/.dockerignore | 2 + OCaml/formula-79/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-79/buggy/src.ml | 0 OCaml/formula-79/buggy/testcases | 20 +++++++ OCaml/formula-79/metadata.json | 12 ++++ OCaml/formula-8/.dockerignore | 2 + OCaml/formula-8/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-8/buggy/src.ml | 0 OCaml/formula-8/buggy/testcases | 20 +++++++ OCaml/formula-8/metadata.json | 12 ++++ OCaml/formula-80/.dockerignore | 2 + OCaml/formula-80/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-80/buggy/src.ml | 0 OCaml/formula-80/buggy/testcases | 20 +++++++ OCaml/formula-80/metadata.json | 12 ++++ OCaml/formula-81/.dockerignore | 2 + OCaml/formula-81/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-81/buggy/src.ml | 0 OCaml/formula-81/buggy/testcases | 20 +++++++ OCaml/formula-81/metadata.json | 12 ++++ OCaml/formula-82/.dockerignore | 2 + OCaml/formula-82/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-82/buggy/src.ml | 0 OCaml/formula-82/buggy/testcases | 20 +++++++ OCaml/formula-82/metadata.json | 12 ++++ OCaml/formula-83/.dockerignore | 2 + OCaml/formula-83/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-83/buggy/src.ml | 0 OCaml/formula-83/buggy/testcases | 20 +++++++ OCaml/formula-83/metadata.json | 12 ++++ OCaml/formula-84/.dockerignore | 2 + OCaml/formula-84/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-84/buggy/src.ml | 0 OCaml/formula-84/buggy/testcases | 20 +++++++ OCaml/formula-84/metadata.json | 12 ++++ OCaml/formula-85/.dockerignore | 2 + OCaml/formula-85/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-85/buggy/src.ml | 0 OCaml/formula-85/buggy/testcases | 20 +++++++ OCaml/formula-85/metadata.json | 12 ++++ OCaml/formula-86/.dockerignore | 2 + OCaml/formula-86/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-86/buggy/src.ml | 0 OCaml/formula-86/buggy/testcases | 20 +++++++ OCaml/formula-86/metadata.json | 12 ++++ OCaml/formula-87/.dockerignore | 2 + OCaml/formula-87/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-87/buggy/src.ml | 0 OCaml/formula-87/buggy/testcases | 20 +++++++ OCaml/formula-87/metadata.json | 12 ++++ OCaml/formula-88/.dockerignore | 2 + OCaml/formula-88/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-88/buggy/src.ml | 0 OCaml/formula-88/buggy/testcases | 20 +++++++ OCaml/formula-88/metadata.json | 12 ++++ OCaml/formula-89/.dockerignore | 2 + OCaml/formula-89/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-89/buggy/src.ml | 0 OCaml/formula-89/buggy/testcases | 20 +++++++ OCaml/formula-89/metadata.json | 12 ++++ OCaml/formula-9/.dockerignore | 2 + OCaml/formula-9/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-9/buggy/src.ml | 0 OCaml/formula-9/buggy/testcases | 20 +++++++ OCaml/formula-9/metadata.json | 12 ++++ OCaml/formula-90/.dockerignore | 2 + OCaml/formula-90/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-90/buggy/src.ml | 0 OCaml/formula-90/buggy/testcases | 20 +++++++ OCaml/formula-90/metadata.json | 12 ++++ OCaml/formula-91/.dockerignore | 2 + OCaml/formula-91/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-91/buggy/src.ml | 0 OCaml/formula-91/buggy/testcases | 20 +++++++ OCaml/formula-91/metadata.json | 12 ++++ OCaml/formula-92/.dockerignore | 2 + OCaml/formula-92/Dockerfile | 6 ++ OCaml/formula-92/buggy/src.ml | 49 +++++++++++++++ OCaml/formula-92/buggy/testcases | 20 +++++++ OCaml/formula-92/metadata.json | 12 ++++ OCaml/formula-93/.dockerignore | 2 + OCaml/formula-93/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-93/buggy/src.ml | 0 OCaml/formula-93/buggy/testcases | 20 +++++++ OCaml/formula-93/metadata.json | 12 ++++ OCaml/formula-94/.dockerignore | 2 + OCaml/formula-94/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-94/buggy/src.ml | 0 OCaml/formula-94/buggy/testcases | 20 +++++++ OCaml/formula-94/metadata.json | 12 ++++ OCaml/formula-95/.dockerignore | 2 + OCaml/formula-95/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-95/buggy/src.ml | 0 OCaml/formula-95/buggy/testcases | 20 +++++++ OCaml/formula-95/metadata.json | 12 ++++ OCaml/formula-96/.dockerignore | 2 + OCaml/formula-96/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-96/buggy/src.ml | 0 OCaml/formula-96/buggy/testcases | 20 +++++++ OCaml/formula-96/metadata.json | 12 ++++ OCaml/formula-97/.dockerignore | 2 + OCaml/formula-97/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-97/buggy/src.ml | 0 OCaml/formula-97/buggy/testcases | 20 +++++++ OCaml/formula-97/metadata.json | 12 ++++ OCaml/formula-98/.dockerignore | 2 + OCaml/formula-98/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-98/buggy/src.ml | 0 OCaml/formula-98/buggy/testcases | 20 +++++++ OCaml/formula-98/metadata.json | 12 ++++ OCaml/formula-99/.dockerignore | 2 + OCaml/formula-99/Dockerfile | 6 ++ .../bug.ml => OCaml/formula-99/buggy/src.ml | 0 OCaml/formula-99/buggy/testcases | 20 +++++++ OCaml/formula-99/metadata.json | 12 ++++ functional/OCaml/formula/bugs/bug_20/bug.ml | 40 ------------- functional/OCaml/formula/bugs/bug_92/bug.ml | 59 ------------------- 502 files changed, 4065 insertions(+), 100 deletions(-) create mode 100644 OCaml/formula-1/.dockerignore create mode 100644 OCaml/formula-1/Dockerfile rename functional/OCaml/formula/bugs/bug_1/bug.ml => OCaml/formula-1/buggy/src.ml (100%) rename {functional/OCaml/formula/src => OCaml/formula-1/buggy}/testcases (100%) create mode 100644 OCaml/formula-1/metadata.json create mode 100644 OCaml/formula-10/.dockerignore create mode 100644 OCaml/formula-10/Dockerfile rename functional/OCaml/formula/bugs/bug_10/bug.ml => OCaml/formula-10/buggy/src.ml (100%) create mode 100644 OCaml/formula-10/buggy/testcases create mode 100644 OCaml/formula-10/metadata.json create mode 100644 OCaml/formula-100/.dockerignore create mode 100644 OCaml/formula-100/Dockerfile rename functional/OCaml/formula/bugs/bug_100/bug.ml => OCaml/formula-100/buggy/src.ml (100%) create mode 100644 OCaml/formula-100/buggy/testcases create mode 100644 OCaml/formula-100/metadata.json create mode 100644 OCaml/formula-11/.dockerignore create mode 100644 OCaml/formula-11/Dockerfile rename functional/OCaml/formula/bugs/bug_11/bug.ml => OCaml/formula-11/buggy/src.ml (100%) create mode 100644 OCaml/formula-11/buggy/testcases create mode 100644 OCaml/formula-11/metadata.json create mode 100644 OCaml/formula-12/.dockerignore create mode 100644 OCaml/formula-12/Dockerfile rename functional/OCaml/formula/bugs/bug_12/bug.ml => OCaml/formula-12/buggy/src.ml (100%) create mode 100644 OCaml/formula-12/buggy/testcases create mode 100644 OCaml/formula-12/metadata.json create mode 100644 OCaml/formula-13/.dockerignore create mode 100644 OCaml/formula-13/Dockerfile rename functional/OCaml/formula/bugs/bug_13/bug.ml => OCaml/formula-13/buggy/src.ml (100%) create mode 100644 OCaml/formula-13/buggy/testcases create mode 100644 OCaml/formula-13/metadata.json create mode 100644 OCaml/formula-14/.dockerignore create mode 100644 OCaml/formula-14/Dockerfile rename functional/OCaml/formula/bugs/bug_14/bug.ml => OCaml/formula-14/buggy/src.ml (100%) create mode 100644 OCaml/formula-14/buggy/testcases create mode 100644 OCaml/formula-14/metadata.json create mode 100644 OCaml/formula-15/.dockerignore create mode 100644 OCaml/formula-15/Dockerfile rename functional/OCaml/formula/bugs/bug_15/bug.ml => OCaml/formula-15/buggy/src.ml (100%) create mode 100644 OCaml/formula-15/buggy/testcases create mode 100644 OCaml/formula-15/metadata.json create mode 100644 OCaml/formula-16/.dockerignore create mode 100644 OCaml/formula-16/Dockerfile rename functional/OCaml/formula/bugs/bug_16/bug.ml => OCaml/formula-16/buggy/src.ml (100%) create mode 100644 OCaml/formula-16/buggy/testcases create mode 100644 OCaml/formula-16/metadata.json create mode 100644 OCaml/formula-17/.dockerignore create mode 100644 OCaml/formula-17/Dockerfile rename functional/OCaml/formula/bugs/bug_17/bug.ml => OCaml/formula-17/buggy/src.ml (100%) create mode 100644 OCaml/formula-17/buggy/testcases create mode 100644 OCaml/formula-17/metadata.json create mode 100644 OCaml/formula-18/.dockerignore create mode 100644 OCaml/formula-18/Dockerfile rename functional/OCaml/formula/bugs/bug_18/bug.ml => OCaml/formula-18/buggy/src.ml (100%) create mode 100644 OCaml/formula-18/buggy/testcases create mode 100644 OCaml/formula-18/metadata.json create mode 100644 OCaml/formula-19/.dockerignore create mode 100644 OCaml/formula-19/Dockerfile rename functional/OCaml/formula/bugs/bug_19/bug.ml => OCaml/formula-19/buggy/src.ml (100%) create mode 100644 OCaml/formula-19/buggy/testcases create mode 100644 OCaml/formula-19/metadata.json create mode 100644 OCaml/formula-2/.dockerignore create mode 100644 OCaml/formula-2/Dockerfile rename functional/OCaml/formula/bugs/bug_2/bug.ml => OCaml/formula-2/buggy/src.ml (100%) create mode 100644 OCaml/formula-2/buggy/testcases create mode 100644 OCaml/formula-2/metadata.json create mode 100644 OCaml/formula-20/.dockerignore create mode 100644 OCaml/formula-20/Dockerfile create mode 100644 OCaml/formula-20/buggy/src.ml create mode 100644 OCaml/formula-20/buggy/testcases create mode 100644 OCaml/formula-20/metadata.json create mode 100644 OCaml/formula-21/.dockerignore create mode 100644 OCaml/formula-21/Dockerfile rename functional/OCaml/formula/bugs/bug_21/bug.ml => OCaml/formula-21/buggy/src.ml (100%) create mode 100644 OCaml/formula-21/buggy/testcases create mode 100644 OCaml/formula-21/metadata.json create mode 100644 OCaml/formula-22/.dockerignore create mode 100644 OCaml/formula-22/Dockerfile rename functional/OCaml/formula/bugs/bug_22/bug.ml => OCaml/formula-22/buggy/src.ml (100%) create mode 100644 OCaml/formula-22/buggy/testcases create mode 100644 OCaml/formula-22/metadata.json create mode 100644 OCaml/formula-23/.dockerignore create mode 100644 OCaml/formula-23/Dockerfile rename functional/OCaml/formula/bugs/bug_23/bug.ml => OCaml/formula-23/buggy/src.ml (100%) create mode 100644 OCaml/formula-23/buggy/testcases create mode 100644 OCaml/formula-23/metadata.json create mode 100644 OCaml/formula-24/.dockerignore create mode 100644 OCaml/formula-24/Dockerfile rename functional/OCaml/formula/bugs/bug_24/bug.ml => OCaml/formula-24/buggy/src.ml (100%) create mode 100644 OCaml/formula-24/buggy/testcases create mode 100644 OCaml/formula-24/metadata.json create mode 100644 OCaml/formula-25/.dockerignore create mode 100644 OCaml/formula-25/Dockerfile rename functional/OCaml/formula/bugs/bug_25/bug.ml => OCaml/formula-25/buggy/src.ml (100%) create mode 100644 OCaml/formula-25/buggy/testcases create mode 100644 OCaml/formula-25/metadata.json create mode 100644 OCaml/formula-26/.dockerignore create mode 100644 OCaml/formula-26/Dockerfile rename functional/OCaml/formula/bugs/bug_26/bug.ml => OCaml/formula-26/buggy/src.ml (100%) create mode 100644 OCaml/formula-26/buggy/testcases create mode 100644 OCaml/formula-26/metadata.json create mode 100644 OCaml/formula-27/.dockerignore create mode 100644 OCaml/formula-27/Dockerfile rename functional/OCaml/formula/bugs/bug_27/bug.ml => OCaml/formula-27/buggy/src.ml (100%) create mode 100644 OCaml/formula-27/buggy/testcases create mode 100644 OCaml/formula-27/metadata.json create mode 100644 OCaml/formula-28/.dockerignore create mode 100644 OCaml/formula-28/Dockerfile rename functional/OCaml/formula/bugs/bug_28/bug.ml => OCaml/formula-28/buggy/src.ml (100%) create mode 100644 OCaml/formula-28/buggy/testcases create mode 100644 OCaml/formula-28/metadata.json create mode 100644 OCaml/formula-29/.dockerignore create mode 100644 OCaml/formula-29/Dockerfile rename functional/OCaml/formula/bugs/bug_29/bug.ml => OCaml/formula-29/buggy/src.ml (100%) create mode 100644 OCaml/formula-29/buggy/testcases create mode 100644 OCaml/formula-29/metadata.json create mode 100644 OCaml/formula-3/.dockerignore create mode 100644 OCaml/formula-3/Dockerfile rename functional/OCaml/formula/bugs/bug_3/bug.ml => OCaml/formula-3/buggy/src.ml (100%) create mode 100644 OCaml/formula-3/buggy/testcases create mode 100644 OCaml/formula-3/metadata.json create mode 100644 OCaml/formula-30/.dockerignore create mode 100644 OCaml/formula-30/Dockerfile rename functional/OCaml/formula/bugs/bug_30/bug.ml => OCaml/formula-30/buggy/src.ml (100%) create mode 100644 OCaml/formula-30/buggy/testcases create mode 100644 OCaml/formula-30/metadata.json create mode 100644 OCaml/formula-31/.dockerignore create mode 100644 OCaml/formula-31/Dockerfile rename functional/OCaml/formula/bugs/bug_31/bug.ml => OCaml/formula-31/buggy/src.ml (100%) create mode 100644 OCaml/formula-31/buggy/testcases create mode 100644 OCaml/formula-31/metadata.json create mode 100644 OCaml/formula-32/.dockerignore create mode 100644 OCaml/formula-32/Dockerfile rename functional/OCaml/formula/bugs/bug_32/bug.ml => OCaml/formula-32/buggy/src.ml (100%) create mode 100644 OCaml/formula-32/buggy/testcases create mode 100644 OCaml/formula-32/metadata.json create mode 100644 OCaml/formula-33/.dockerignore create mode 100644 OCaml/formula-33/Dockerfile rename functional/OCaml/formula/bugs/bug_33/bug.ml => OCaml/formula-33/buggy/src.ml (100%) create mode 100644 OCaml/formula-33/buggy/testcases create mode 100644 OCaml/formula-33/metadata.json create mode 100644 OCaml/formula-34/.dockerignore create mode 100644 OCaml/formula-34/Dockerfile rename functional/OCaml/formula/bugs/bug_34/bug.ml => OCaml/formula-34/buggy/src.ml (100%) create mode 100644 OCaml/formula-34/buggy/testcases create mode 100644 OCaml/formula-34/metadata.json create mode 100644 OCaml/formula-35/.dockerignore create mode 100644 OCaml/formula-35/Dockerfile rename functional/OCaml/formula/bugs/bug_35/bug.ml => OCaml/formula-35/buggy/src.ml (100%) create mode 100644 OCaml/formula-35/buggy/testcases create mode 100644 OCaml/formula-35/metadata.json create mode 100644 OCaml/formula-36/.dockerignore create mode 100644 OCaml/formula-36/Dockerfile rename functional/OCaml/formula/bugs/bug_36/bug.ml => OCaml/formula-36/buggy/src.ml (100%) create mode 100644 OCaml/formula-36/buggy/testcases create mode 100644 OCaml/formula-36/metadata.json create mode 100644 OCaml/formula-37/.dockerignore create mode 100644 OCaml/formula-37/Dockerfile rename functional/OCaml/formula/bugs/bug_37/bug.ml => OCaml/formula-37/buggy/src.ml (100%) create mode 100644 OCaml/formula-37/buggy/testcases create mode 100644 OCaml/formula-37/metadata.json create mode 100644 OCaml/formula-38/.dockerignore create mode 100644 OCaml/formula-38/Dockerfile rename functional/OCaml/formula/bugs/bug_38/bug.ml => OCaml/formula-38/buggy/src.ml (100%) create mode 100644 OCaml/formula-38/buggy/testcases create mode 100644 OCaml/formula-38/metadata.json create mode 100644 OCaml/formula-39/.dockerignore create mode 100644 OCaml/formula-39/Dockerfile rename functional/OCaml/formula/bugs/bug_39/bug.ml => OCaml/formula-39/buggy/src.ml (100%) create mode 100644 OCaml/formula-39/buggy/testcases create mode 100644 OCaml/formula-39/metadata.json create mode 100644 OCaml/formula-4/.dockerignore create mode 100644 OCaml/formula-4/Dockerfile rename functional/OCaml/formula/bugs/bug_4/bug.ml => OCaml/formula-4/buggy/src.ml (100%) create mode 100644 OCaml/formula-4/buggy/testcases create mode 100644 OCaml/formula-4/metadata.json create mode 100644 OCaml/formula-40/.dockerignore create mode 100644 OCaml/formula-40/Dockerfile rename functional/OCaml/formula/bugs/bug_40/bug.ml => OCaml/formula-40/buggy/src.ml (100%) create mode 100644 OCaml/formula-40/buggy/testcases create mode 100644 OCaml/formula-40/metadata.json create mode 100644 OCaml/formula-41/.dockerignore create mode 100644 OCaml/formula-41/Dockerfile rename functional/OCaml/formula/bugs/bug_41/bug.ml => OCaml/formula-41/buggy/src.ml (100%) create mode 100644 OCaml/formula-41/buggy/testcases create mode 100644 OCaml/formula-41/metadata.json create mode 100644 OCaml/formula-42/.dockerignore create mode 100644 OCaml/formula-42/Dockerfile rename functional/OCaml/formula/bugs/bug_42/bug.ml => OCaml/formula-42/buggy/src.ml (100%) create mode 100644 OCaml/formula-42/buggy/testcases create mode 100644 OCaml/formula-42/metadata.json create mode 100644 OCaml/formula-43/.dockerignore create mode 100644 OCaml/formula-43/Dockerfile rename functional/OCaml/formula/bugs/bug_43/bug.ml => OCaml/formula-43/buggy/src.ml (100%) create mode 100644 OCaml/formula-43/buggy/testcases create mode 100644 OCaml/formula-43/metadata.json create mode 100644 OCaml/formula-44/.dockerignore create mode 100644 OCaml/formula-44/Dockerfile rename functional/OCaml/formula/bugs/bug_44/bug.ml => OCaml/formula-44/buggy/src.ml (100%) create mode 100644 OCaml/formula-44/buggy/testcases create mode 100644 OCaml/formula-44/metadata.json create mode 100644 OCaml/formula-45/.dockerignore create mode 100644 OCaml/formula-45/Dockerfile rename functional/OCaml/formula/bugs/bug_45/bug.ml => OCaml/formula-45/buggy/src.ml (100%) create mode 100644 OCaml/formula-45/buggy/testcases create mode 100644 OCaml/formula-45/metadata.json create mode 100644 OCaml/formula-46/.dockerignore create mode 100644 OCaml/formula-46/Dockerfile rename functional/OCaml/formula/bugs/bug_46/bug.ml => OCaml/formula-46/buggy/src.ml (100%) create mode 100644 OCaml/formula-46/buggy/testcases create mode 100644 OCaml/formula-46/metadata.json create mode 100644 OCaml/formula-47/.dockerignore create mode 100644 OCaml/formula-47/Dockerfile rename functional/OCaml/formula/bugs/bug_47/bug.ml => OCaml/formula-47/buggy/src.ml (100%) create mode 100644 OCaml/formula-47/buggy/testcases create mode 100644 OCaml/formula-47/metadata.json create mode 100644 OCaml/formula-48/.dockerignore create mode 100644 OCaml/formula-48/Dockerfile rename functional/OCaml/formula/bugs/bug_48/bug.ml => OCaml/formula-48/buggy/src.ml (100%) create mode 100644 OCaml/formula-48/buggy/testcases create mode 100644 OCaml/formula-48/metadata.json create mode 100644 OCaml/formula-49/.dockerignore create mode 100644 OCaml/formula-49/Dockerfile rename functional/OCaml/formula/bugs/bug_49/bug.ml => OCaml/formula-49/buggy/src.ml (100%) create mode 100644 OCaml/formula-49/buggy/testcases create mode 100644 OCaml/formula-49/metadata.json create mode 100644 OCaml/formula-5/.dockerignore create mode 100644 OCaml/formula-5/Dockerfile rename functional/OCaml/formula/bugs/bug_5/bug.ml => OCaml/formula-5/buggy/src.ml (100%) create mode 100644 OCaml/formula-5/buggy/testcases create mode 100644 OCaml/formula-5/metadata.json create mode 100644 OCaml/formula-50/.dockerignore create mode 100644 OCaml/formula-50/Dockerfile rename functional/OCaml/formula/bugs/bug_50/bug.ml => OCaml/formula-50/buggy/src.ml (100%) create mode 100644 OCaml/formula-50/buggy/testcases create mode 100644 OCaml/formula-50/metadata.json create mode 100644 OCaml/formula-51/.dockerignore create mode 100644 OCaml/formula-51/Dockerfile rename functional/OCaml/formula/bugs/bug_51/bug.ml => OCaml/formula-51/buggy/src.ml (100%) create mode 100644 OCaml/formula-51/buggy/testcases create mode 100644 OCaml/formula-51/metadata.json create mode 100644 OCaml/formula-52/.dockerignore create mode 100644 OCaml/formula-52/Dockerfile rename functional/OCaml/formula/bugs/bug_52/bug.ml => OCaml/formula-52/buggy/src.ml (100%) create mode 100644 OCaml/formula-52/buggy/testcases create mode 100644 OCaml/formula-52/metadata.json create mode 100644 OCaml/formula-53/.dockerignore create mode 100644 OCaml/formula-53/Dockerfile rename functional/OCaml/formula/bugs/bug_53/bug.ml => OCaml/formula-53/buggy/src.ml (100%) create mode 100644 OCaml/formula-53/buggy/testcases create mode 100644 OCaml/formula-53/metadata.json create mode 100644 OCaml/formula-54/.dockerignore create mode 100644 OCaml/formula-54/Dockerfile rename functional/OCaml/formula/bugs/bug_54/bug.ml => OCaml/formula-54/buggy/src.ml (100%) create mode 100644 OCaml/formula-54/buggy/testcases create mode 100644 OCaml/formula-54/metadata.json create mode 100644 OCaml/formula-55/.dockerignore create mode 100644 OCaml/formula-55/Dockerfile rename functional/OCaml/formula/bugs/bug_55/bug.ml => OCaml/formula-55/buggy/src.ml (100%) create mode 100644 OCaml/formula-55/buggy/testcases create mode 100644 OCaml/formula-55/metadata.json create mode 100644 OCaml/formula-56/.dockerignore create mode 100644 OCaml/formula-56/Dockerfile rename functional/OCaml/formula/bugs/bug_56/bug.ml => OCaml/formula-56/buggy/src.ml (95%) create mode 100644 OCaml/formula-56/buggy/testcases create mode 100644 OCaml/formula-56/metadata.json create mode 100644 OCaml/formula-57/.dockerignore create mode 100644 OCaml/formula-57/Dockerfile rename functional/OCaml/formula/bugs/bug_57/bug.ml => OCaml/formula-57/buggy/src.ml (100%) create mode 100644 OCaml/formula-57/buggy/testcases create mode 100644 OCaml/formula-57/metadata.json create mode 100644 OCaml/formula-58/.dockerignore create mode 100644 OCaml/formula-58/Dockerfile rename functional/OCaml/formula/bugs/bug_58/bug.ml => OCaml/formula-58/buggy/src.ml (100%) create mode 100644 OCaml/formula-58/buggy/testcases create mode 100644 OCaml/formula-58/metadata.json create mode 100644 OCaml/formula-59/.dockerignore create mode 100644 OCaml/formula-59/Dockerfile rename functional/OCaml/formula/bugs/bug_59/bug.ml => OCaml/formula-59/buggy/src.ml (100%) create mode 100644 OCaml/formula-59/buggy/testcases create mode 100644 OCaml/formula-59/metadata.json create mode 100644 OCaml/formula-6/.dockerignore create mode 100644 OCaml/formula-6/Dockerfile rename functional/OCaml/formula/bugs/bug_6/bug.ml => OCaml/formula-6/buggy/src.ml (100%) create mode 100644 OCaml/formula-6/buggy/testcases create mode 100644 OCaml/formula-6/metadata.json create mode 100644 OCaml/formula-60/.dockerignore create mode 100644 OCaml/formula-60/Dockerfile rename functional/OCaml/formula/bugs/bug_60/bug.ml => OCaml/formula-60/buggy/src.ml (100%) create mode 100644 OCaml/formula-60/buggy/testcases create mode 100644 OCaml/formula-60/metadata.json create mode 100644 OCaml/formula-61/.dockerignore create mode 100644 OCaml/formula-61/Dockerfile rename functional/OCaml/formula/bugs/bug_61/bug.ml => OCaml/formula-61/buggy/src.ml (100%) create mode 100644 OCaml/formula-61/buggy/testcases create mode 100644 OCaml/formula-61/metadata.json create mode 100644 OCaml/formula-62/.dockerignore create mode 100644 OCaml/formula-62/Dockerfile rename functional/OCaml/formula/bugs/bug_62/bug.ml => OCaml/formula-62/buggy/src.ml (100%) create mode 100644 OCaml/formula-62/buggy/testcases create mode 100644 OCaml/formula-62/metadata.json create mode 100644 OCaml/formula-63/.dockerignore create mode 100644 OCaml/formula-63/Dockerfile rename functional/OCaml/formula/bugs/bug_63/bug.ml => OCaml/formula-63/buggy/src.ml (100%) create mode 100644 OCaml/formula-63/buggy/testcases create mode 100644 OCaml/formula-63/metadata.json create mode 100644 OCaml/formula-64/.dockerignore create mode 100644 OCaml/formula-64/Dockerfile rename functional/OCaml/formula/bugs/bug_64/bug.ml => OCaml/formula-64/buggy/src.ml (100%) create mode 100644 OCaml/formula-64/buggy/testcases create mode 100644 OCaml/formula-64/metadata.json create mode 100644 OCaml/formula-65/.dockerignore create mode 100644 OCaml/formula-65/Dockerfile rename functional/OCaml/formula/bugs/bug_65/bug.ml => OCaml/formula-65/buggy/src.ml (100%) create mode 100644 OCaml/formula-65/buggy/testcases create mode 100644 OCaml/formula-65/metadata.json create mode 100644 OCaml/formula-66/.dockerignore create mode 100644 OCaml/formula-66/Dockerfile rename functional/OCaml/formula/bugs/bug_66/bug.ml => OCaml/formula-66/buggy/src.ml (100%) create mode 100644 OCaml/formula-66/buggy/testcases create mode 100644 OCaml/formula-66/metadata.json create mode 100644 OCaml/formula-67/.dockerignore create mode 100644 OCaml/formula-67/Dockerfile rename functional/OCaml/formula/bugs/bug_67/bug.ml => OCaml/formula-67/buggy/src.ml (100%) create mode 100644 OCaml/formula-67/buggy/testcases create mode 100644 OCaml/formula-67/metadata.json create mode 100644 OCaml/formula-68/.dockerignore create mode 100644 OCaml/formula-68/Dockerfile rename functional/OCaml/formula/bugs/bug_68/bug.ml => OCaml/formula-68/buggy/src.ml (100%) create mode 100644 OCaml/formula-68/buggy/testcases create mode 100644 OCaml/formula-68/metadata.json create mode 100644 OCaml/formula-69/.dockerignore create mode 100644 OCaml/formula-69/Dockerfile rename functional/OCaml/formula/bugs/bug_69/bug.ml => OCaml/formula-69/buggy/src.ml (100%) create mode 100644 OCaml/formula-69/buggy/testcases create mode 100644 OCaml/formula-69/metadata.json create mode 100644 OCaml/formula-7/.dockerignore create mode 100644 OCaml/formula-7/Dockerfile rename functional/OCaml/formula/bugs/bug_7/bug.ml => OCaml/formula-7/buggy/src.ml (100%) create mode 100644 OCaml/formula-7/buggy/testcases create mode 100644 OCaml/formula-7/metadata.json create mode 100644 OCaml/formula-70/.dockerignore create mode 100644 OCaml/formula-70/Dockerfile rename functional/OCaml/formula/bugs/bug_70/bug.ml => OCaml/formula-70/buggy/src.ml (100%) create mode 100644 OCaml/formula-70/buggy/testcases create mode 100644 OCaml/formula-70/metadata.json create mode 100644 OCaml/formula-71/.dockerignore create mode 100644 OCaml/formula-71/Dockerfile rename functional/OCaml/formula/bugs/bug_71/bug.ml => OCaml/formula-71/buggy/src.ml (100%) create mode 100644 OCaml/formula-71/buggy/testcases create mode 100644 OCaml/formula-71/metadata.json create mode 100644 OCaml/formula-72/.dockerignore create mode 100644 OCaml/formula-72/Dockerfile rename functional/OCaml/formula/bugs/bug_72/bug.ml => OCaml/formula-72/buggy/src.ml (100%) create mode 100644 OCaml/formula-72/buggy/testcases create mode 100644 OCaml/formula-72/metadata.json create mode 100644 OCaml/formula-73/.dockerignore create mode 100644 OCaml/formula-73/Dockerfile rename functional/OCaml/formula/bugs/bug_73/bug.ml => OCaml/formula-73/buggy/src.ml (100%) create mode 100644 OCaml/formula-73/buggy/testcases create mode 100644 OCaml/formula-73/metadata.json create mode 100644 OCaml/formula-74/.dockerignore create mode 100644 OCaml/formula-74/Dockerfile rename functional/OCaml/formula/bugs/bug_74/bug.ml => OCaml/formula-74/buggy/src.ml (100%) create mode 100644 OCaml/formula-74/buggy/testcases create mode 100644 OCaml/formula-74/metadata.json create mode 100644 OCaml/formula-75/.dockerignore create mode 100644 OCaml/formula-75/Dockerfile rename functional/OCaml/formula/bugs/bug_75/bug.ml => OCaml/formula-75/buggy/src.ml (100%) create mode 100644 OCaml/formula-75/buggy/testcases create mode 100644 OCaml/formula-75/metadata.json create mode 100644 OCaml/formula-76/.dockerignore create mode 100644 OCaml/formula-76/Dockerfile rename functional/OCaml/formula/bugs/bug_76/bug.ml => OCaml/formula-76/buggy/src.ml (100%) create mode 100644 OCaml/formula-76/buggy/testcases create mode 100644 OCaml/formula-76/metadata.json create mode 100644 OCaml/formula-77/.dockerignore create mode 100644 OCaml/formula-77/Dockerfile rename functional/OCaml/formula/bugs/bug_77/bug.ml => OCaml/formula-77/buggy/src.ml (100%) create mode 100644 OCaml/formula-77/buggy/testcases create mode 100644 OCaml/formula-77/metadata.json create mode 100644 OCaml/formula-78/.dockerignore create mode 100644 OCaml/formula-78/Dockerfile rename functional/OCaml/formula/bugs/bug_78/bug.ml => OCaml/formula-78/buggy/src.ml (100%) create mode 100644 OCaml/formula-78/buggy/testcases create mode 100644 OCaml/formula-78/metadata.json create mode 100644 OCaml/formula-79/.dockerignore create mode 100644 OCaml/formula-79/Dockerfile rename functional/OCaml/formula/bugs/bug_79/bug.ml => OCaml/formula-79/buggy/src.ml (100%) create mode 100644 OCaml/formula-79/buggy/testcases create mode 100644 OCaml/formula-79/metadata.json create mode 100644 OCaml/formula-8/.dockerignore create mode 100644 OCaml/formula-8/Dockerfile rename functional/OCaml/formula/bugs/bug_8/bug.ml => OCaml/formula-8/buggy/src.ml (100%) create mode 100644 OCaml/formula-8/buggy/testcases create mode 100644 OCaml/formula-8/metadata.json create mode 100644 OCaml/formula-80/.dockerignore create mode 100644 OCaml/formula-80/Dockerfile rename functional/OCaml/formula/bugs/bug_80/bug.ml => OCaml/formula-80/buggy/src.ml (100%) create mode 100644 OCaml/formula-80/buggy/testcases create mode 100644 OCaml/formula-80/metadata.json create mode 100644 OCaml/formula-81/.dockerignore create mode 100644 OCaml/formula-81/Dockerfile rename functional/OCaml/formula/bugs/bug_81/bug.ml => OCaml/formula-81/buggy/src.ml (100%) create mode 100644 OCaml/formula-81/buggy/testcases create mode 100644 OCaml/formula-81/metadata.json create mode 100644 OCaml/formula-82/.dockerignore create mode 100644 OCaml/formula-82/Dockerfile rename functional/OCaml/formula/bugs/bug_82/bug.ml => OCaml/formula-82/buggy/src.ml (100%) create mode 100644 OCaml/formula-82/buggy/testcases create mode 100644 OCaml/formula-82/metadata.json create mode 100644 OCaml/formula-83/.dockerignore create mode 100644 OCaml/formula-83/Dockerfile rename functional/OCaml/formula/bugs/bug_83/bug.ml => OCaml/formula-83/buggy/src.ml (100%) create mode 100644 OCaml/formula-83/buggy/testcases create mode 100644 OCaml/formula-83/metadata.json create mode 100644 OCaml/formula-84/.dockerignore create mode 100644 OCaml/formula-84/Dockerfile rename functional/OCaml/formula/bugs/bug_84/bug.ml => OCaml/formula-84/buggy/src.ml (100%) create mode 100644 OCaml/formula-84/buggy/testcases create mode 100644 OCaml/formula-84/metadata.json create mode 100644 OCaml/formula-85/.dockerignore create mode 100644 OCaml/formula-85/Dockerfile rename functional/OCaml/formula/bugs/bug_85/bug.ml => OCaml/formula-85/buggy/src.ml (100%) create mode 100644 OCaml/formula-85/buggy/testcases create mode 100644 OCaml/formula-85/metadata.json create mode 100644 OCaml/formula-86/.dockerignore create mode 100644 OCaml/formula-86/Dockerfile rename functional/OCaml/formula/bugs/bug_86/bug.ml => OCaml/formula-86/buggy/src.ml (100%) create mode 100644 OCaml/formula-86/buggy/testcases create mode 100644 OCaml/formula-86/metadata.json create mode 100644 OCaml/formula-87/.dockerignore create mode 100644 OCaml/formula-87/Dockerfile rename functional/OCaml/formula/bugs/bug_87/bug.ml => OCaml/formula-87/buggy/src.ml (100%) create mode 100644 OCaml/formula-87/buggy/testcases create mode 100644 OCaml/formula-87/metadata.json create mode 100644 OCaml/formula-88/.dockerignore create mode 100644 OCaml/formula-88/Dockerfile rename functional/OCaml/formula/bugs/bug_88/bug.ml => OCaml/formula-88/buggy/src.ml (100%) create mode 100644 OCaml/formula-88/buggy/testcases create mode 100644 OCaml/formula-88/metadata.json create mode 100644 OCaml/formula-89/.dockerignore create mode 100644 OCaml/formula-89/Dockerfile rename functional/OCaml/formula/bugs/bug_89/bug.ml => OCaml/formula-89/buggy/src.ml (100%) create mode 100644 OCaml/formula-89/buggy/testcases create mode 100644 OCaml/formula-89/metadata.json create mode 100644 OCaml/formula-9/.dockerignore create mode 100644 OCaml/formula-9/Dockerfile rename functional/OCaml/formula/bugs/bug_9/bug.ml => OCaml/formula-9/buggy/src.ml (100%) create mode 100644 OCaml/formula-9/buggy/testcases create mode 100644 OCaml/formula-9/metadata.json create mode 100644 OCaml/formula-90/.dockerignore create mode 100644 OCaml/formula-90/Dockerfile rename functional/OCaml/formula/bugs/bug_90/bug.ml => OCaml/formula-90/buggy/src.ml (100%) create mode 100644 OCaml/formula-90/buggy/testcases create mode 100644 OCaml/formula-90/metadata.json create mode 100644 OCaml/formula-91/.dockerignore create mode 100644 OCaml/formula-91/Dockerfile rename functional/OCaml/formula/bugs/bug_91/bug.ml => OCaml/formula-91/buggy/src.ml (100%) create mode 100644 OCaml/formula-91/buggy/testcases create mode 100644 OCaml/formula-91/metadata.json create mode 100644 OCaml/formula-92/.dockerignore create mode 100644 OCaml/formula-92/Dockerfile create mode 100644 OCaml/formula-92/buggy/src.ml create mode 100644 OCaml/formula-92/buggy/testcases create mode 100644 OCaml/formula-92/metadata.json create mode 100644 OCaml/formula-93/.dockerignore create mode 100644 OCaml/formula-93/Dockerfile rename functional/OCaml/formula/bugs/bug_93/bug.ml => OCaml/formula-93/buggy/src.ml (100%) create mode 100644 OCaml/formula-93/buggy/testcases create mode 100644 OCaml/formula-93/metadata.json create mode 100644 OCaml/formula-94/.dockerignore create mode 100644 OCaml/formula-94/Dockerfile rename functional/OCaml/formula/bugs/bug_94/bug.ml => OCaml/formula-94/buggy/src.ml (100%) create mode 100644 OCaml/formula-94/buggy/testcases create mode 100644 OCaml/formula-94/metadata.json create mode 100644 OCaml/formula-95/.dockerignore create mode 100644 OCaml/formula-95/Dockerfile rename functional/OCaml/formula/bugs/bug_95/bug.ml => OCaml/formula-95/buggy/src.ml (100%) create mode 100644 OCaml/formula-95/buggy/testcases create mode 100644 OCaml/formula-95/metadata.json create mode 100644 OCaml/formula-96/.dockerignore create mode 100644 OCaml/formula-96/Dockerfile rename functional/OCaml/formula/bugs/bug_96/bug.ml => OCaml/formula-96/buggy/src.ml (100%) create mode 100644 OCaml/formula-96/buggy/testcases create mode 100644 OCaml/formula-96/metadata.json create mode 100644 OCaml/formula-97/.dockerignore create mode 100644 OCaml/formula-97/Dockerfile rename functional/OCaml/formula/bugs/bug_97/bug.ml => OCaml/formula-97/buggy/src.ml (100%) create mode 100644 OCaml/formula-97/buggy/testcases create mode 100644 OCaml/formula-97/metadata.json create mode 100644 OCaml/formula-98/.dockerignore create mode 100644 OCaml/formula-98/Dockerfile rename functional/OCaml/formula/bugs/bug_98/bug.ml => OCaml/formula-98/buggy/src.ml (100%) create mode 100644 OCaml/formula-98/buggy/testcases create mode 100644 OCaml/formula-98/metadata.json create mode 100644 OCaml/formula-99/.dockerignore create mode 100644 OCaml/formula-99/Dockerfile rename functional/OCaml/formula/bugs/bug_99/bug.ml => OCaml/formula-99/buggy/src.ml (100%) create mode 100644 OCaml/formula-99/buggy/testcases create mode 100644 OCaml/formula-99/metadata.json delete mode 100644 functional/OCaml/formula/bugs/bug_20/bug.ml delete mode 100644 functional/OCaml/formula/bugs/bug_92/bug.ml diff --git a/OCaml/formula-1/.dockerignore b/OCaml/formula-1/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-1/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-1/Dockerfile b/OCaml/formula-1/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-1/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_1/bug.ml b/OCaml/formula-1/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_1/bug.ml rename to OCaml/formula-1/buggy/src.ml diff --git a/functional/OCaml/formula/src/testcases b/OCaml/formula-1/buggy/testcases similarity index 100% rename from functional/OCaml/formula/src/testcases rename to OCaml/formula-1/buggy/testcases diff --git a/OCaml/formula-1/metadata.json b/OCaml/formula-1/metadata.json new file mode 100644 index 000000000..491fc5fb1 --- /dev/null +++ b/OCaml/formula-1/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-1", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-10/.dockerignore b/OCaml/formula-10/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-10/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-10/Dockerfile b/OCaml/formula-10/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-10/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_10/bug.ml b/OCaml/formula-10/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_10/bug.ml rename to OCaml/formula-10/buggy/src.ml diff --git a/OCaml/formula-10/buggy/testcases b/OCaml/formula-10/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-10/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-10/metadata.json b/OCaml/formula-10/metadata.json new file mode 100644 index 000000000..3606f0924 --- /dev/null +++ b/OCaml/formula-10/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-10", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-100/.dockerignore b/OCaml/formula-100/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-100/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-100/Dockerfile b/OCaml/formula-100/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-100/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_100/bug.ml b/OCaml/formula-100/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_100/bug.ml rename to OCaml/formula-100/buggy/src.ml diff --git a/OCaml/formula-100/buggy/testcases b/OCaml/formula-100/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-100/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-100/metadata.json b/OCaml/formula-100/metadata.json new file mode 100644 index 000000000..057e10694 --- /dev/null +++ b/OCaml/formula-100/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-100", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-11/.dockerignore b/OCaml/formula-11/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-11/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-11/Dockerfile b/OCaml/formula-11/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-11/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_11/bug.ml b/OCaml/formula-11/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_11/bug.ml rename to OCaml/formula-11/buggy/src.ml diff --git a/OCaml/formula-11/buggy/testcases b/OCaml/formula-11/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-11/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-11/metadata.json b/OCaml/formula-11/metadata.json new file mode 100644 index 000000000..46a1a1b5d --- /dev/null +++ b/OCaml/formula-11/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-11", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-12/.dockerignore b/OCaml/formula-12/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-12/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-12/Dockerfile b/OCaml/formula-12/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-12/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_12/bug.ml b/OCaml/formula-12/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_12/bug.ml rename to OCaml/formula-12/buggy/src.ml diff --git a/OCaml/formula-12/buggy/testcases b/OCaml/formula-12/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-12/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-12/metadata.json b/OCaml/formula-12/metadata.json new file mode 100644 index 000000000..b4890e8a1 --- /dev/null +++ b/OCaml/formula-12/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-12", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-13/.dockerignore b/OCaml/formula-13/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-13/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-13/Dockerfile b/OCaml/formula-13/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-13/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_13/bug.ml b/OCaml/formula-13/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_13/bug.ml rename to OCaml/formula-13/buggy/src.ml diff --git a/OCaml/formula-13/buggy/testcases b/OCaml/formula-13/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-13/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-13/metadata.json b/OCaml/formula-13/metadata.json new file mode 100644 index 000000000..149f3689d --- /dev/null +++ b/OCaml/formula-13/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-13", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-14/.dockerignore b/OCaml/formula-14/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-14/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-14/Dockerfile b/OCaml/formula-14/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-14/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_14/bug.ml b/OCaml/formula-14/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_14/bug.ml rename to OCaml/formula-14/buggy/src.ml diff --git a/OCaml/formula-14/buggy/testcases b/OCaml/formula-14/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-14/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-14/metadata.json b/OCaml/formula-14/metadata.json new file mode 100644 index 000000000..af1c8e867 --- /dev/null +++ b/OCaml/formula-14/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-14", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-15/.dockerignore b/OCaml/formula-15/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-15/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-15/Dockerfile b/OCaml/formula-15/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-15/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_15/bug.ml b/OCaml/formula-15/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_15/bug.ml rename to OCaml/formula-15/buggy/src.ml diff --git a/OCaml/formula-15/buggy/testcases b/OCaml/formula-15/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-15/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-15/metadata.json b/OCaml/formula-15/metadata.json new file mode 100644 index 000000000..a689ecfdc --- /dev/null +++ b/OCaml/formula-15/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-15", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-16/.dockerignore b/OCaml/formula-16/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-16/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-16/Dockerfile b/OCaml/formula-16/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-16/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_16/bug.ml b/OCaml/formula-16/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_16/bug.ml rename to OCaml/formula-16/buggy/src.ml diff --git a/OCaml/formula-16/buggy/testcases b/OCaml/formula-16/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-16/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-16/metadata.json b/OCaml/formula-16/metadata.json new file mode 100644 index 000000000..2600e4b92 --- /dev/null +++ b/OCaml/formula-16/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-16", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-17/.dockerignore b/OCaml/formula-17/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-17/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-17/Dockerfile b/OCaml/formula-17/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-17/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_17/bug.ml b/OCaml/formula-17/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_17/bug.ml rename to OCaml/formula-17/buggy/src.ml diff --git a/OCaml/formula-17/buggy/testcases b/OCaml/formula-17/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-17/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-17/metadata.json b/OCaml/formula-17/metadata.json new file mode 100644 index 000000000..86b3d5f53 --- /dev/null +++ b/OCaml/formula-17/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-17", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-18/.dockerignore b/OCaml/formula-18/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-18/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-18/Dockerfile b/OCaml/formula-18/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-18/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_18/bug.ml b/OCaml/formula-18/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_18/bug.ml rename to OCaml/formula-18/buggy/src.ml diff --git a/OCaml/formula-18/buggy/testcases b/OCaml/formula-18/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-18/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-18/metadata.json b/OCaml/formula-18/metadata.json new file mode 100644 index 000000000..e21c676c6 --- /dev/null +++ b/OCaml/formula-18/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-18", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-19/.dockerignore b/OCaml/formula-19/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-19/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-19/Dockerfile b/OCaml/formula-19/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-19/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_19/bug.ml b/OCaml/formula-19/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_19/bug.ml rename to OCaml/formula-19/buggy/src.ml diff --git a/OCaml/formula-19/buggy/testcases b/OCaml/formula-19/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-19/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-19/metadata.json b/OCaml/formula-19/metadata.json new file mode 100644 index 000000000..578b1c2d1 --- /dev/null +++ b/OCaml/formula-19/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-19", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-2/.dockerignore b/OCaml/formula-2/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-2/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-2/Dockerfile b/OCaml/formula-2/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-2/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_2/bug.ml b/OCaml/formula-2/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_2/bug.ml rename to OCaml/formula-2/buggy/src.ml diff --git a/OCaml/formula-2/buggy/testcases b/OCaml/formula-2/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-2/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-2/metadata.json b/OCaml/formula-2/metadata.json new file mode 100644 index 000000000..1e9cadad7 --- /dev/null +++ b/OCaml/formula-2/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-2", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-20/.dockerignore b/OCaml/formula-20/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-20/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-20/Dockerfile b/OCaml/formula-20/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-20/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/OCaml/formula-20/buggy/src.ml b/OCaml/formula-20/buggy/src.ml new file mode 100644 index 000000000..5ecba8d64 --- /dev/null +++ b/OCaml/formula-20/buggy/src.ml @@ -0,0 +1,35 @@ + +type formula = True +| False +| Not of formula +| AndAlso of formula * formula +| OrElse of formula * formula +| Imply of formula * formula +| Equal of exp * exp +and exp = Num of int +| Plus of exp * exp +| Minus of exp * exp + +let rec calc (e : exp) : int = + match e with + | Num i -> i + | Plus (ea, eb) -> (calc ea) + (calc eb) + | Minus (ea, eb) -> (calc ea) - (calc eb) + +let rec eval (f : formula) : bool = + match f with + | True -> true + | False -> false + | Not fa -> not (eval fa) + | AndAlso (fa, fb) -> (match (eval fa) with + | true -> eval fb + | _ -> false) + | OrElse (fa, fb) -> (match (eval fa) with + | true -> true + | _ -> eval fb) + | Imply (fa, fb) -> (match (eval fa) with + | true -> eval fb + | _ -> true) + | Equal (ea, eb) -> (match compare (calc ea) (calc eb) with + | -1 -> true + | _ -> false) \ No newline at end of file diff --git a/OCaml/formula-20/buggy/testcases b/OCaml/formula-20/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-20/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-20/metadata.json b/OCaml/formula-20/metadata.json new file mode 100644 index 000000000..d638c4a80 --- /dev/null +++ b/OCaml/formula-20/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-20", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-21/.dockerignore b/OCaml/formula-21/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-21/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-21/Dockerfile b/OCaml/formula-21/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-21/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_21/bug.ml b/OCaml/formula-21/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_21/bug.ml rename to OCaml/formula-21/buggy/src.ml diff --git a/OCaml/formula-21/buggy/testcases b/OCaml/formula-21/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-21/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-21/metadata.json b/OCaml/formula-21/metadata.json new file mode 100644 index 000000000..d0be59363 --- /dev/null +++ b/OCaml/formula-21/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-21", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-22/.dockerignore b/OCaml/formula-22/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-22/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-22/Dockerfile b/OCaml/formula-22/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-22/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_22/bug.ml b/OCaml/formula-22/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_22/bug.ml rename to OCaml/formula-22/buggy/src.ml diff --git a/OCaml/formula-22/buggy/testcases b/OCaml/formula-22/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-22/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-22/metadata.json b/OCaml/formula-22/metadata.json new file mode 100644 index 000000000..b409bad25 --- /dev/null +++ b/OCaml/formula-22/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-22", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-23/.dockerignore b/OCaml/formula-23/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-23/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-23/Dockerfile b/OCaml/formula-23/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-23/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_23/bug.ml b/OCaml/formula-23/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_23/bug.ml rename to OCaml/formula-23/buggy/src.ml diff --git a/OCaml/formula-23/buggy/testcases b/OCaml/formula-23/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-23/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-23/metadata.json b/OCaml/formula-23/metadata.json new file mode 100644 index 000000000..f00a6815d --- /dev/null +++ b/OCaml/formula-23/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-23", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-24/.dockerignore b/OCaml/formula-24/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-24/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-24/Dockerfile b/OCaml/formula-24/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-24/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_24/bug.ml b/OCaml/formula-24/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_24/bug.ml rename to OCaml/formula-24/buggy/src.ml diff --git a/OCaml/formula-24/buggy/testcases b/OCaml/formula-24/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-24/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-24/metadata.json b/OCaml/formula-24/metadata.json new file mode 100644 index 000000000..72c00d7e5 --- /dev/null +++ b/OCaml/formula-24/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-24", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-25/.dockerignore b/OCaml/formula-25/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-25/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-25/Dockerfile b/OCaml/formula-25/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-25/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_25/bug.ml b/OCaml/formula-25/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_25/bug.ml rename to OCaml/formula-25/buggy/src.ml diff --git a/OCaml/formula-25/buggy/testcases b/OCaml/formula-25/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-25/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-25/metadata.json b/OCaml/formula-25/metadata.json new file mode 100644 index 000000000..0f4395427 --- /dev/null +++ b/OCaml/formula-25/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-25", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-26/.dockerignore b/OCaml/formula-26/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-26/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-26/Dockerfile b/OCaml/formula-26/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-26/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_26/bug.ml b/OCaml/formula-26/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_26/bug.ml rename to OCaml/formula-26/buggy/src.ml diff --git a/OCaml/formula-26/buggy/testcases b/OCaml/formula-26/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-26/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-26/metadata.json b/OCaml/formula-26/metadata.json new file mode 100644 index 000000000..159e7ec2d --- /dev/null +++ b/OCaml/formula-26/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-26", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-27/.dockerignore b/OCaml/formula-27/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-27/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-27/Dockerfile b/OCaml/formula-27/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-27/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_27/bug.ml b/OCaml/formula-27/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_27/bug.ml rename to OCaml/formula-27/buggy/src.ml diff --git a/OCaml/formula-27/buggy/testcases b/OCaml/formula-27/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-27/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-27/metadata.json b/OCaml/formula-27/metadata.json new file mode 100644 index 000000000..90166a604 --- /dev/null +++ b/OCaml/formula-27/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-27", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-28/.dockerignore b/OCaml/formula-28/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-28/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-28/Dockerfile b/OCaml/formula-28/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-28/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_28/bug.ml b/OCaml/formula-28/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_28/bug.ml rename to OCaml/formula-28/buggy/src.ml diff --git a/OCaml/formula-28/buggy/testcases b/OCaml/formula-28/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-28/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-28/metadata.json b/OCaml/formula-28/metadata.json new file mode 100644 index 000000000..955c01d8b --- /dev/null +++ b/OCaml/formula-28/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-28", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-29/.dockerignore b/OCaml/formula-29/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-29/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-29/Dockerfile b/OCaml/formula-29/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-29/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_29/bug.ml b/OCaml/formula-29/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_29/bug.ml rename to OCaml/formula-29/buggy/src.ml diff --git a/OCaml/formula-29/buggy/testcases b/OCaml/formula-29/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-29/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-29/metadata.json b/OCaml/formula-29/metadata.json new file mode 100644 index 000000000..e0be9b286 --- /dev/null +++ b/OCaml/formula-29/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-29", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-3/.dockerignore b/OCaml/formula-3/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-3/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-3/Dockerfile b/OCaml/formula-3/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-3/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_3/bug.ml b/OCaml/formula-3/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_3/bug.ml rename to OCaml/formula-3/buggy/src.ml diff --git a/OCaml/formula-3/buggy/testcases b/OCaml/formula-3/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-3/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-3/metadata.json b/OCaml/formula-3/metadata.json new file mode 100644 index 000000000..a3973cdb2 --- /dev/null +++ b/OCaml/formula-3/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-3", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-30/.dockerignore b/OCaml/formula-30/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-30/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-30/Dockerfile b/OCaml/formula-30/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-30/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_30/bug.ml b/OCaml/formula-30/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_30/bug.ml rename to OCaml/formula-30/buggy/src.ml diff --git a/OCaml/formula-30/buggy/testcases b/OCaml/formula-30/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-30/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-30/metadata.json b/OCaml/formula-30/metadata.json new file mode 100644 index 000000000..23a0be9fd --- /dev/null +++ b/OCaml/formula-30/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-30", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-31/.dockerignore b/OCaml/formula-31/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-31/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-31/Dockerfile b/OCaml/formula-31/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-31/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_31/bug.ml b/OCaml/formula-31/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_31/bug.ml rename to OCaml/formula-31/buggy/src.ml diff --git a/OCaml/formula-31/buggy/testcases b/OCaml/formula-31/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-31/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-31/metadata.json b/OCaml/formula-31/metadata.json new file mode 100644 index 000000000..15f7e5add --- /dev/null +++ b/OCaml/formula-31/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-31", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-32/.dockerignore b/OCaml/formula-32/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-32/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-32/Dockerfile b/OCaml/formula-32/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-32/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_32/bug.ml b/OCaml/formula-32/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_32/bug.ml rename to OCaml/formula-32/buggy/src.ml diff --git a/OCaml/formula-32/buggy/testcases b/OCaml/formula-32/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-32/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-32/metadata.json b/OCaml/formula-32/metadata.json new file mode 100644 index 000000000..f681370ab --- /dev/null +++ b/OCaml/formula-32/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-32", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-33/.dockerignore b/OCaml/formula-33/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-33/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-33/Dockerfile b/OCaml/formula-33/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-33/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_33/bug.ml b/OCaml/formula-33/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_33/bug.ml rename to OCaml/formula-33/buggy/src.ml diff --git a/OCaml/formula-33/buggy/testcases b/OCaml/formula-33/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-33/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-33/metadata.json b/OCaml/formula-33/metadata.json new file mode 100644 index 000000000..b518bcd4b --- /dev/null +++ b/OCaml/formula-33/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-33", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-34/.dockerignore b/OCaml/formula-34/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-34/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-34/Dockerfile b/OCaml/formula-34/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-34/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_34/bug.ml b/OCaml/formula-34/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_34/bug.ml rename to OCaml/formula-34/buggy/src.ml diff --git a/OCaml/formula-34/buggy/testcases b/OCaml/formula-34/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-34/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-34/metadata.json b/OCaml/formula-34/metadata.json new file mode 100644 index 000000000..6e2c1ac87 --- /dev/null +++ b/OCaml/formula-34/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-34", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-35/.dockerignore b/OCaml/formula-35/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-35/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-35/Dockerfile b/OCaml/formula-35/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-35/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_35/bug.ml b/OCaml/formula-35/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_35/bug.ml rename to OCaml/formula-35/buggy/src.ml diff --git a/OCaml/formula-35/buggy/testcases b/OCaml/formula-35/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-35/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-35/metadata.json b/OCaml/formula-35/metadata.json new file mode 100644 index 000000000..fa54dbd57 --- /dev/null +++ b/OCaml/formula-35/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-35", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-36/.dockerignore b/OCaml/formula-36/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-36/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-36/Dockerfile b/OCaml/formula-36/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-36/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_36/bug.ml b/OCaml/formula-36/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_36/bug.ml rename to OCaml/formula-36/buggy/src.ml diff --git a/OCaml/formula-36/buggy/testcases b/OCaml/formula-36/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-36/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-36/metadata.json b/OCaml/formula-36/metadata.json new file mode 100644 index 000000000..e86b7bdf4 --- /dev/null +++ b/OCaml/formula-36/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-36", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-37/.dockerignore b/OCaml/formula-37/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-37/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-37/Dockerfile b/OCaml/formula-37/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-37/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_37/bug.ml b/OCaml/formula-37/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_37/bug.ml rename to OCaml/formula-37/buggy/src.ml diff --git a/OCaml/formula-37/buggy/testcases b/OCaml/formula-37/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-37/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-37/metadata.json b/OCaml/formula-37/metadata.json new file mode 100644 index 000000000..9bf31feea --- /dev/null +++ b/OCaml/formula-37/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-37", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-38/.dockerignore b/OCaml/formula-38/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-38/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-38/Dockerfile b/OCaml/formula-38/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-38/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_38/bug.ml b/OCaml/formula-38/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_38/bug.ml rename to OCaml/formula-38/buggy/src.ml diff --git a/OCaml/formula-38/buggy/testcases b/OCaml/formula-38/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-38/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-38/metadata.json b/OCaml/formula-38/metadata.json new file mode 100644 index 000000000..13d6cc3d1 --- /dev/null +++ b/OCaml/formula-38/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-38", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-39/.dockerignore b/OCaml/formula-39/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-39/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-39/Dockerfile b/OCaml/formula-39/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-39/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_39/bug.ml b/OCaml/formula-39/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_39/bug.ml rename to OCaml/formula-39/buggy/src.ml diff --git a/OCaml/formula-39/buggy/testcases b/OCaml/formula-39/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-39/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-39/metadata.json b/OCaml/formula-39/metadata.json new file mode 100644 index 000000000..5c1889040 --- /dev/null +++ b/OCaml/formula-39/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-39", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-4/.dockerignore b/OCaml/formula-4/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-4/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-4/Dockerfile b/OCaml/formula-4/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-4/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_4/bug.ml b/OCaml/formula-4/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_4/bug.ml rename to OCaml/formula-4/buggy/src.ml diff --git a/OCaml/formula-4/buggy/testcases b/OCaml/formula-4/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-4/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-4/metadata.json b/OCaml/formula-4/metadata.json new file mode 100644 index 000000000..4a57cdf41 --- /dev/null +++ b/OCaml/formula-4/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-4", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-40/.dockerignore b/OCaml/formula-40/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-40/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-40/Dockerfile b/OCaml/formula-40/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-40/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_40/bug.ml b/OCaml/formula-40/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_40/bug.ml rename to OCaml/formula-40/buggy/src.ml diff --git a/OCaml/formula-40/buggy/testcases b/OCaml/formula-40/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-40/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-40/metadata.json b/OCaml/formula-40/metadata.json new file mode 100644 index 000000000..6679a0604 --- /dev/null +++ b/OCaml/formula-40/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-40", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-41/.dockerignore b/OCaml/formula-41/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-41/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-41/Dockerfile b/OCaml/formula-41/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-41/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_41/bug.ml b/OCaml/formula-41/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_41/bug.ml rename to OCaml/formula-41/buggy/src.ml diff --git a/OCaml/formula-41/buggy/testcases b/OCaml/formula-41/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-41/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-41/metadata.json b/OCaml/formula-41/metadata.json new file mode 100644 index 000000000..be0d36304 --- /dev/null +++ b/OCaml/formula-41/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-41", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-42/.dockerignore b/OCaml/formula-42/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-42/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-42/Dockerfile b/OCaml/formula-42/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-42/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_42/bug.ml b/OCaml/formula-42/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_42/bug.ml rename to OCaml/formula-42/buggy/src.ml diff --git a/OCaml/formula-42/buggy/testcases b/OCaml/formula-42/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-42/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-42/metadata.json b/OCaml/formula-42/metadata.json new file mode 100644 index 000000000..7377bc9a1 --- /dev/null +++ b/OCaml/formula-42/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-42", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-43/.dockerignore b/OCaml/formula-43/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-43/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-43/Dockerfile b/OCaml/formula-43/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-43/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_43/bug.ml b/OCaml/formula-43/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_43/bug.ml rename to OCaml/formula-43/buggy/src.ml diff --git a/OCaml/formula-43/buggy/testcases b/OCaml/formula-43/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-43/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-43/metadata.json b/OCaml/formula-43/metadata.json new file mode 100644 index 000000000..ae3d62295 --- /dev/null +++ b/OCaml/formula-43/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-43", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-44/.dockerignore b/OCaml/formula-44/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-44/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-44/Dockerfile b/OCaml/formula-44/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-44/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_44/bug.ml b/OCaml/formula-44/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_44/bug.ml rename to OCaml/formula-44/buggy/src.ml diff --git a/OCaml/formula-44/buggy/testcases b/OCaml/formula-44/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-44/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-44/metadata.json b/OCaml/formula-44/metadata.json new file mode 100644 index 000000000..8063e34f3 --- /dev/null +++ b/OCaml/formula-44/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-44", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-45/.dockerignore b/OCaml/formula-45/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-45/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-45/Dockerfile b/OCaml/formula-45/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-45/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_45/bug.ml b/OCaml/formula-45/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_45/bug.ml rename to OCaml/formula-45/buggy/src.ml diff --git a/OCaml/formula-45/buggy/testcases b/OCaml/formula-45/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-45/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-45/metadata.json b/OCaml/formula-45/metadata.json new file mode 100644 index 000000000..2efc54450 --- /dev/null +++ b/OCaml/formula-45/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-45", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-46/.dockerignore b/OCaml/formula-46/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-46/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-46/Dockerfile b/OCaml/formula-46/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-46/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_46/bug.ml b/OCaml/formula-46/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_46/bug.ml rename to OCaml/formula-46/buggy/src.ml diff --git a/OCaml/formula-46/buggy/testcases b/OCaml/formula-46/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-46/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-46/metadata.json b/OCaml/formula-46/metadata.json new file mode 100644 index 000000000..a6d082dcc --- /dev/null +++ b/OCaml/formula-46/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-46", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-47/.dockerignore b/OCaml/formula-47/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-47/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-47/Dockerfile b/OCaml/formula-47/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-47/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_47/bug.ml b/OCaml/formula-47/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_47/bug.ml rename to OCaml/formula-47/buggy/src.ml diff --git a/OCaml/formula-47/buggy/testcases b/OCaml/formula-47/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-47/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-47/metadata.json b/OCaml/formula-47/metadata.json new file mode 100644 index 000000000..85b5ffad4 --- /dev/null +++ b/OCaml/formula-47/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-47", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-48/.dockerignore b/OCaml/formula-48/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-48/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-48/Dockerfile b/OCaml/formula-48/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-48/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_48/bug.ml b/OCaml/formula-48/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_48/bug.ml rename to OCaml/formula-48/buggy/src.ml diff --git a/OCaml/formula-48/buggy/testcases b/OCaml/formula-48/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-48/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-48/metadata.json b/OCaml/formula-48/metadata.json new file mode 100644 index 000000000..d684d0900 --- /dev/null +++ b/OCaml/formula-48/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-48", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-49/.dockerignore b/OCaml/formula-49/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-49/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-49/Dockerfile b/OCaml/formula-49/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-49/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_49/bug.ml b/OCaml/formula-49/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_49/bug.ml rename to OCaml/formula-49/buggy/src.ml diff --git a/OCaml/formula-49/buggy/testcases b/OCaml/formula-49/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-49/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-49/metadata.json b/OCaml/formula-49/metadata.json new file mode 100644 index 000000000..eb4dc379a --- /dev/null +++ b/OCaml/formula-49/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-49", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-5/.dockerignore b/OCaml/formula-5/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-5/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-5/Dockerfile b/OCaml/formula-5/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-5/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_5/bug.ml b/OCaml/formula-5/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_5/bug.ml rename to OCaml/formula-5/buggy/src.ml diff --git a/OCaml/formula-5/buggy/testcases b/OCaml/formula-5/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-5/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-5/metadata.json b/OCaml/formula-5/metadata.json new file mode 100644 index 000000000..2d6207cfd --- /dev/null +++ b/OCaml/formula-5/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-5", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-50/.dockerignore b/OCaml/formula-50/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-50/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-50/Dockerfile b/OCaml/formula-50/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-50/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_50/bug.ml b/OCaml/formula-50/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_50/bug.ml rename to OCaml/formula-50/buggy/src.ml diff --git a/OCaml/formula-50/buggy/testcases b/OCaml/formula-50/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-50/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-50/metadata.json b/OCaml/formula-50/metadata.json new file mode 100644 index 000000000..0044bbf40 --- /dev/null +++ b/OCaml/formula-50/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-50", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-51/.dockerignore b/OCaml/formula-51/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-51/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-51/Dockerfile b/OCaml/formula-51/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-51/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_51/bug.ml b/OCaml/formula-51/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_51/bug.ml rename to OCaml/formula-51/buggy/src.ml diff --git a/OCaml/formula-51/buggy/testcases b/OCaml/formula-51/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-51/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-51/metadata.json b/OCaml/formula-51/metadata.json new file mode 100644 index 000000000..f5eb47598 --- /dev/null +++ b/OCaml/formula-51/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-51", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-52/.dockerignore b/OCaml/formula-52/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-52/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-52/Dockerfile b/OCaml/formula-52/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-52/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_52/bug.ml b/OCaml/formula-52/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_52/bug.ml rename to OCaml/formula-52/buggy/src.ml diff --git a/OCaml/formula-52/buggy/testcases b/OCaml/formula-52/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-52/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-52/metadata.json b/OCaml/formula-52/metadata.json new file mode 100644 index 000000000..14b8ffc1a --- /dev/null +++ b/OCaml/formula-52/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-52", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-53/.dockerignore b/OCaml/formula-53/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-53/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-53/Dockerfile b/OCaml/formula-53/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-53/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_53/bug.ml b/OCaml/formula-53/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_53/bug.ml rename to OCaml/formula-53/buggy/src.ml diff --git a/OCaml/formula-53/buggy/testcases b/OCaml/formula-53/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-53/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-53/metadata.json b/OCaml/formula-53/metadata.json new file mode 100644 index 000000000..55680a904 --- /dev/null +++ b/OCaml/formula-53/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-53", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-54/.dockerignore b/OCaml/formula-54/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-54/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-54/Dockerfile b/OCaml/formula-54/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-54/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_54/bug.ml b/OCaml/formula-54/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_54/bug.ml rename to OCaml/formula-54/buggy/src.ml diff --git a/OCaml/formula-54/buggy/testcases b/OCaml/formula-54/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-54/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-54/metadata.json b/OCaml/formula-54/metadata.json new file mode 100644 index 000000000..6acd43558 --- /dev/null +++ b/OCaml/formula-54/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-54", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-55/.dockerignore b/OCaml/formula-55/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-55/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-55/Dockerfile b/OCaml/formula-55/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-55/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_55/bug.ml b/OCaml/formula-55/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_55/bug.ml rename to OCaml/formula-55/buggy/src.ml diff --git a/OCaml/formula-55/buggy/testcases b/OCaml/formula-55/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-55/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-55/metadata.json b/OCaml/formula-55/metadata.json new file mode 100644 index 000000000..f82423a35 --- /dev/null +++ b/OCaml/formula-55/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-55", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-56/.dockerignore b/OCaml/formula-56/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-56/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-56/Dockerfile b/OCaml/formula-56/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-56/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_56/bug.ml b/OCaml/formula-56/buggy/src.ml similarity index 95% rename from functional/OCaml/formula/bugs/bug_56/bug.ml rename to OCaml/formula-56/buggy/src.ml index 2b4c590ec..a2dadfcaa 100644 --- a/functional/OCaml/formula/bugs/bug_56/bug.ml +++ b/OCaml/formula-56/buggy/src.ml @@ -40,4 +40,4 @@ let rec eval (f : formula) : bool = | OrElse (a, b) -> orElse (eval a, eval b) | Imply (a, b) -> imply (eval a, eval b) | Equal (a, b) -> equal (a, b) - | _ -> raise Failure "eval requires formula" + | _ -> raise (Failure "eval requires formula") diff --git a/OCaml/formula-56/buggy/testcases b/OCaml/formula-56/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-56/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-56/metadata.json b/OCaml/formula-56/metadata.json new file mode 100644 index 000000000..a32d94b8a --- /dev/null +++ b/OCaml/formula-56/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-56", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-57/.dockerignore b/OCaml/formula-57/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-57/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-57/Dockerfile b/OCaml/formula-57/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-57/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_57/bug.ml b/OCaml/formula-57/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_57/bug.ml rename to OCaml/formula-57/buggy/src.ml diff --git a/OCaml/formula-57/buggy/testcases b/OCaml/formula-57/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-57/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-57/metadata.json b/OCaml/formula-57/metadata.json new file mode 100644 index 000000000..446784dc9 --- /dev/null +++ b/OCaml/formula-57/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-57", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-58/.dockerignore b/OCaml/formula-58/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-58/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-58/Dockerfile b/OCaml/formula-58/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-58/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_58/bug.ml b/OCaml/formula-58/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_58/bug.ml rename to OCaml/formula-58/buggy/src.ml diff --git a/OCaml/formula-58/buggy/testcases b/OCaml/formula-58/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-58/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-58/metadata.json b/OCaml/formula-58/metadata.json new file mode 100644 index 000000000..156df02a6 --- /dev/null +++ b/OCaml/formula-58/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-58", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-59/.dockerignore b/OCaml/formula-59/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-59/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-59/Dockerfile b/OCaml/formula-59/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-59/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_59/bug.ml b/OCaml/formula-59/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_59/bug.ml rename to OCaml/formula-59/buggy/src.ml diff --git a/OCaml/formula-59/buggy/testcases b/OCaml/formula-59/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-59/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-59/metadata.json b/OCaml/formula-59/metadata.json new file mode 100644 index 000000000..b3e08581a --- /dev/null +++ b/OCaml/formula-59/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-59", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-6/.dockerignore b/OCaml/formula-6/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-6/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-6/Dockerfile b/OCaml/formula-6/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-6/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_6/bug.ml b/OCaml/formula-6/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_6/bug.ml rename to OCaml/formula-6/buggy/src.ml diff --git a/OCaml/formula-6/buggy/testcases b/OCaml/formula-6/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-6/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-6/metadata.json b/OCaml/formula-6/metadata.json new file mode 100644 index 000000000..48cbe8f8a --- /dev/null +++ b/OCaml/formula-6/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-6", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-60/.dockerignore b/OCaml/formula-60/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-60/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-60/Dockerfile b/OCaml/formula-60/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-60/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_60/bug.ml b/OCaml/formula-60/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_60/bug.ml rename to OCaml/formula-60/buggy/src.ml diff --git a/OCaml/formula-60/buggy/testcases b/OCaml/formula-60/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-60/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-60/metadata.json b/OCaml/formula-60/metadata.json new file mode 100644 index 000000000..f73df2af2 --- /dev/null +++ b/OCaml/formula-60/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-60", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-61/.dockerignore b/OCaml/formula-61/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-61/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-61/Dockerfile b/OCaml/formula-61/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-61/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_61/bug.ml b/OCaml/formula-61/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_61/bug.ml rename to OCaml/formula-61/buggy/src.ml diff --git a/OCaml/formula-61/buggy/testcases b/OCaml/formula-61/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-61/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-61/metadata.json b/OCaml/formula-61/metadata.json new file mode 100644 index 000000000..4311d57ae --- /dev/null +++ b/OCaml/formula-61/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-61", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-62/.dockerignore b/OCaml/formula-62/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-62/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-62/Dockerfile b/OCaml/formula-62/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-62/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_62/bug.ml b/OCaml/formula-62/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_62/bug.ml rename to OCaml/formula-62/buggy/src.ml diff --git a/OCaml/formula-62/buggy/testcases b/OCaml/formula-62/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-62/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-62/metadata.json b/OCaml/formula-62/metadata.json new file mode 100644 index 000000000..f9e5e6139 --- /dev/null +++ b/OCaml/formula-62/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-62", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-63/.dockerignore b/OCaml/formula-63/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-63/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-63/Dockerfile b/OCaml/formula-63/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-63/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_63/bug.ml b/OCaml/formula-63/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_63/bug.ml rename to OCaml/formula-63/buggy/src.ml diff --git a/OCaml/formula-63/buggy/testcases b/OCaml/formula-63/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-63/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-63/metadata.json b/OCaml/formula-63/metadata.json new file mode 100644 index 000000000..63c567925 --- /dev/null +++ b/OCaml/formula-63/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-63", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-64/.dockerignore b/OCaml/formula-64/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-64/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-64/Dockerfile b/OCaml/formula-64/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-64/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_64/bug.ml b/OCaml/formula-64/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_64/bug.ml rename to OCaml/formula-64/buggy/src.ml diff --git a/OCaml/formula-64/buggy/testcases b/OCaml/formula-64/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-64/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-64/metadata.json b/OCaml/formula-64/metadata.json new file mode 100644 index 000000000..18a0b5eb0 --- /dev/null +++ b/OCaml/formula-64/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-64", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-65/.dockerignore b/OCaml/formula-65/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-65/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-65/Dockerfile b/OCaml/formula-65/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-65/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_65/bug.ml b/OCaml/formula-65/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_65/bug.ml rename to OCaml/formula-65/buggy/src.ml diff --git a/OCaml/formula-65/buggy/testcases b/OCaml/formula-65/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-65/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-65/metadata.json b/OCaml/formula-65/metadata.json new file mode 100644 index 000000000..98ea99989 --- /dev/null +++ b/OCaml/formula-65/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-65", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-66/.dockerignore b/OCaml/formula-66/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-66/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-66/Dockerfile b/OCaml/formula-66/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-66/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_66/bug.ml b/OCaml/formula-66/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_66/bug.ml rename to OCaml/formula-66/buggy/src.ml diff --git a/OCaml/formula-66/buggy/testcases b/OCaml/formula-66/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-66/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-66/metadata.json b/OCaml/formula-66/metadata.json new file mode 100644 index 000000000..006ca846e --- /dev/null +++ b/OCaml/formula-66/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-66", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-67/.dockerignore b/OCaml/formula-67/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-67/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-67/Dockerfile b/OCaml/formula-67/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-67/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_67/bug.ml b/OCaml/formula-67/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_67/bug.ml rename to OCaml/formula-67/buggy/src.ml diff --git a/OCaml/formula-67/buggy/testcases b/OCaml/formula-67/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-67/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-67/metadata.json b/OCaml/formula-67/metadata.json new file mode 100644 index 000000000..989b49398 --- /dev/null +++ b/OCaml/formula-67/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-67", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-68/.dockerignore b/OCaml/formula-68/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-68/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-68/Dockerfile b/OCaml/formula-68/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-68/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_68/bug.ml b/OCaml/formula-68/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_68/bug.ml rename to OCaml/formula-68/buggy/src.ml diff --git a/OCaml/formula-68/buggy/testcases b/OCaml/formula-68/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-68/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-68/metadata.json b/OCaml/formula-68/metadata.json new file mode 100644 index 000000000..1d33fc6fd --- /dev/null +++ b/OCaml/formula-68/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-68", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-69/.dockerignore b/OCaml/formula-69/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-69/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-69/Dockerfile b/OCaml/formula-69/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-69/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_69/bug.ml b/OCaml/formula-69/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_69/bug.ml rename to OCaml/formula-69/buggy/src.ml diff --git a/OCaml/formula-69/buggy/testcases b/OCaml/formula-69/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-69/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-69/metadata.json b/OCaml/formula-69/metadata.json new file mode 100644 index 000000000..993a0b529 --- /dev/null +++ b/OCaml/formula-69/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-69", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-7/.dockerignore b/OCaml/formula-7/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-7/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-7/Dockerfile b/OCaml/formula-7/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-7/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_7/bug.ml b/OCaml/formula-7/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_7/bug.ml rename to OCaml/formula-7/buggy/src.ml diff --git a/OCaml/formula-7/buggy/testcases b/OCaml/formula-7/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-7/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-7/metadata.json b/OCaml/formula-7/metadata.json new file mode 100644 index 000000000..0b0f736cb --- /dev/null +++ b/OCaml/formula-7/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-7", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-70/.dockerignore b/OCaml/formula-70/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-70/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-70/Dockerfile b/OCaml/formula-70/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-70/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_70/bug.ml b/OCaml/formula-70/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_70/bug.ml rename to OCaml/formula-70/buggy/src.ml diff --git a/OCaml/formula-70/buggy/testcases b/OCaml/formula-70/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-70/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-70/metadata.json b/OCaml/formula-70/metadata.json new file mode 100644 index 000000000..fcd22b5ca --- /dev/null +++ b/OCaml/formula-70/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-70", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-71/.dockerignore b/OCaml/formula-71/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-71/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-71/Dockerfile b/OCaml/formula-71/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-71/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_71/bug.ml b/OCaml/formula-71/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_71/bug.ml rename to OCaml/formula-71/buggy/src.ml diff --git a/OCaml/formula-71/buggy/testcases b/OCaml/formula-71/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-71/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-71/metadata.json b/OCaml/formula-71/metadata.json new file mode 100644 index 000000000..c649bdbff --- /dev/null +++ b/OCaml/formula-71/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-71", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-72/.dockerignore b/OCaml/formula-72/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-72/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-72/Dockerfile b/OCaml/formula-72/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-72/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_72/bug.ml b/OCaml/formula-72/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_72/bug.ml rename to OCaml/formula-72/buggy/src.ml diff --git a/OCaml/formula-72/buggy/testcases b/OCaml/formula-72/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-72/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-72/metadata.json b/OCaml/formula-72/metadata.json new file mode 100644 index 000000000..1c4ebd9fc --- /dev/null +++ b/OCaml/formula-72/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-72", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-73/.dockerignore b/OCaml/formula-73/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-73/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-73/Dockerfile b/OCaml/formula-73/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-73/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_73/bug.ml b/OCaml/formula-73/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_73/bug.ml rename to OCaml/formula-73/buggy/src.ml diff --git a/OCaml/formula-73/buggy/testcases b/OCaml/formula-73/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-73/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-73/metadata.json b/OCaml/formula-73/metadata.json new file mode 100644 index 000000000..0354d6e35 --- /dev/null +++ b/OCaml/formula-73/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-73", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-74/.dockerignore b/OCaml/formula-74/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-74/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-74/Dockerfile b/OCaml/formula-74/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-74/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_74/bug.ml b/OCaml/formula-74/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_74/bug.ml rename to OCaml/formula-74/buggy/src.ml diff --git a/OCaml/formula-74/buggy/testcases b/OCaml/formula-74/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-74/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-74/metadata.json b/OCaml/formula-74/metadata.json new file mode 100644 index 000000000..5571152dc --- /dev/null +++ b/OCaml/formula-74/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-74", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-75/.dockerignore b/OCaml/formula-75/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-75/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-75/Dockerfile b/OCaml/formula-75/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-75/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_75/bug.ml b/OCaml/formula-75/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_75/bug.ml rename to OCaml/formula-75/buggy/src.ml diff --git a/OCaml/formula-75/buggy/testcases b/OCaml/formula-75/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-75/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-75/metadata.json b/OCaml/formula-75/metadata.json new file mode 100644 index 000000000..887b8074b --- /dev/null +++ b/OCaml/formula-75/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-75", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-76/.dockerignore b/OCaml/formula-76/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-76/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-76/Dockerfile b/OCaml/formula-76/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-76/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_76/bug.ml b/OCaml/formula-76/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_76/bug.ml rename to OCaml/formula-76/buggy/src.ml diff --git a/OCaml/formula-76/buggy/testcases b/OCaml/formula-76/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-76/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-76/metadata.json b/OCaml/formula-76/metadata.json new file mode 100644 index 000000000..f75a65beb --- /dev/null +++ b/OCaml/formula-76/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-76", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-77/.dockerignore b/OCaml/formula-77/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-77/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-77/Dockerfile b/OCaml/formula-77/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-77/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_77/bug.ml b/OCaml/formula-77/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_77/bug.ml rename to OCaml/formula-77/buggy/src.ml diff --git a/OCaml/formula-77/buggy/testcases b/OCaml/formula-77/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-77/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-77/metadata.json b/OCaml/formula-77/metadata.json new file mode 100644 index 000000000..a2e7fb50f --- /dev/null +++ b/OCaml/formula-77/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-77", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-78/.dockerignore b/OCaml/formula-78/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-78/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-78/Dockerfile b/OCaml/formula-78/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-78/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_78/bug.ml b/OCaml/formula-78/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_78/bug.ml rename to OCaml/formula-78/buggy/src.ml diff --git a/OCaml/formula-78/buggy/testcases b/OCaml/formula-78/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-78/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-78/metadata.json b/OCaml/formula-78/metadata.json new file mode 100644 index 000000000..fe3b7c0e4 --- /dev/null +++ b/OCaml/formula-78/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-78", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-79/.dockerignore b/OCaml/formula-79/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-79/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-79/Dockerfile b/OCaml/formula-79/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-79/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_79/bug.ml b/OCaml/formula-79/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_79/bug.ml rename to OCaml/formula-79/buggy/src.ml diff --git a/OCaml/formula-79/buggy/testcases b/OCaml/formula-79/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-79/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-79/metadata.json b/OCaml/formula-79/metadata.json new file mode 100644 index 000000000..d2ff2991e --- /dev/null +++ b/OCaml/formula-79/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-79", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-8/.dockerignore b/OCaml/formula-8/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-8/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-8/Dockerfile b/OCaml/formula-8/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-8/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_8/bug.ml b/OCaml/formula-8/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_8/bug.ml rename to OCaml/formula-8/buggy/src.ml diff --git a/OCaml/formula-8/buggy/testcases b/OCaml/formula-8/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-8/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-8/metadata.json b/OCaml/formula-8/metadata.json new file mode 100644 index 000000000..9f7b3d3b9 --- /dev/null +++ b/OCaml/formula-8/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-8", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-80/.dockerignore b/OCaml/formula-80/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-80/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-80/Dockerfile b/OCaml/formula-80/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-80/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_80/bug.ml b/OCaml/formula-80/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_80/bug.ml rename to OCaml/formula-80/buggy/src.ml diff --git a/OCaml/formula-80/buggy/testcases b/OCaml/formula-80/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-80/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-80/metadata.json b/OCaml/formula-80/metadata.json new file mode 100644 index 000000000..f89c445ac --- /dev/null +++ b/OCaml/formula-80/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-80", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-81/.dockerignore b/OCaml/formula-81/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-81/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-81/Dockerfile b/OCaml/formula-81/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-81/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_81/bug.ml b/OCaml/formula-81/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_81/bug.ml rename to OCaml/formula-81/buggy/src.ml diff --git a/OCaml/formula-81/buggy/testcases b/OCaml/formula-81/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-81/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-81/metadata.json b/OCaml/formula-81/metadata.json new file mode 100644 index 000000000..f5b7e33fe --- /dev/null +++ b/OCaml/formula-81/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-81", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-82/.dockerignore b/OCaml/formula-82/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-82/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-82/Dockerfile b/OCaml/formula-82/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-82/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_82/bug.ml b/OCaml/formula-82/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_82/bug.ml rename to OCaml/formula-82/buggy/src.ml diff --git a/OCaml/formula-82/buggy/testcases b/OCaml/formula-82/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-82/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-82/metadata.json b/OCaml/formula-82/metadata.json new file mode 100644 index 000000000..bcc6dc290 --- /dev/null +++ b/OCaml/formula-82/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-82", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-83/.dockerignore b/OCaml/formula-83/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-83/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-83/Dockerfile b/OCaml/formula-83/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-83/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_83/bug.ml b/OCaml/formula-83/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_83/bug.ml rename to OCaml/formula-83/buggy/src.ml diff --git a/OCaml/formula-83/buggy/testcases b/OCaml/formula-83/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-83/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-83/metadata.json b/OCaml/formula-83/metadata.json new file mode 100644 index 000000000..dc0e4ccd1 --- /dev/null +++ b/OCaml/formula-83/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-83", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-84/.dockerignore b/OCaml/formula-84/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-84/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-84/Dockerfile b/OCaml/formula-84/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-84/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_84/bug.ml b/OCaml/formula-84/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_84/bug.ml rename to OCaml/formula-84/buggy/src.ml diff --git a/OCaml/formula-84/buggy/testcases b/OCaml/formula-84/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-84/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-84/metadata.json b/OCaml/formula-84/metadata.json new file mode 100644 index 000000000..87987b452 --- /dev/null +++ b/OCaml/formula-84/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-84", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-85/.dockerignore b/OCaml/formula-85/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-85/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-85/Dockerfile b/OCaml/formula-85/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-85/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_85/bug.ml b/OCaml/formula-85/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_85/bug.ml rename to OCaml/formula-85/buggy/src.ml diff --git a/OCaml/formula-85/buggy/testcases b/OCaml/formula-85/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-85/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-85/metadata.json b/OCaml/formula-85/metadata.json new file mode 100644 index 000000000..cf7fafd90 --- /dev/null +++ b/OCaml/formula-85/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-85", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-86/.dockerignore b/OCaml/formula-86/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-86/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-86/Dockerfile b/OCaml/formula-86/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-86/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_86/bug.ml b/OCaml/formula-86/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_86/bug.ml rename to OCaml/formula-86/buggy/src.ml diff --git a/OCaml/formula-86/buggy/testcases b/OCaml/formula-86/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-86/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-86/metadata.json b/OCaml/formula-86/metadata.json new file mode 100644 index 000000000..aac35412d --- /dev/null +++ b/OCaml/formula-86/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-86", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-87/.dockerignore b/OCaml/formula-87/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-87/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-87/Dockerfile b/OCaml/formula-87/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-87/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_87/bug.ml b/OCaml/formula-87/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_87/bug.ml rename to OCaml/formula-87/buggy/src.ml diff --git a/OCaml/formula-87/buggy/testcases b/OCaml/formula-87/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-87/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-87/metadata.json b/OCaml/formula-87/metadata.json new file mode 100644 index 000000000..c745a2d15 --- /dev/null +++ b/OCaml/formula-87/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-87", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-88/.dockerignore b/OCaml/formula-88/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-88/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-88/Dockerfile b/OCaml/formula-88/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-88/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_88/bug.ml b/OCaml/formula-88/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_88/bug.ml rename to OCaml/formula-88/buggy/src.ml diff --git a/OCaml/formula-88/buggy/testcases b/OCaml/formula-88/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-88/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-88/metadata.json b/OCaml/formula-88/metadata.json new file mode 100644 index 000000000..74af8a29a --- /dev/null +++ b/OCaml/formula-88/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-88", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-89/.dockerignore b/OCaml/formula-89/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-89/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-89/Dockerfile b/OCaml/formula-89/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-89/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_89/bug.ml b/OCaml/formula-89/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_89/bug.ml rename to OCaml/formula-89/buggy/src.ml diff --git a/OCaml/formula-89/buggy/testcases b/OCaml/formula-89/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-89/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-89/metadata.json b/OCaml/formula-89/metadata.json new file mode 100644 index 000000000..6f2f16ecd --- /dev/null +++ b/OCaml/formula-89/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-89", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-9/.dockerignore b/OCaml/formula-9/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-9/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-9/Dockerfile b/OCaml/formula-9/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-9/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_9/bug.ml b/OCaml/formula-9/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_9/bug.ml rename to OCaml/formula-9/buggy/src.ml diff --git a/OCaml/formula-9/buggy/testcases b/OCaml/formula-9/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-9/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-9/metadata.json b/OCaml/formula-9/metadata.json new file mode 100644 index 000000000..ae95f36d9 --- /dev/null +++ b/OCaml/formula-9/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-9", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-90/.dockerignore b/OCaml/formula-90/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-90/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-90/Dockerfile b/OCaml/formula-90/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-90/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_90/bug.ml b/OCaml/formula-90/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_90/bug.ml rename to OCaml/formula-90/buggy/src.ml diff --git a/OCaml/formula-90/buggy/testcases b/OCaml/formula-90/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-90/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-90/metadata.json b/OCaml/formula-90/metadata.json new file mode 100644 index 000000000..42d005ebf --- /dev/null +++ b/OCaml/formula-90/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-90", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-91/.dockerignore b/OCaml/formula-91/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-91/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-91/Dockerfile b/OCaml/formula-91/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-91/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_91/bug.ml b/OCaml/formula-91/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_91/bug.ml rename to OCaml/formula-91/buggy/src.ml diff --git a/OCaml/formula-91/buggy/testcases b/OCaml/formula-91/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-91/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-91/metadata.json b/OCaml/formula-91/metadata.json new file mode 100644 index 000000000..7c3bf5da5 --- /dev/null +++ b/OCaml/formula-91/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-91", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-92/.dockerignore b/OCaml/formula-92/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-92/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-92/Dockerfile b/OCaml/formula-92/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-92/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/OCaml/formula-92/buggy/src.ml b/OCaml/formula-92/buggy/src.ml new file mode 100644 index 000000000..95d6a0c6e --- /dev/null +++ b/OCaml/formula-92/buggy/src.ml @@ -0,0 +1,49 @@ +type formula = + | True + | False + | Not of formula + | AndAlso of formula * formula + | OrElse of formula * formula + | Imply of formula * formula + | Equal of exp * exp + +and exp = + | Num of int + | Plus of exp * exp + | Minus of exp * exp + +let rec eq : exp -> int = fun f -> + match f with + |Num a -> a + |Plus (a, b) -> eq (Num ( (eq a) + (eq b) )) + |Minus (a, b) -> eq(Num ( (eq a) - (eq b) ));; + +let rec eval : formula -> bool = fun f -> + match f with + |True -> true + |False -> false + |Not True -> false + |Not False -> true + |Not a -> eval a + |Equal (a, b) -> if (eq a) = (eq b) then true else false + |Imply (a,b) -> + (match (a, b) with + |(True, True) -> true + |(True, False) -> false + |(False, True) -> true + |(False, False) -> true + |(_, _) -> eval( Imply((if (eval a) = true then True else False), (if (eval b) = true then True else False))) ) + |AndAlso (a, b) -> + (match (a, b) with + |(True, True) -> true + |(True, False) -> false + |(False, True) -> false + |(False, False) -> false + |(_, _) -> eval( AndAlso((if (eval a) = true then True else False), (if (eval b) = true then True else False))) ) + |OrElse (a,b) -> + (match (a, b) with + |(True, True) -> true + |(True, False) -> true + |(False, True) -> true + |(False, False) -> false + |(_, _) -> eval( OrElse((if (eval a) = true then True else False), (if (eval b) = true then True else False))));; \ No newline at end of file diff --git a/OCaml/formula-92/buggy/testcases b/OCaml/formula-92/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-92/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-92/metadata.json b/OCaml/formula-92/metadata.json new file mode 100644 index 000000000..85f9f57bd --- /dev/null +++ b/OCaml/formula-92/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-92", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-93/.dockerignore b/OCaml/formula-93/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-93/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-93/Dockerfile b/OCaml/formula-93/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-93/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_93/bug.ml b/OCaml/formula-93/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_93/bug.ml rename to OCaml/formula-93/buggy/src.ml diff --git a/OCaml/formula-93/buggy/testcases b/OCaml/formula-93/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-93/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-93/metadata.json b/OCaml/formula-93/metadata.json new file mode 100644 index 000000000..30ca6b43c --- /dev/null +++ b/OCaml/formula-93/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-93", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-94/.dockerignore b/OCaml/formula-94/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-94/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-94/Dockerfile b/OCaml/formula-94/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-94/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_94/bug.ml b/OCaml/formula-94/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_94/bug.ml rename to OCaml/formula-94/buggy/src.ml diff --git a/OCaml/formula-94/buggy/testcases b/OCaml/formula-94/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-94/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-94/metadata.json b/OCaml/formula-94/metadata.json new file mode 100644 index 000000000..107a06d1a --- /dev/null +++ b/OCaml/formula-94/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-94", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-95/.dockerignore b/OCaml/formula-95/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-95/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-95/Dockerfile b/OCaml/formula-95/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-95/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_95/bug.ml b/OCaml/formula-95/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_95/bug.ml rename to OCaml/formula-95/buggy/src.ml diff --git a/OCaml/formula-95/buggy/testcases b/OCaml/formula-95/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-95/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-95/metadata.json b/OCaml/formula-95/metadata.json new file mode 100644 index 000000000..ad7c8ad89 --- /dev/null +++ b/OCaml/formula-95/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-95", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-96/.dockerignore b/OCaml/formula-96/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-96/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-96/Dockerfile b/OCaml/formula-96/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-96/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_96/bug.ml b/OCaml/formula-96/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_96/bug.ml rename to OCaml/formula-96/buggy/src.ml diff --git a/OCaml/formula-96/buggy/testcases b/OCaml/formula-96/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-96/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-96/metadata.json b/OCaml/formula-96/metadata.json new file mode 100644 index 000000000..2aac0de0a --- /dev/null +++ b/OCaml/formula-96/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-96", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-97/.dockerignore b/OCaml/formula-97/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-97/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-97/Dockerfile b/OCaml/formula-97/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-97/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_97/bug.ml b/OCaml/formula-97/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_97/bug.ml rename to OCaml/formula-97/buggy/src.ml diff --git a/OCaml/formula-97/buggy/testcases b/OCaml/formula-97/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-97/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-97/metadata.json b/OCaml/formula-97/metadata.json new file mode 100644 index 000000000..84be8c6af --- /dev/null +++ b/OCaml/formula-97/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-97", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-98/.dockerignore b/OCaml/formula-98/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-98/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-98/Dockerfile b/OCaml/formula-98/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-98/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_98/bug.ml b/OCaml/formula-98/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_98/bug.ml rename to OCaml/formula-98/buggy/src.ml diff --git a/OCaml/formula-98/buggy/testcases b/OCaml/formula-98/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-98/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-98/metadata.json b/OCaml/formula-98/metadata.json new file mode 100644 index 000000000..49c9f7d9a --- /dev/null +++ b/OCaml/formula-98/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-98", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/OCaml/formula-99/.dockerignore b/OCaml/formula-99/.dockerignore new file mode 100644 index 000000000..9a715f53b --- /dev/null +++ b/OCaml/formula-99/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile \ No newline at end of file diff --git a/OCaml/formula-99/Dockerfile b/OCaml/formula-99/Dockerfile new file mode 100644 index 000000000..852cfbd77 --- /dev/null +++ b/OCaml/formula-99/Dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/sambyeol/ocaml-devcontainer:4.14.1-debian-root + +USER root +RUN mkdir -p /workspace +WORKDIR /workspace +COPY . /workspace \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_99/bug.ml b/OCaml/formula-99/buggy/src.ml similarity index 100% rename from functional/OCaml/formula/bugs/bug_99/bug.ml rename to OCaml/formula-99/buggy/src.ml diff --git a/OCaml/formula-99/buggy/testcases b/OCaml/formula-99/buggy/testcases new file mode 100644 index 000000000..b2f3418ef --- /dev/null +++ b/OCaml/formula-99/buggy/testcases @@ -0,0 +1,20 @@ +{ + Imply (Not False,Not False) => true; + Imply (Not False,AndAlso (True,False)) => false; + Imply (False, False) => true; + Equal (Minus (Num 5,Num 2),Num 3) => true; + Not (Not (Not (Not (Imply (True, True))))) => true; + AndAlso (OrElse(True, False), Not (Imply (True, False))) => true; + Not (Imply (AndAlso (False, True), OrElse (False, False))) => false; + Equal (Plus (Minus (Num 4, Num 5), Minus (Num 1, Num (-1))), Plus (Minus (Num 3, Num (-5)), Plus (Num 4, Num 5))) => false; + OrElse (Equal (Minus (Num 3, Num 4), Plus (Num 3, Num 4)), AndAlso (Not (True), True)) => false; + AndAlso (AndAlso(True, True), AndAlso (Not (AndAlso (True, False)), Not (OrElse (False, False)))) => true; + OrElse (True, True) => true; + OrElse (True, Not True) => true; + Equal (Num 1, Plus (Num 0, Num 1)) => true; + AndAlso ((True, Not (True))) => false; + OrElse ((False, Not (False))) => true; + Imply (False, True) => true; + Not (Not (Not (True))) => false; + Not (AndAlso ((True, Not (False)))) => false; +} \ No newline at end of file diff --git a/OCaml/formula-99/metadata.json b/OCaml/formula-99/metadata.json new file mode 100644 index 000000000..0a6277d24 --- /dev/null +++ b/OCaml/formula-99/metadata.json @@ -0,0 +1,12 @@ +{ + "language": "ocaml", + "id": "formula-99", + + "buggyPath": "buggy", + "referencePath": null, + + "buildCommand": "ocamlc src.ml", + "testCommand": null, + + "categories": ["functional"] +} \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_20/bug.ml b/functional/OCaml/formula/bugs/bug_20/bug.ml deleted file mode 100644 index 488dfa033..000000000 --- a/functional/OCaml/formula/bugs/bug_20/bug.ml +++ /dev/null @@ -1,40 +0,0 @@ -type formula = -|True -|False -|Not of formula -|AndAlso of (formula * formula) -|OrElse of (formula * formula) -|Imply of (formula * formula) -|Equal of (exp * exp) -and exp = -|Num of int -|Plus of (exp * exp) -|Minus of (exp * exp) - -let rec calc (e : exp) : int = - (match e with -|Num i -> i -|Plus (ea, eb) -> (calc (ea) + calc (eb)) -|Minus (ea, eb) -> (calc (ea) - calc (eb))) - -let rec eval (f : formula) : bool = - (match f with -|True -> true -|False -> false -|Not fa -> not (eval (fa)) -|AndAlso (fa, fb) -> - (match eval (fa) with -|true -> eval (fb) -|_ -> false) -|OrElse (fa, fb) -> - (match eval (fa) with -|true -> true -|_ -> eval (fb)) -|Imply (fa, fb) -> - (match eval (fa) with -|true -> eval (fb) -|_ -> true) -|Equal (ea, eb) -> - (match compare (calc (ea)) (calc (eb)) with -|-1 -> true -|_ -> false)) \ No newline at end of file diff --git a/functional/OCaml/formula/bugs/bug_92/bug.ml b/functional/OCaml/formula/bugs/bug_92/bug.ml deleted file mode 100644 index 5ae08eca6..000000000 --- a/functional/OCaml/formula/bugs/bug_92/bug.ml +++ /dev/null @@ -1,59 +0,0 @@ -type formula = - | True - | False - | Not of formula - | AndAlso of (formula * formula) - | OrElse of (formula * formula) - | Imply of (formula * formula) - | Equal of (exp * exp) - -and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp) - -let rec eq (f : exp) : int = - match f with - | Num a -> a - | Plus (a, b) -> eq (Num (eq a + eq b)) - | Minus (a, b) -> eq (Num (eq a - eq b)) - - -let rec eval (f : formula) : bool = - match f with - | True -> true - | False -> false - | Not True -> false - | Not False -> true - | Not a -> eval a - | Equal (a, b) -> if eq a = eq b then true else false - | Imply (a, b) -> ( - match (a, b) with - | True, True -> true - | True, False -> false - | False, True -> true - | False, False -> true - | _, _ -> - eval - (Imply - ( if eval a = true then True - else (False, if eval b = true then True else False) )) ) - | AndAlso (a, b) -> ( - match (a, b) with - | True, True -> true - | True, False -> false - | False, True -> false - | False, False -> false - | _, _ -> - eval - (AndAlso - ( if eval a = true then True - else (False, if eval b = true then True else False) )) ) - | OrElse (a, b) -> ( - match (a, b) with - | True, True -> true - | True, False -> true - | False, True -> true - | False, False -> false - | _, _ -> - eval - (OrElse - ( if eval a = true then True - else (False, if eval b = true then True else False) )) )