问题描述:
Write a python function to count the number of integral co-ordinates that lie inside a square.

测试用例:
['assert count_Intgral_Points(1,1,4,4) == 4', 'assert count_Intgral_Points(1,2,1,2) == 1', 'assert count_Intgral_Points(4,2,6,4) == 1']

生成的代码:
def count_Intgral_Points(x1, y1, x2, y2):
    # Calculate the number of integral coordinates inside the square
    if x1 >= x2 or y1 >= y2:
        return 0  # If the coordinates do not form a valid square
    
    # The number of integral points strictly inside the square
    return (x2 - x1 - 1) * (y2 - y1 - 1)