termination is used in its general meaning, but it is bounded by the programming scope.
Questions tagged [termination]
351 questions
5
votes
2 answers
Teach coq to check termination
Coq, unlike many others, accepts an optional explicit parameter,which can be used to indicate the decreasing structure of a fixpoint definition.
From Gallina specification, 1.3.4,
Fixpoint ident params {struct ident0 } : type0 := term0
defines the…

Jason Hu
- 6,239
- 1
- 20
- 41
5
votes
2 answers
When does the termination checker reduce a record accessor
I am stumbling about behavior of Coq’s termination checker that I cannot explain to myself. Consider:
Require Import Coq.Lists.List.
Record C a := { P : a -> bool }.
Arguments P {_}.
Definition list_P {a} (a_C : C a) : list a -> bool := existsb…

Joachim Breitner
- 25,395
- 6
- 78
- 139
5
votes
1 answer
How can I convince Coq that my function is in fact recursive?
I'm trying to write a program in Coq to parse a relatively simple context-free grammar (one type of parenthesis) and my general algorithm is for the parser to potentially return the remainder of a string. For example, parsing "++]>><<" should return…

k_g
- 4,333
- 2
- 25
- 40
5
votes
0 answers
Google Play Account Termination
Today I recieved a notificiation e mail from Google:
"This is a notification that your Google Play Publisher account has been terminated.
REASON FOR TERMINATION: Prior violations of the Developer Program Policies and Developer Distribution Agreement…

olcayakgn
- 73
- 1
- 4
5
votes
4 answers
How can I close my software in a safe way?
Up to now I used my application as a stand alone product. So, when user pressed "Stop" button I called System.exit(0); and it was fine.
Now my application will be called (in a programmatic way) from another program. So, I afraid that System.exit(0);…

Roman
- 124,451
- 167
- 349
- 456
5
votes
3 answers
Multi-Threading - Cleanup strategy at program end
What is the best way to finish a multi-threaded application in a clean way?
I am starting several socket connections from the main thread in seperate sockets and wait until the end of my business day in the main thread and use currently…

weismat
- 7,195
- 3
- 43
- 58
5
votes
1 answer
Does ISO C allow allocated memory to hang around after program termination?
An interesting point has arisen with some colleagues of mine, some of who claim that you should always free memory that you malloc no matter what. While I've always thought this is good practice in general, some others have contended that it is not…

paxdiablo
- 854,327
- 234
- 1,573
- 1,953
5
votes
2 answers
In App Billing service getting killed at times
Hi we released this app in the market with inApp Billing and our logs show that the BillingService(possibly the app itself) keeps getings killed very randomly on certain customers devices. Because of this sometimes I am not able to get the…

the100rabh
- 4,077
- 4
- 32
- 40
5
votes
1 answer
^M Character showing in clojure slime-repl
Each (println...) in my code results in a terminating ^M character appearing in the REPL. I have a lein swank running in a separate window, and I've connected via M-x slime-connect
I think this might be the same issue as Emacs showing ^M in a…

Sonicsmooth
- 2,673
- 2
- 22
- 35
4
votes
4 answers
Intercept WM_CLOSE for cleanup operations
I have an external application that calls my application and is supposed to end it when the job is done. The log from this external application claims it uses WM_CLOSE on my app.
How can I intercept the WM_CLOSE message in my application to do some…

John Frost
- 673
- 1
- 10
- 24
4
votes
1 answer
How to pass termination checking when recursing using map?
I have some Agda code like the following (trimmed down to focus on what I believe is the issue, which is the recursion using map):
open import Data.List using (List; map)
data Foo : Set where
Bar : List Foo → Foo
data Foo2 : Set where
Bar2 :…

Camelid
- 1,535
- 8
- 21
4
votes
1 answer
Kubernetes multi-container pod termination process
I have a multi-container pod in k8s, let's call them A and B. When stopping the pod, A must stop before B because A needs B until it's off.
To do that, I registered a preStop hook on A so A can gracefully stop before B.
However I'm not sure this is…

Benjamin Barrois
- 2,566
- 13
- 30
4
votes
1 answer
Raising exceptions in a thread
I tried to get the example 1 Raising exceptions in a python thread using PyThreadState_SetAsyncExc() from geeksforgeeks
Different ways to kill a Thread running.
But for some reason the thread does not terminate.
I use python3.6
here is the…

MaxM.
- 71
- 4
4
votes
1 answer
Is it possible to write a non-terminating web server in agda?
Answers to other questions have explained that all Agda programs are terminating.
My understanding is that the termination of any valid Adga program is a requirement governed by Agda's advanced dependent type system. This strict requirement seems…

mherzl
- 5,624
- 6
- 34
- 75
4
votes
1 answer
Why does this predicate leave behind a choicepoint?
I've written the following predicate:
list_withoutlast([_Last], []). % forget the last element
list_withoutlast([First, Second|List], [First|WithoutLast]) :-
list_withoutlast([Second|List], WithoutLast).
Queries like list_withoutlast(X, [1, 2]).…

num1
- 4,825
- 4
- 31
- 49