#include <stdio.h>
#include <strings.h>
#include "boolean.h"
#include "arithmetique.h"
#include "matrice.h"
#include "genC.h"
#include "misc.h"
Go to the source code of this file.
◆ interactive_hyperplane_direction()
Find out a legal hyperplane direction.
hyperplane_direction.c
In a first phase, trust the user blindly!
Query the user for h's coordinates
Definition at line 40 of file hyperplane_direction.c.
46 bool return_status =
false;
50 debug(8,
"interactive_hyperplane_direction",
"Reading h\n");
52 "(give all its integer coordinates on one line): ");
53 if (resp[0] ==
'\0') {
54 user_log(
"Hyperplane loop transformation has been cancelled.\n");
55 return_status =
false;
58 cn = strtok(resp,
" \t");
61 for( i = 0; i<n; i++) {
64 "Hyperplane loop transformation has been cancelled.\n");
65 return_status =
false;
71 "Hyperplane loop transformation has been cancelled.\n");
72 return_status =
false;
75 cn = strtok(NULL,
" \t");
81 "Hyperplane loop transformation has been cancelled.\n");
82 return_status =
false;
87 pips_debug(8,
"Hyperplane direction vector:\n");
88 for( i = 0; i<n; i++) {
void user_log(const char *format,...)
#define pips_debug
these macros use the GNU extensions that allow variadic macros, including with an empty list.
#define pips_assert(what, predicate)
common macros, two flavors depending on NDEBUG
void debug(const int the_expected_debug_level, const char *calling_function_name, const char *a_message_format,...)
ARARGS0.
string user_request(const char *,...)
int fprintf()
test sc_min : ce test s'appelle par : programme fichier1.data fichier2.data ...
References debug(), fprintf(), ifdebug, pips_assert, pips_debug, string_undefined, user_log(), user_request(), and VALUE_FMT.
Referenced by hyperplane().