GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
/* GMP assertion failure handler.12THE FUNCTIONS IN THIS FILE ARE FOR INTERNAL USE ONLY. THEY'RE ALMOST3CERTAIN TO BE SUBJECT TO INCOMPATIBLE CHANGES OR DISAPPEAR COMPLETELY IN4FUTURE GNU MP RELEASES.56Copyright 2000, 2001 Free Software Foundation, Inc.78This file is part of the GNU MP Library.910The GNU MP Library is free software; you can redistribute it and/or modify11it under the terms of either:1213* the GNU Lesser General Public License as published by the Free14Software Foundation; either version 3 of the License, or (at your15option) any later version.1617or1819* the GNU General Public License as published by the Free Software20Foundation; either version 2 of the License, or (at your option) any21later version.2223or both in parallel, as here.2425The GNU MP Library is distributed in the hope that it will be useful, but26WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY27or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License28for more details.2930You should have received copies of the GNU General Public License and the31GNU Lesser General Public License along with the GNU MP Library. If not,32see https://www.gnu.org/licenses/. */3334#include <stdio.h>35#include <stdlib.h>36#include "gmp.h"37#include "gmp-impl.h"383940void41__gmp_assert_header (const char *filename, int linenum)42{43if (filename != NULL && filename[0] != '\0')44{45fprintf (stderr, "%s:", filename);46if (linenum != -1)47fprintf (stderr, "%d: ", linenum);48}49}5051void52__gmp_assert_fail (const char *filename, int linenum,53const char *expr)54{55__gmp_assert_header (filename, linenum);56fprintf (stderr, "GNU MP assertion failed: %s\n", expr);57abort();58}596061