Changeset 056f98 in git


Ignore:
Timestamp:
Apr 12, 2001, 4:34:22 PM (22 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
97090ad53dca442139c9aae6aad469070d418aea
Parents:
937cbcd9541714ba32c2fe91312690e65edf6f2f
Message:
*hannes:new +memset


git-svn-id: file:///usr/local/Singular/svn/trunk@5377 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
IntegerProgramming
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • IntegerProgramming/IP_algorithms.cc

    r937cbcd r056f98  
    24272427  {
    24282428    cerr<<"ERROR: int solve(INPUT_FILE, INPUT_FILE):\n"
    2429       "cannot read from first input file, possibly not found"<<endl;
     2429      "cannot read from first input file "<< PROBLEM <<", possibly not found"<<endl;
    24302430    return 0;
    24312431  }
     
    24342434  {
    24352435    cerr<<"ERROR: int solve(INPUT_FILE, INPUT_FILE):\n"
    2436       "cannot read from second input file, possibly not found"<<endl;
     2436      "cannot read from second input file "<< GROEBNER <<", possibly not found"<<endl;
    24372437    return 0;
    24382438  }
  • IntegerProgramming/Makefile.in

    r937cbcd r056f98  
    2020
    2121INSTALL         = @INSTALL@
    22 INSTALL_PROGRAM = @INSTALL_PROGRAM@
     22INSTALL_PROGRAM = @INSTALL_PROGRAM@  -s
    2323MKINSTALLDIRS   = ../mkinstalldirs
    2424
     
    8383        $(OBJECTS1)
    8484        $(CXX) $^ -o $@ $(LDFLAGS)
    85         strip $(MAIN1)
    8685
    8786$(MAIN2): term_ordering.o binomial.o list.o BigInt.o LLL.o matrix.o \
     
    9089        $(OBJECTS2)
    9190        $(CXX)  $^ -o $@ $(LDFLAGS)
    92         strip $(MAIN2)
    9391
    9492$(MAIN3): term_ordering.o binomial.o list.o BigInt.o LLL.o matrix.o \
     
    9795        $(OBJECTS3)
    9896        $(CXX)  $^ -o $@ $(LDFLAGS)
    99         strip $(MAIN3)
    10097
    10198$(MAIN4): term_ordering.o binomial.o list.o BigInt.o LLL.o matrix.o \
     
    104101        $(OBJECTS4)
    105102        $(CXX)  $^ -o $@ $(LDFLAGS)
    106         strip $(MAIN4)
    107103
    108104$(LLL): $(OBJECTS_LLL)
    109105        $(CXX)  $^ -o $@ $(LDFLAGS)
    110         strip $(LLL)
    111106
    112107Makefile: Makefile.in
  • IntegerProgramming/matrix.cc

    r937cbcd r056f98  
    552552    r=columns-r;
    553553    F=new short[r];
     554    memset(F,0,r*sizeof(short));
    554555    short counter=0;
    555556    for(short j=0;j<columns;j++)
     
    565566  {
    566567    F=new short[r];
     568    memset(F,0,r*sizeof(short));
    567569    short counter=0;
    568570    for(short j=0;j<columns;j++)
     
    608610  short number_of_sat_var=0;
    609611  sat_var=new short[columns/2];
     612  memset(sat_var,0,sizeof(short)*(columns/2));
    610613
    611614  BOOLEAN* ideal_saturated_by_var=new BOOLEAN[columns];
  • IntegerProgramming/solve_IP.cc

    r937cbcd r056f98  
    249249
    250250      char* GROEBNER=new char[128];
     251      memset(GROEBNER,0,128);
    251252      short i=0;
    252       while(argv[argc-2][i]!='\0' && argv[argc-2][i]!='.')
     253      while(argv[argc-2][i]!='\0' && argv[argc-2][i]!='.' && argv[argc-2][i]>' ')
    253254      {
    254255        GROEBNER[i]=argv[argc-2][i];
  • IntegerProgramming/term_ordering.cc

    r937cbcd r056f98  
    257257
    258258      if(weight_vector[i]<0)
     259      {
     260        cout << "neg found at i="<<i<<":" <<weight_vector[i] <<"\n";
    259261        negative_weight=TRUE;
     262      }
    260263      if(weight_vector[i]==0)
    261264        zero_weight=TRUE;
Note: See TracChangeset for help on using the changeset viewer.