#! /bin/sh # -*- coding: utf-8 -*- # Copyright (C) 2010, 2015 Laboratoire de Recherche et Devéloppement # de l'Epita (LRDE). # # This file is part of Spot, a model checking library. # # Spot is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Spot is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # Check for the constant_term visitor . ./defs || exit 1 set -e run 0 ../consterm 'a' run 0 ../consterm '1' run 0 ../consterm '0' run 1 ../consterm '[*0]' run 1 ../consterm 'a*' run 1 ../consterm '0*' run 1 ../consterm 'a[*0]' run 1 ../consterm 'a[*0..]' run 1 ../consterm 'a[*0..3]' run 0 ../consterm 'a[*1..3]' run 0 ../consterm 'a[*3]' run 1 ../consterm 'a[*..4][*3]' run 0 ../consterm 'a[*1..4][*3]' run 1 ../consterm 'a[*1..4][*0..3]' run 0 ../consterm '((a ; b) + c)' run 1 ../consterm '((a ; b) + [*0])' run 0 ../consterm '((a ; b) + [*0]) & e' run 1 ../consterm '((a ; b) + [*0]) & [*0]' run 1 ../consterm '((a ; b) + [*0]) & (a* + b)' run 1 ../consterm '{{a ; b} + {[*0]}} & {a* + b}' # test braces run 1 ../consterm '(a + [*0]);(b + [*0]);(c + [*0])' run 0 ../consterm '(a + [*0]);(b + e);(c + [*0])' run 1 ../consterm '(a + [*0]);(b + e)*;(c + [*0])'