chicolucio / chicolucio/truth-table-generator

Issue with correctness

Open
#153 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
75
Forks
21
PR merge metrics
No merged PRs in 30d

Description

Hi,

I think I have noticed a slight bug in terms of the correctness of the truth-table computation. Attached image is an example. Specifically, the last row of the truth-table should be evaluated to 0, i.e. since the last clause is evaluated to 0 and thus by the nature of logical-and, the formula should be evaluated to 0 under that specific assignment.

![Screenshot-tt-issue](https://github.com/chicolucio/truth-table-generator/assets/48393950/0cba29b9-ea36-4789-8e65-4539af07ceb7)

Contributor guide

No contributing guide indexed for this repository

Research direction

Use the issue's attached screenshot as the only reproduction, then locate the truth-table computation and inspect the final row's logical-and evaluation. Reproduce the reported assignment and confirm that the last row evaluates to 0; the issue is done when the corrected result is covered by an appropriate regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.